Skip to content

Commit

Permalink
replace hardcoded variable settings in ACML with new Toolchain._add_d…
Browse files Browse the repository at this point in the history
…ependency_liker_paths and Toolchain._add_dependency_cpp_headers methods
  • Loading branch information
lexming committed Sep 18, 2024
1 parent 3493861 commit 3b3e9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/toolchains/linalg/acml.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def _set_blas_variables(self):
for root in self.get_software_root(self.BLAS_MODULE_NAME):
subdirs = self.ACML_SUBDIRS_MAP[self.COMPILER_FAMILY]
self.BLAS_LIB_DIR = [os.path.join(x, 'lib') for x in subdirs]
self.variables.append_exists('LDFLAGS', root, self.BLAS_LIB_DIR, append_all=True)
self._add_dependency_linker_paths(root, extra_dirs=self.BLAS_LIB_DIR)
incdirs = [os.path.join(x, 'include') for x in subdirs]
self.variables.append_exists('CPPFLAGS', root, incdirs, append_all=True)
self._add_dependency_cpp_headers(root, extra_dirs=incdirs)
except Exception:
raise EasyBuildError("_set_blas_variables: ACML set LDFLAGS/CPPFLAGS unknown entry in ACML_SUBDIRS_MAP "
"with compiler family %s", self.COMPILER_FAMILY)
Expand Down

0 comments on commit 3b3e9d1

Please sign in to comment.