summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorKai Torben Ohlhus <k.ohlhus@gmail.com>2020-02-25 18:36:54 +0900
committerGitHub <noreply@github.com>2020-02-25 10:36:54 +0100
commit8d8925c725491cf028ef6c1b93e431dcb200f439 (patch)
tree2c90e0eba910a6ba588458d284ef5ded009fdd66 /var
parent21afb13be6ceb35dde871478f555eb4033abaa49 (diff)
downloadspack-8d8925c725491cf028ef6c1b93e431dcb200f439.tar.gz
spack-8d8925c725491cf028ef6c1b93e431dcb200f439.tar.bz2
spack-8d8925c725491cf028ef6c1b93e431dcb200f439.tar.xz
spack-8d8925c725491cf028ef6c1b93e431dcb200f439.zip
qrupdate: ILP64 support (#15104)
- When compiling qrupdate with `FFLAGS=-fdefault-integer-8` it can be perfectly used for larger problem dimensions. - Improved the readability of the file with the added rules.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/qrupdate/package.py26
1 files changed, 20 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/qrupdate/package.py b/var/spack/repos/builtin/packages/qrupdate/package.py
index 185bd1f421..3f21501711 100644
--- a/var/spack/repos/builtin/packages/qrupdate/package.py
+++ b/var/spack/repos/builtin/packages/qrupdate/package.py
@@ -29,17 +29,31 @@ class Qrupdate(MakefilePackage):
return
def install(self, spec, prefix):
+
lapack_blas = spec['lapack'].libs + spec['blas'].libs
- # Build static and dynamic libraries
- make('lib', 'solib',
- 'BLAS={0}'.format(lapack_blas.ld_flags),
- 'LAPACK={0}'.format(lapack_blas.ld_flags))
- # "INSTALL" confuses "make install" on case-insensitive filesystems
+
+ make_args = [
+ 'BLAS={0}'.format(lapack_blas.ld_flags),
+ 'LAPACK={0}'.format(lapack_blas.ld_flags)
+ ]
+
+ # If 64-bit BLAS is used:
+ if (spec.satisfies('^openblas+ilp64') or
+ spec.satisfies('^intel-mkl+ilp64') or
+ spec.satisfies('^intel-parallel-studio+mkl+ilp64')):
+ make_args.append('FFLAGS=-fdefault-integer-8')
+
+ # Build static and dynamic libraries:
+ make('lib', 'solib', *make_args)
+
+ # "INSTALL" confuses "make install" on case-insensitive filesystems:
if os.path.isfile("INSTALL"):
os.remove("INSTALL")
- # create lib folder:
+
+ # Create lib folder:
if (sys.platform == 'darwin'):
mkdirp(prefix.lib)
+
make("install", "PREFIX=%s" % prefix)
@run_after('install')