Skip to content

Commit

Permalink
update spack package for lapack
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Feb 15, 2024
1 parent a39a1ab commit d97f7b9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ def cmake_args(self):
if self.spec.satisfies("@5:"):
args.append(self.define_from_variant("BUILD_DEPRECATED", "deprecated"))

if self.spec.satisfies("@develop"):
# Use the LAPACK provider set by Spack even if the compiler supports native BLAS
bla_vendors = {"openblas": "OpenBLAS"}
lapack_provider = self.spec["lapack"].name
if lapack_provider in bla_vendors.keys():
bla_vendor = bla_vendors[lapack_provider]
else:
bla_vendor = "All"
args.append(self.define("BLA_VENDOR", bla_vendor))

return args

def setup_run_environment(self, env):
Expand Down

0 comments on commit d97f7b9

Please sign in to comment.