From ca977ea9e1afc9742e311b60f9b089f6345ceed8 Mon Sep 17 00:00:00 2001 From: Chris White Date: Thu, 6 Mar 2025 13:43:18 -0800 Subject: [PATCH] Fix missing hipBlas symbol (#49298) Co-authored-by: Eric B. Chin Co-authored-by: Greg Becker --- var/spack/repos/builtin/packages/mfem/package.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/var/spack/repos/builtin/packages/mfem/package.py b/var/spack/repos/builtin/packages/mfem/package.py index 52d459e4167..36ec6a8a98b 100644 --- a/var/spack/repos/builtin/packages/mfem/package.py +++ b/var/spack/repos/builtin/packages/mfem/package.py @@ -282,6 +282,7 @@ class Mfem(Package, CudaPackage, ROCmPackage): depends_on("mpi", when="+mpi") depends_on("hipsparse", when="@4.4.0:+rocm") + depends_on("hipblas", when="@4.4.0:+rocm") with when("+mpi"): depends_on("hypre") @@ -986,9 +987,10 @@ def find_optional_library(name, prefix): if "^rocprim" in spec and not spec["hip"].external: # rocthrust [via petsc+rocm] has a dependency on rocprim hip_headers += spec["rocprim"].headers - if "^hipblas" in spec and not spec["hip"].external: - # superlu-dist+rocm needs the hipblas header path - hip_headers += spec["hipblas"].headers + if "^hipblas" in spec: + hipblas = spec["hipblas"] + hip_headers += hipblas.headers + hip_libs += hipblas.libs if "%cce" in spec: # We assume the proper Cray CCE module (cce) is loaded: proc = str(spec.target.family)