blis: FIX threads option, HPL: enable opemp variant for 2.3 (#16476)

* blis: FIX threads option

* HPL: openmp variant is ignored for 2.3

* blis: FIX flake8

* blis: FIX spacing

* Update var/spack/repos/builtin/packages/hpl/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* hpl: FIX spec --> self.spec, FIX blas with amdblis

* HPL: fix flake8

* HPL: FIX flake8

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
yellowhat 2020-05-06 21:36:29 +01:00 committed by GitHub
parent 1aacdc4e18
commit d1983d7395
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View file

@ -104,7 +104,9 @@ def darwin_fix(self):
@property
def libs(self):
return find_libraries(['libblis'], root=self.prefix, recursive=True)
return find_libraries(
["libblis", "libblis-mt"], root=self.prefix, recursive=True
)
class Blis(BlisBase):

View file

@ -101,9 +101,15 @@ def configure(self, spec, prefix):
@when('@2.3:')
def configure_args(self):
config = [
'CFLAGS=-O3'
]
filter_file(
r"^libs10=.*", "libs10=%s" % self.spec["blas"].libs.ld_flags,
"configure"
)
if '+openmp' in self.spec:
config = ['CFLAGS=-O3 ' + self.compiler.openmp_flag]
else:
config = ['CFLAGS=-O3']
if (self.spec.satisfies('^intel-mkl') or
self.spec.satisfies('^intel-parallel-studio+mkl')):