Skip to content

Commit

Permalink
eckit: set BLA_VENDOR
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA authored Jan 2, 2025
1 parent 47e7c2d commit f8e8cb7
Showing 1 changed file with 15 additions and 0 deletions.
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 @@ -156,6 +156,21 @@ def cmake_args(self):
self.define("ENABLE_SANDBOX", False),
]

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

# Static build of eckit not working, many places in eckit's build
# system have SHARED hardcoded (in several CMakeLists.txt files).
args.append("-DBUILD_SHARED_LIBS=ON")
Expand Down

0 comments on commit f8e8cb7

Please sign in to comment.