Skip to content
Snippets Groups Projects
Unverified Commit 8d8925c7 authored by Kai Torben Ohlhus's avatar Kai Torben Ohlhus Committed by GitHub
Browse files

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.
parent 21afb13b
No related branches found
No related tags found
No related merge requests found
...@@ -29,17 +29,31 @@ def edit(self, spec, prefix): ...@@ -29,17 +29,31 @@ def edit(self, spec, prefix):
return return
def install(self, spec, prefix): def install(self, spec, prefix):
lapack_blas = spec['lapack'].libs + spec['blas'].libs lapack_blas = spec['lapack'].libs + spec['blas'].libs
# Build static and dynamic libraries
make('lib', 'solib', make_args = [
'BLAS={0}'.format(lapack_blas.ld_flags), 'BLAS={0}'.format(lapack_blas.ld_flags),
'LAPACK={0}'.format(lapack_blas.ld_flags)) 'LAPACK={0}'.format(lapack_blas.ld_flags)
# "INSTALL" confuses "make install" on case-insensitive filesystems ]
# 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"): if os.path.isfile("INSTALL"):
os.remove("INSTALL") os.remove("INSTALL")
# create lib folder:
# Create lib folder:
if (sys.platform == 'darwin'): if (sys.platform == 'darwin'):
mkdirp(prefix.lib) mkdirp(prefix.lib)
make("install", "PREFIX=%s" % prefix) make("install", "PREFIX=%s" % prefix)
@run_after('install') @run_after('install')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment