libceed: add BLAS_DIR and link time blas dependency (#50033)

This commit is contained in:
Cameron Rutherford 2025-04-17 23:52:04 -07:00 committed by GitHub
parent 9e65bd5837
commit 31ce23f3fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,6 +55,7 @@ class Libceed(MakefilePackage, CudaPackage, ROCmPackage):
depends_on("occa~cuda", when="~cuda")
depends_on("libxsmm", when="+libxsmm")
depends_on("blas", when="+libxsmm", type="link")
depends_on("magma", when="+magma")
@ -136,6 +137,7 @@ def common_make_opts(self):
if spec.satisfies("+libxsmm"):
makeopts += ["XSMM_DIR=%s" % spec["libxsmm"].prefix]
makeopts += ["BLAS_LIB=%s" % spec["blas"].libs]
if spec.satisfies("+magma"):
makeopts += ["MAGMA_DIR=%s" % spec["magma"].prefix]