Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eckit: set cmake BLA_VENDOR #503

Open
wants to merge 10 commits into
base: release/1.9.0
Choose a base branch
from
15 changes: 15 additions & 0 deletions var/spack/repos/builtin/packages/eckit/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,21 @@ def cmake_args(self):
# (the LAPACK backend is still built though):
args.append(self.define("ENABLE_LAPACK", "linalg=lapack" in self.spec))

if self.spec.satisfies("linalg=lapack"):
lapack_vendors = {
"amdlibflame": "AOCL",
"atlas": "ATLAS",
"essl": "IBMESSL",
"flexiblas": "FlexiBLAS",
"fujitsu-ssl2": "Fujitsu_SSL2",
"netlib-lapack": "Generic",
"nvhpc": "NVHPC",
"openblas": "OpenBLAS",
}
if self.spec["lapack"].name in lapack_vendors.keys():
vendor = lapack_vendors[self.spec["lapack"].name]
args.append(self.define("BLA_VENDOR", vendor))

if "+admin" in self.spec and "+termlib" in self.spec["ncurses"]:
# Make sure that libeckit_cmd is linked to a library that resolves 'setupterm',
# 'tputs', etc. That is either libncurses (when 'ncurses~termlib') or libtinfo (when
Expand Down
Loading