blaspp: set BLA_VENDOR for cray (#28104)

* for Cray's libsci in blaspp, set BLA_VENDOR=all

* Update package.py

* Update package.py

* Update package.py
This commit is contained in:
luker 2022-01-08 14:41:50 -06:00 committed by GitHub
parent 334102addd
commit 0277067e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,8 @@ def cmake_args(self):
if '+rocm' in spec:
backend = 'hip'
backend_config = '-Dgpu_backend=%s' % backend
return [
args = [
'-Dbuild_tests=%s' % self.run_tests,
'-Duse_openmp=%s' % ('+openmp' in spec),
'-DBUILD_SHARED_LIBS=%s' % ('+shared' in spec),
@ -61,6 +62,11 @@ def cmake_args(self):
'-DBLAS_LIBRARIES=%s' % spec['blas'].libs.joined(';')
]
if spec['blas'].name == 'cray-libsci':
args.append(self.define('BLA_VENDOR', 'CRAY'))
return args
def check(self):
# If the tester fails to build, ensure that the check() fails.
if os.path.isfile(join_path(self.build_directory, 'test', 'tester')):