caliper: add KOKKOS variant. (#39312)

Co-authored-by: Cristian Di Pietrantonio <cdipietrantonio@pawsey.org.au>
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
Cristian Di Pietrantonio 2023-08-09 14:35:56 +08:00 committed by GitHub
parent ee74ca6391
commit 8b6a6982ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: