summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2017-12-22 15:55:04 +0100
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2017-12-22 15:55:04 +0100
commitf764ac4573e512e9ccec6a6f7b3a0d0bf8c59c1b (patch)
tree58b203a880aa08ddd6ca07fc6d94d976d0dd2665
parent937f68c3598e1f07f8154126bebc28e25263ab89 (diff)
downloadspack-f764ac4573e512e9ccec6a6f7b3a0d0bf8c59c1b.tar.gz
spack-f764ac4573e512e9ccec6a6f7b3a0d0bf8c59c1b.tar.bz2
spack-f764ac4573e512e9ccec6a6f7b3a0d0bf8c59c1b.tar.xz
spack-f764ac4573e512e9ccec6a6f7b3a0d0bf8c59c1b.zip
dealii: support 64bit BLAS (#6758)
-rw-r--r--var/spack/repos/builtin/packages/dealii/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/dealii/package.py b/var/spack/repos/builtin/packages/dealii/package.py
index e26da2bf8a..593b9511ea 100644
--- a/var/spack/repos/builtin/packages/dealii/package.py
+++ b/var/spack/repos/builtin/packages/dealii/package.py
@@ -151,6 +151,9 @@ class Dealii(CMakePackage, CudaPackage):
depends_on('trilinos+amesos+aztec+epetra+ifpack+ml+muelu+rol+sacado+teuchos~hypre', when='+trilinos+mpi+int64')
# check that the combination of variants makes sense
+ conflicts('^openblas+ilp64', when='@:8.5.1')
+ conflicts('^intel-mkl+ilp64', when='@:8.5.1')
+ conflicts('^intel-parallel-studio+mkl+ilp64', when='@:8.5.1')
conflicts('+assimp', when='@:8.5.1')
conflicts('+gmsh', when='@:8.5.1')
conflicts('+nanoflann', when='@:8.5.1')
@@ -190,6 +193,11 @@ class Dealii(CMakePackage, CudaPackage):
'-DDEAL_II_ALLOW_BUNDLED=OFF'
])
+ if (spec.satisfies('^openblas+ilp64') or
+ spec.satisfies('^intel-mkl+ilp64') or
+ spec.satisfies('^intel-parallel-studio+mkl+ilp64')):
+ options.append('-DLAPACK_WITH_64BIT_BLAS_INDICES=ON')
+
if spec.satisfies('@:8.99'):
options.extend([
# Cmake may still pick up system's bzip2, fix this:
@@ -270,7 +278,7 @@ class Dealii(CMakePackage, CudaPackage):
for library in (
'gsl', 'hdf5', 'p4est', 'petsc', 'slepc', 'trilinos', 'metis',
'sundials', 'nanoflann', 'assimp', 'gmsh'):
- if library in spec:
+ if ('+' + library) in spec:
options.extend([
'-D%s_DIR=%s' % (library.upper(), spec[library].prefix),
'-DDEAL_II_WITH_%s:BOOL=ON' % library.upper()