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:
parent
334102addd
commit
0277067e5f
@ -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')):
|
||||
|
Loading…
Reference in New Issue
Block a user