RAJA: add "plugins" variant (#40750)
This commit is contained in:
parent
33cb8c988f
commit
b53b235cff
1 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,7 @@ class Raja(CachedCMakePackage, CudaPackage, ROCmPackage):
|
||||||
|
|
||||||
variant("openmp", default=True, description="Build OpenMP backend")
|
variant("openmp", default=True, description="Build OpenMP backend")
|
||||||
variant("shared", default=True, description="Build Shared Libs")
|
variant("shared", default=True, description="Build Shared Libs")
|
||||||
|
variant("plugins", default=False, description="Enable runtime plugins")
|
||||||
variant("examples", default=True, description="Build examples.")
|
variant("examples", default=True, description="Build examples.")
|
||||||
variant("exercises", default=True, description="Build exercises.")
|
variant("exercises", default=True, description="Build exercises.")
|
||||||
# TODO: figure out gtest dependency and then set this default True
|
# TODO: figure out gtest dependency and then set this default True
|
||||||
|
@ -225,6 +226,7 @@ def initconfig_package_entries(self):
|
||||||
if "camp" in self.spec:
|
if "camp" in self.spec:
|
||||||
entries.append(cmake_cache_path("camp_DIR", spec["camp"].prefix))
|
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("BUILD_SHARED_LIBS", "+shared" in spec))
|
||||||
|
entries.append(cmake_cache_option("RAJA_ENABLE_RUNTIME_PLUGINS", "+plugins" in spec))
|
||||||
entries.append(
|
entries.append(
|
||||||
cmake_cache_option("{}ENABLE_EXAMPLES".format(option_prefix), "+examples" in spec)
|
cmake_cache_option("{}ENABLE_EXAMPLES".format(option_prefix), "+examples" in spec)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue