summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/hypre/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hypre/package.py b/var/spack/repos/builtin/packages/hypre/package.py
index 61ce3a46dc..43213507c4 100644
--- a/var/spack/repos/builtin/packages/hypre/package.py
+++ b/var/spack/repos/builtin/packages/hypre/package.py
@@ -60,6 +60,7 @@ class Hypre(Package, CudaPackage):
variant('openmp', default=False, description='Enable OpenMP support')
variant('debug', default=False,
description='Build debug instead of optimized version')
+ variant('unified-memory', default=False, description='Use unified memory')
# Patch to add ppc64le in config.guess
patch('ibm-ppc64le.patch', when='@:2.11.1')
@@ -79,6 +80,7 @@ class Hypre(Package, CudaPackage):
depends_on('superlu-dist', when='+superlu-dist+mpi')
conflicts('+cuda', when='+int64')
+ conflicts('+unified-memory', when='~cuda')
# Patch to build shared libraries on Darwin does not apply to
# versions before 2.13.0
@@ -178,6 +180,9 @@ class Hypre(Package, CudaPackage):
'--disable-cub'
])
+ if '+unified-memory' in self.spec:
+ configure_args.append('--enable-unified-memory')
+
return configure_args
def setup_build_environment(self, env):