summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Brunhart-Lupo <nicholasbl@icloud.com>2022-07-12 06:38:24 -0600
committerGitHub <noreply@github.com>2022-07-12 14:38:24 +0200
commit9708afc3b35288703bce92c64265e4183d783eb7 (patch)
tree45bd5097f02879691404ad752277882cf4aa35f9
parentd904a789d528a4a73d4ead26660df8e424df29cf (diff)
downloadspack-9708afc3b35288703bce92c64265e4183d783eb7.tar.gz
spack-9708afc3b35288703bce92c64265e4183d783eb7.tar.bz2
spack-9708afc3b35288703bce92c64265e4183d783eb7.tar.xz
spack-9708afc3b35288703bce92c64265e4183d783eb7.zip
amr-wind: add "ascent" variant (#31376)
-rw-r--r--var/spack/repos/builtin/packages/amr-wind/package.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/amr-wind/package.py b/var/spack/repos/builtin/packages/amr-wind/package.py
index 7581562701..d2e510f250 100644
--- a/var/spack/repos/builtin/packages/amr-wind/package.py
+++ b/var/spack/repos/builtin/packages/amr-wind/package.py
@@ -21,6 +21,8 @@ class AmrWind(CMakePackage, CudaPackage, ROCmPackage):
variant('hypre', default=True,
description='Enable Hypre integration')
+ variant('ascent', default=False,
+ description='Enable Ascent integration')
variant('masa', default=False,
description='Enable MASA integration')
variant('mpi', default=True,
@@ -45,6 +47,18 @@ class AmrWind(CMakePackage, CudaPackage, ROCmPackage):
depends_on('hypre+rocm amdgpu_target=%s' % arch,
when='+rocm+hypre amdgpu_target=%s' % arch)
depends_on('masa', when='+masa')
+
+ # propagate variants to ascent
+ depends_on('ascent~mpi', when='+ascent~mpi')
+ depends_on('ascent+mpi', when='+ascent+mpi')
+ depends_on('ascent~shared', when='+ascent~shared')
+ depends_on('ascent+shared', when='+ascent+shared')
+ depends_on('ascent~openmp', when='+ascent~openmp')
+ depends_on('ascent+openmp', when='+ascent+openmp')
+ for arch in CudaPackage.cuda_arch_values:
+ depends_on('ascent+cuda cuda_arch=%s' % arch,
+ when='+ascent+cuda cuda_arch=%s' % arch)
+
depends_on('mpi', when='+mpi')
depends_on('netcdf-c', when='+netcdf')
depends_on('openfast+cxx@2.6.0:', when='+openfast')
@@ -63,7 +77,7 @@ class AmrWind(CMakePackage, CudaPackage, ROCmPackage):
define = CMakePackage.define
vs = ["mpi", "cuda", "openmp", "netcdf", "hypre", "masa",
- "openfast", "rocm", "tests"]
+ "ascent", "openfast", "rocm", "tests"]
args = [
self.define_from_variant("AMR_WIND_ENABLE_%s" % v.upper(), v)
for v in vs