amr-wind: add "ascent" variant (#31376)
This commit is contained in:
parent
d904a789d5
commit
9708afc3b3
@ -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 @@ def cmake_args(self):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user