summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDavid Boehme <boehme3@llnl.gov>2023-07-26 16:22:36 -0700
committerGitHub <noreply@github.com>2023-07-26 19:22:36 -0400
commitca2e9cf090e278669ff83c3795baf041bbcf2566 (patch)
tree0d0940992e5e8c6c1c480e1ad822a8d602594c23 /var
parent288b3c3ec2d12f8624158c074b9c22f2dc4e3509 (diff)
downloadspack-ca2e9cf090e278669ff83c3795baf041bbcf2566.tar.gz
spack-ca2e9cf090e278669ff83c3795baf041bbcf2566.tar.bz2
spack-ca2e9cf090e278669ff83c3795baf041bbcf2566.tar.xz
spack-ca2e9cf090e278669ff83c3795baf041bbcf2566.zip
Caliper: Add variorum variant (#39104)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/caliper/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/caliper/package.py b/var/spack/repos/builtin/packages/caliper/package.py
index 03e4d02efd..31ddfcc25a 100644
--- a/var/spack/repos/builtin/packages/caliper/package.py
+++ b/var/spack/repos/builtin/packages/caliper/package.py
@@ -59,6 +59,7 @@ class Caliper(CMakePackage, CudaPackage, ROCmPackage):
variant("sampler", default=is_linux, description="Enable sampling support on Linux")
variant("sosflow", default=False, description="Enable SOSflow support")
variant("fortran", default=False, description="Enable Fortran support")
+ variant("variorum", default=False, description="Enable Variorum support")
depends_on("adiak@0.1:0", when="@2.2: +adiak")
@@ -70,6 +71,7 @@ class Caliper(CMakePackage, CudaPackage, ROCmPackage):
depends_on("mpi", when="+mpi")
depends_on("unwind@1.2:1", when="+libunwind")
depends_on("elfutils", when="+libdw")
+ depends_on("variorum", when="+variorum")
depends_on("sosflow@spack", when="@1.0:1+sosflow")
@@ -107,6 +109,7 @@ class Caliper(CMakePackage, CudaPackage, ROCmPackage):
self.define_from_variant("WITH_NVTX", "cuda"),
self.define_from_variant("WITH_ROCTRACER", "rocm"),
self.define_from_variant("WITH_ROCTX", "rocm"),
+ self.define_from_variant("WITH_VARIORUM", "variorum"),
]
if "+papi" in spec:
@@ -117,6 +120,8 @@ class Caliper(CMakePackage, CudaPackage, ROCmPackage):
args.append("-DLIBPFM_INSTALL=%s" % spec["libpfm4"].prefix)
if "+sosflow" in spec:
args.append("-DSOS_PREFIX=%s" % spec["sosflow"].prefix)
+ if "+variorum" in spec:
+ args.append("-DVARIORUM_PREFIX=%s" % spec["variorum"].prefix)
# -DWITH_CALLPATH was renamed -DWITH_LIBUNWIND in 2.5
callpath_flag = "LIBUNWIND" if spec.satisfies("@2.5:") else "CALLPATH"