summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwspear <wjspear@gmail.com>2023-10-30 01:40:08 -0700
committerGitHub <noreply@github.com>2023-10-30 09:40:08 +0100
commitb53b235cffdb960a5e315a287517843a07836461 (patch)
tree7de19b042b51edacc3234846334cd49a6620d7be
parent33cb8c988f3fd9afb364b403eda3aaaabe130729 (diff)
downloadspack-b53b235cffdb960a5e315a287517843a07836461.tar.gz
spack-b53b235cffdb960a5e315a287517843a07836461.tar.bz2
spack-b53b235cffdb960a5e315a287517843a07836461.tar.xz
spack-b53b235cffdb960a5e315a287517843a07836461.zip
RAJA: add "plugins" variant (#40750)
-rw-r--r--var/spack/repos/builtin/packages/raja/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/raja/package.py b/var/spack/repos/builtin/packages/raja/package.py
index cc1ede76be..99221b9b08 100644
--- a/var/spack/repos/builtin/packages/raja/package.py
+++ b/var/spack/repos/builtin/packages/raja/package.py
@@ -114,6 +114,7 @@ class Raja(CachedCMakePackage, CudaPackage, ROCmPackage):
variant("openmp", default=True, description="Build OpenMP backend")
variant("shared", default=True, description="Build Shared Libs")
+ variant("plugins", default=False, description="Enable runtime plugins")
variant("examples", default=True, description="Build examples.")
variant("exercises", default=True, description="Build exercises.")
# TODO: figure out gtest dependency and then set this default True
@@ -225,6 +226,7 @@ class Raja(CachedCMakePackage, CudaPackage, ROCmPackage):
if "camp" in self.spec:
entries.append(cmake_cache_path("camp_DIR", spec["camp"].prefix))
entries.append(cmake_cache_option("BUILD_SHARED_LIBS", "+shared" in spec))
+ entries.append(cmake_cache_option("RAJA_ENABLE_RUNTIME_PLUGINS", "+plugins" in spec))
entries.append(
cmake_cache_option("{}ENABLE_EXAMPLES".format(option_prefix), "+examples" in spec)
)