From 8b6a6982ee50b59dae71c7ca661280143bc46d82 Mon Sep 17 00:00:00 2001 From: Cristian Di Pietrantonio Date: Wed, 9 Aug 2023 14:35:56 +0800 Subject: [PATCH] caliper: add KOKKOS variant. (#39312) Co-authored-by: Cristian Di Pietrantonio Co-authored-by: Massimiliano Culpo --- var/spack/repos/builtin/packages/caliper/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/spack/repos/builtin/packages/caliper/package.py b/var/spack/repos/builtin/packages/caliper/package.py index 31ddfcc25a..093dc7c660 100644 --- a/var/spack/repos/builtin/packages/caliper/package.py +++ b/var/spack/repos/builtin/packages/caliper/package.py @@ -60,6 +60,7 @@ class Caliper(CMakePackage, CudaPackage, ROCmPackage): variant("sosflow", default=False, description="Enable SOSflow support") variant("fortran", default=False, description="Enable Fortran support") variant("variorum", default=False, description="Enable Variorum support") + variant("kokkos", default=True, when="@2.3.0:", description="Enable Kokkos profiling support") depends_on("adiak@0.1:0", when="@2.2: +adiak") @@ -110,6 +111,7 @@ def cmake_args(self): self.define_from_variant("WITH_ROCTRACER", "rocm"), self.define_from_variant("WITH_ROCTX", "rocm"), self.define_from_variant("WITH_VARIORUM", "variorum"), + self.define_from_variant("WITH_KOKKOS", "kokkos"), ] if "+papi" in spec: