summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAsher Mancinelli <ashermancinelli@gmail.com>2021-12-15 19:23:36 -0700
committerGitHub <noreply@github.com>2021-12-15 18:23:36 -0800
commit114b35144ea50fff4626d82ab2d2ecb8a20ba10b (patch)
treea3d18c7e7a96f9d2decaf88b393772ffec6f9ff5 /var
parent69184dc390f30a8a865d54babbb9e1e99b46dcfe (diff)
downloadspack-114b35144ea50fff4626d82ab2d2ecb8a20ba10b.tar.gz
spack-114b35144ea50fff4626d82ab2d2ecb8a20ba10b.tar.bz2
spack-114b35144ea50fff4626d82ab2d2ecb8a20ba10b.tar.xz
spack-114b35144ea50fff4626d82ab2d2ecb8a20ba10b.zip
ExaGO package: add version 1.2.0; update dependency constraints (#27961)
* PETSc is a core dependency, yet we left a variant for PETSc. This was removed, and ExaGO always depends on PETSc. The CMake arguments were updated accordingly. * camp+cuda is only a dependency when we build with RAJA and CUDA.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/exago/package.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/exago/package.py b/var/spack/repos/builtin/packages/exago/package.py
index 36ab4ca0e0..599ff5f4d7 100644
--- a/var/spack/repos/builtin/packages/exago/package.py
+++ b/var/spack/repos/builtin/packages/exago/package.py
@@ -15,6 +15,7 @@ class Exago(CMakePackage, CudaPackage):
git = 'https://gitlab.pnnl.gov/exasgd/frameworks/exago.git'
maintainers = ['ashermancinelli', 'CameronRutherford']
+ version('1.2.0', commit='255a214e', submodules=True)
version('1.1.2', commit='db3bb16e', submodules=True)
version('1.1.1', commit='0e0a3f27', submodules=True)
version('1.1.0', commit='dc8dd855', submodules=True)
@@ -30,7 +31,6 @@ class Exago(CMakePackage, CudaPackage):
# Solver options
variant('hiop', default=False, description='Enable/Disable HiOp')
- variant('petsc', default=True, description='Enable/Disable PETSc')
variant('ipopt', default=False, description='Enable/Disable IPOPT')
# Dependencides
@@ -51,7 +51,7 @@ class Exago(CMakePackage, CudaPackage):
# For some versions of RAJA package, camp cuda variant does not get set
# correctly, so we must explicitly depend on it even though we don't use
# camp
- depends_on('camp+cuda', when='+cuda')
+ depends_on('camp+cuda', when='+raja+cuda')
depends_on('cmake@3.18:', type='build')
@@ -64,8 +64,9 @@ class Exago(CMakePackage, CudaPackage):
depends_on('hiop+mpi', when='+hiop+mpi')
# Require PETSc < 3.15 per ExaGO issue #199
- depends_on('petsc@3.13:3.14', when='+petsc')
- depends_on('petsc~mpi', when='+petsc~mpi')
+ depends_on('petsc@3.13:3.14')
+ depends_on('petsc~mpi', when='~mpi')
+
depends_on('ipopt', when='+ipopt')
flag_handler = build_system_flags
@@ -79,10 +80,10 @@ class Exago(CMakePackage, CudaPackage):
args.append(self.define_from_variant('EXAGO_ENABLE_MPI', 'mpi'))
args.append(self.define_from_variant('EXAGO_ENABLE_RAJA', 'raja'))
args.append(self.define_from_variant('EXAGO_ENABLE_HIOP', 'hiop'))
- args.append(self.define_from_variant('EXAGO_ENABLE_PETSC', 'petsc'))
args.append(self.define_from_variant('EXAGO_ENABLE_IPOPT', 'ipopt'))
args.append(self.define_from_variant('EXAGO_ENABLE_GPU', 'cuda'))
args.append(self.define_from_variant('EXAGO_ENABLE_CUDA', 'cuda'))
+ args.append("-DPETSC_DIR='{0}'".format(spec['petsc'].prefix))
if '+cuda' in spec:
cuda_arch_list = spec.variants['cuda_arch'].value
@@ -91,7 +92,4 @@ class Exago(CMakePackage, CudaPackage):
args.append(
"-DCMAKE_CUDA_ARCHITECTURES={0}".format(cuda_arch))
- if '+petsc' in spec:
- args.append("-DPETSC_DIR='{0}'".format(spec['petsc'].prefix))
-
return args