summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCody Balos <balos1@llnl.gov>2019-10-04 11:48:56 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2019-10-04 13:48:56 -0500
commit3cb4547348aad8c0caf5db3000c0fc1567a5e3d0 (patch)
tree5bde3a13bc8b6692cbcfe3a17fcd2b3604058254 /var
parentcb89949018d0a881d9d548b986bb8eba9e6f1dc3 (diff)
downloadspack-3cb4547348aad8c0caf5db3000c0fc1567a5e3d0.tar.gz
spack-3cb4547348aad8c0caf5db3000c0fc1567a5e3d0.tar.bz2
spack-3cb4547348aad8c0caf5db3000c0fc1567a5e3d0.tar.xz
spack-3cb4547348aad8c0caf5db3000c0fc1567a5e3d0.zip
superlu-dist: add openmp variant (#13052)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/superlu-dist/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/superlu-dist/package.py b/var/spack/repos/builtin/packages/superlu-dist/package.py
index d500954088..75b9c32856 100644
--- a/var/spack/repos/builtin/packages/superlu-dist/package.py
+++ b/var/spack/repos/builtin/packages/superlu-dist/package.py
@@ -31,6 +31,7 @@ class SuperluDist(CMakePackage):
version('5.0.0', '78d1d6460ff16b3f71e4bcd7306397574d54d421249553ccc26567f00a10bfc6')
variant('int64', default=False, description='Build with 64 bit integers')
+ variant('openmp', default=False, description='Build with OpenMP support (needs a good multithreaded BLAS implementation for good performance)')
variant('shared', default=True, description='Build shared libraries')
depends_on('mpi')
@@ -58,6 +59,11 @@ class SuperluDist(CMakePackage):
else:
args.append('-DXSDK_INDEX_SIZE=32')
+ if '+openmp' in spec:
+ args.append('-Denable_openmp=ON')
+ else:
+ args.append('-Denable_openmp=OFF')
+
if '+shared' in spec:
args.append('-DBUILD_SHARED_LIBS:BOOL=ON')
else: