summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBrian Van Essen <vanessen1@llnl.gov>2023-07-27 13:59:11 -0700
committerGitHub <noreply@github.com>2023-07-27 13:59:11 -0700
commite5b46075487426c1a3895a46791251f33926edc4 (patch)
tree7e26d05b069bc084652e75b36a8d662dcbd6c31d /var
parentecdd8e035caafdaf628dcd7200b1c27c7e4a8dd0 (diff)
downloadspack-e5b46075487426c1a3895a46791251f33926edc4.tar.gz
spack-e5b46075487426c1a3895a46791251f33926edc4.tar.bz2
spack-e5b46075487426c1a3895a46791251f33926edc4.tar.xz
spack-e5b46075487426c1a3895a46791251f33926edc4.zip
Added support for building with Caliper (#39116)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/lbann/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/lbann/package.py b/var/spack/repos/builtin/packages/lbann/package.py
index 54a0c690f2..e491ad365d 100644
--- a/var/spack/repos/builtin/packages/lbann/package.py
+++ b/var/spack/repos/builtin/packages/lbann/package.py
@@ -145,6 +145,7 @@ class Lbann(CachedCMakePackage, CudaPackage, ROCmPackage):
variant("boost", default=False, description="Enable callbacks that use Boost libraries")
variant("asan", default=False, description="Build with support for address-sanitizer")
variant("unit_tests", default=False, description="Support for unit testing")
+ variant("caliper", default=False, description="Support for instrumentation with caliper")
# LBANN benefits from high performance linkers, but passing these in as command
# line options forces the linker flags to unnecessarily propagate to all
@@ -316,6 +317,8 @@ class Lbann(CachedCMakePackage, CudaPackage, ROCmPackage):
depends_on("spdlog", when="@:0.90,0.102:")
depends_on("zstr")
+ depends_on("caliper+adiak+mpi", when="+caliper")
+
generator("ninja")
def setup_build_environment(self, env):
@@ -411,6 +414,7 @@ class Lbann(CachedCMakePackage, CudaPackage, ROCmPackage):
("LBANN_WITH_ALUMINUM", "al"),
("LBANN_WITH_ADDRESS_SANITIZER", "asan"),
("LBANN_WITH_BOOST", "boost"),
+ ("LBANN_WITH_CALIPER", "caliper"),
("LBANN_WITH_CONDUIT", "conduit"),
("LBANN_WITH_NVSHMEM", "nvshmem"),
("LBANN_WITH_FFT", "fft"),