summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hypre/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hypre/package.py b/var/spack/repos/builtin/packages/hypre/package.py
index a15db12e16..d7fc90fdaf 100644
--- a/var/spack/repos/builtin/packages/hypre/package.py
+++ b/var/spack/repos/builtin/packages/hypre/package.py
@@ -75,6 +75,7 @@ class Hypre(AutotoolsPackage, CudaPackage, ROCmPackage):
variant("gptune", default=False, description="Add the GPTune hookup code")
variant("umpire", default=False, description="Enable Umpire support")
variant("sycl", default=False, description="Enable SYCL support")
+ variant("caliper", default=False, description="Enable Caliper support")
# Patch to add gptune hookup codes
patch("ij_gptune.patch", when="+gptune@2.19.0")
@@ -104,6 +105,8 @@ class Hypre(AutotoolsPackage, CudaPackage, ROCmPackage):
depends_on("rocrand", when="+rocm")
depends_on("rocprim", when="+rocm")
depends_on("umpire", when="+umpire")
+ depends_on("caliper", when="+caliper")
+
for sm_ in CudaPackage.cuda_arch_values:
depends_on(
"umpire+cuda cuda_arch={0}".format(sm_), when="+umpire+cuda cuda_arch={0}".format(sm_)
@@ -217,6 +220,11 @@ class Hypre(AutotoolsPackage, CudaPackage, ROCmPackage):
else:
configure_args.append("--with-umpire")
+ if "+caliper" in spec:
+ configure_args.append("--with-caliper")
+ configure_args.append("--with-caliper-include=%s" % spec["caliper"].prefix.include)
+ configure_args.append("--with-caliper-lib=%s" % spec["caliper"].libs)
+
configure_args.extend(self.enable_or_disable("debug"))
if "+cuda" in spec: