Skip to content

Commit 11d0e80

Browse files
authored
hypre with hip GNUmake improvements (#4514)
When compiling with HIP and HYPRE, use the `rocblas` and `rocsolver` libraries (similar to additional libraries for CUDA + HYPRE) so these don't have to be turned off when building HYPRE. Also, check in `lib64` for the HYPRE library, which is where it gets put when building HYPRE with cmake. These modifications helped with building PeleLMeX with HYPRE support on Frontier.
1 parent a438488 commit 11d0e80

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Tools/GNUMake/packages/Make.hypre

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ endif
1414
ifdef AMREX_HYPRE_HOME
1515
HYPRE_ABSPATH = $(abspath $(AMREX_HYPRE_HOME))
1616
SYSTEM_INCLUDE_LOCATIONS += $(HYPRE_ABSPATH)/include
17-
LIBRARY_LOCATIONS += $(HYPRE_ABSPATH)/lib
18-
LIBRARIES += -Wl,-rpath,$(HYPRE_ABSPATH)/lib -lHYPRE
17+
LIBRARY_LOCATIONS += $(HYPRE_ABSPATH)/lib $(HYPRE_ABSPATH)/lib64
18+
LIBRARIES += -Wl,-rpath,$(HYPRE_ABSPATH)/lib -Wl,-rpath,$(HYPRE_ABSPATH)/lib64 -lHYPRE
1919
endif
2020

2121
ifeq ($(USE_CUDA),TRUE)
2222
LIBRARIES += -lcusparse -lcurand -lcublas
2323
endif
24+
25+
ifeq ($(USE_HIP),TRUE)
26+
LIBRARIES += -lrocblas -lrocsolver
27+
endif

0 commit comments

Comments
 (0)