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.
This commit is contained in:
parent
21afb13be6
commit
8d8925c725
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user