summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluker <luke.roskop@hpe.com>2022-01-06 12:44:28 -0600
committerGitHub <noreply@github.com>2022-01-06 13:44:28 -0500
commit27cbf46dd6f93f13e00cd7aea12fc4402fe05ed0 (patch)
tree8f3f6283ea7cead02102b19b7f96f20d0b4b616a
parent83a98c38076860e677a7dccda150c12637e5a0f0 (diff)
downloadspack-27cbf46dd6f93f13e00cd7aea12fc4402fe05ed0.tar.gz
spack-27cbf46dd6f93f13e00cd7aea12fc4402fe05ed0.tar.bz2
spack-27cbf46dd6f93f13e00cd7aea12fc4402fe05ed0.tar.xz
spack-27cbf46dd6f93f13e00cd7aea12fc4402fe05ed0.zip
lapackpp: set BLA_VENDOR for cray (#28125)
-rw-r--r--var/spack/repos/builtin/packages/lapackpp/package.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/lapackpp/package.py b/var/spack/repos/builtin/packages/lapackpp/package.py
index 72f7722479..22fe23cb66 100644
--- a/var/spack/repos/builtin/packages/lapackpp/package.py
+++ b/var/spack/repos/builtin/packages/lapackpp/package.py
@@ -45,12 +45,18 @@ class Lapackpp(CMakePackage):
def cmake_args(self):
spec = self.spec
- return [
+
+ args = [
'-DBUILD_SHARED_LIBS=%s' % ('+shared' in spec),
'-Dbuild_tests=%s' % self.run_tests,
'-DLAPACK_LIBRARIES=%s' % spec['lapack'].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')):
@@ -58,3 +64,8 @@ class Lapackpp(CMakePackage):
make('check')
else:
raise Exception('The tester was not built!')
+
+ def flag_handler(self, name, flags):
+ if (self.spec['blas'].name == 'cray-libsci') and name == 'cxxflags':
+ flags.append('-DLAPACK_FORTRAN_ADD_')
+ return (None, None, flags)