flake8 fixes for superlu-dist
This commit is contained in:
parent
3d3a26cd9a
commit
6d714e4425
@ -25,8 +25,10 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
|
|
||||||
class SuperluDist(Package):
|
class SuperluDist(Package):
|
||||||
"""A general purpose library for the direct solution of large, sparse, nonsymmetric systems of linear equations on high performance machines."""
|
"""A general purpose library for the direct solution of large, sparse,
|
||||||
|
nonsymmetric systems of linear equations on high performance machines."""
|
||||||
homepage = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/"
|
homepage = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/"
|
||||||
url = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_dist_4.1.tar.gz"
|
url = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_dist_4.1.tar.gz"
|
||||||
|
|
||||||
@ -49,16 +51,20 @@ def install(self, spec, prefix):
|
|||||||
'DSuperLUroot = %s' % self.stage.source_path,
|
'DSuperLUroot = %s' % self.stage.source_path,
|
||||||
'DSUPERLULIB = $(DSuperLUroot)/lib/libsuperlu_dist.a',
|
'DSUPERLULIB = $(DSuperLUroot)/lib/libsuperlu_dist.a',
|
||||||
'BLASDEF = -DUSE_VENDOR_BLAS',
|
'BLASDEF = -DUSE_VENDOR_BLAS',
|
||||||
'BLASLIB = %s %s' % (to_link_flags(spec['lapack'].lapack_shared_lib),to_link_flags(spec['blas'].blas_shared_lib)),
|
'BLASLIB = %s %s' %
|
||||||
|
(to_link_flags(spec['lapack'].lapack_shared_lib),
|
||||||
|
to_link_flags(spec['blas'].blas_shared_lib)),
|
||||||
'METISLIB = -L%s -lmetis' % spec['metis'].prefix.lib,
|
'METISLIB = -L%s -lmetis' % spec['metis'].prefix.lib,
|
||||||
'PARMETISLIB = -L%s -lparmetis' % spec['parmetis'].prefix.lib,
|
'PARMETISLIB = -L%s -lparmetis' % spec['parmetis'].prefix.lib,
|
||||||
'FLIBS =',
|
'FLIBS =',
|
||||||
'LIBS = $(DSUPERLULIB) $(BLASLIB) $(PARMETISLIB) $(METISLIB)',
|
'LIBS = $(DSUPERLULIB) $(BLASLIB) $(PARMETISLIB) $(METISLIB)', # NOQA: ignore=E501
|
||||||
'ARCH = ar',
|
'ARCH = ar',
|
||||||
'ARCHFLAGS = cr',
|
'ARCHFLAGS = cr',
|
||||||
'RANLIB = true',
|
'RANLIB = true',
|
||||||
'CC = %s' % spec['mpi'].mpicc,
|
'CC = %s' % spec['mpi'].mpicc,
|
||||||
'CFLAGS = -fPIC -std=c99 -O2 -I%s -I%s' %(spec['parmetis'].prefix.include, spec['metis'].prefix.include),
|
'CFLAGS = -fPIC -std=c99 -O2 -I%s -I%s' %
|
||||||
|
(spec['parmetis'].prefix.include,
|
||||||
|
spec['metis'].prefix.include),
|
||||||
'NOOPTS = -fPIC -std=c99',
|
'NOOPTS = -fPIC -std=c99',
|
||||||
'FORTRAN = %s' % spec['mpi'].mpif77,
|
'FORTRAN = %s' % spec['mpi'].mpif77,
|
||||||
'F90FLAGS = -O2',
|
'F90FLAGS = -O2',
|
||||||
@ -67,7 +73,6 @@ def install(self, spec, prefix):
|
|||||||
'CDEFS = -DAdd_'
|
'CDEFS = -DAdd_'
|
||||||
])
|
])
|
||||||
|
|
||||||
#with working_dir('src'):
|
|
||||||
with open('make.inc', 'w') as fh:
|
with open('make.inc', 'w') as fh:
|
||||||
fh.write('\n'.join(makefile_inc))
|
fh.write('\n'.join(makefile_inc))
|
||||||
|
|
||||||
@ -86,5 +91,6 @@ def install(self, spec, prefix):
|
|||||||
for h in headers:
|
for h in headers:
|
||||||
install(h, headers_location)
|
install(h, headers_location)
|
||||||
|
|
||||||
superludist_lib = join_path(self.stage.source_path, 'lib/libsuperlu_dist.a')
|
superludist_lib = join_path(self.stage.source_path,
|
||||||
|
'lib/libsuperlu_dist.a')
|
||||||
install(superludist_lib, self.prefix.lib)
|
install(superludist_lib, self.prefix.lib)
|
||||||
|
Loading…
Reference in New Issue
Block a user