summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Cojean <terry.cojean@kit.edu>2024-02-29 06:04:34 +0100
committerGitHub <noreply@github.com>2024-02-29 06:04:34 +0100
commit86b4a867ef37f16781ed31ea72ef6e7c04a35694 (patch)
treef1d47f5ff8814624575a71d143a8567ff283f641
parent6049e5f6ebcafaa14cd2a58d4e6db2ef8d59595b (diff)
downloadspack-86b4a867ef37f16781ed31ea72ef6e7c04a35694.tar.gz
spack-86b4a867ef37f16781ed31ea72ef6e7c04a35694.tar.bz2
spack-86b4a867ef37f16781ed31ea72ef6e7c04a35694.tar.xz
spack-86b4a867ef37f16781ed31ea72ef6e7c04a35694.zip
ginkgo: add PAPI SDE support (#39425)
Signed-off-by: Terry Cojean <terry.cojean@kit.edu> Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/ginkgo/package.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/ginkgo/package.py b/var/spack/repos/builtin/packages/ginkgo/package.py
index d0ea6b619d..78b47e6e0b 100644
--- a/var/spack/repos/builtin/packages/ginkgo/package.py
+++ b/var/spack/repos/builtin/packages/ginkgo/package.py
@@ -47,7 +47,8 @@ class Ginkgo(CMakePackage, CudaPackage, ROCmPackage):
variant("sycl", default=False, description="Enable SYCL backend")
variant("develtools", default=False, description="Compile with develtools enabled")
variant("hwloc", default=False, description="Enable HWLOC support")
- variant("mpi", default=False, description="Enable MPI support")
+ variant("sde", default=False, description="Enable PAPI SDE support", when="@1.7.0:")
+ variant("mpi", default=False, description="Enable MPI support", when="@1.5.0:")
depends_on("cmake@3.9:", type="build", when="@:1.3.0")
depends_on("cmake@3.13:", type="build", when="@1.4.0:1.6.0")
@@ -68,6 +69,8 @@ class Ginkgo(CMakePackage, CudaPackage, ROCmPackage):
# setup for rocthrust, this needs to also be added here.
depends_on("rocprim", when="+rocm")
depends_on("hwloc@2.1:", when="+hwloc")
+ # TODO: replace with the next PAPI version when available (>7.0.1.0)
+ depends_on("papi@master+sde", when="+sde")
depends_on("googletest", type="test")
depends_on("numactl", type="test", when="+hwloc")
@@ -78,7 +81,6 @@ class Ginkgo(CMakePackage, CudaPackage, ROCmPackage):
conflicts("%gcc@:5.2.9")
conflicts("+rocm", when="@:1.1.1")
- conflicts("+mpi", when="@:1.4.0")
# ROCm 4.1.0 breaks platform settings which breaks Ginkgo's HIP support.
conflicts("^hip@4.1.0:", when="@:1.3.0")
@@ -151,6 +153,7 @@ class Ginkgo(CMakePackage, CudaPackage, ROCmPackage):
from_variant("BUILD_SHARED_LIBS", "shared"),
from_variant("GINKGO_JACOBI_FULL_OPTIMIZATIONS", "full_optimizations"),
from_variant("GINKGO_BUILD_HWLOC", "hwloc"),
+ from_variant("GINKGO_WITH_PAPI_SDE", "sde"),
from_variant("GINKGO_DEVEL_TOOLS", "develtools"),
# As we are not exposing benchmarks, examples, tests nor doc
# as part of the installation, disable building them altogether.