summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libceed/libceed-v0.8-hip.patch
blob: c947e12efed7d0ac5fb6ee6f421afbff67c70577 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/Makefile b/Makefile
index 4f1737ee..3f1811f2 100644
--- a/Makefile
+++ b/Makefile
@@ -403,6 +403,9 @@ ifneq ($(HIP_LIB_DIR),)
     CPPFLAGS += $(subst =,,$(shell $(HIP_DIR)/bin/hipconfig -C))
   endif
   $(libceeds) : CPPFLAGS += -I$(HIP_DIR)/include
+  ifneq ($(HIPBLAS_DIR),)
+    PKG_LIBS += -L$(HIPBLAS_DIR)/lib
+  endif
   PKG_LIBS += -L$(abspath $(HIP_LIB_DIR)) -lamdhip64 -lhipblas
   LIBCEED_CONTAINS_CXX = 1
   libceed.c   += interface/ceed-hip.c