Compare commits

...
Author SHA1 Message Date
EB Chin 7a161e39d6 add rocblas and rocsolver 2025-02-10 16:49:31 -08:00
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -24,6 +24,8 @@ if (HYPRE_FOUND)
if (HYPRE_USING_HIP)
find_package(rocsparse REQUIRED)
find_package(rocrand REQUIRED)
find_package(rocblas REQUIRED)
find_package(rocsolver REQUIRED)
endif()
return()
endif()
@@ -90,7 +92,9 @@ endif()
if (HYPRE_FOUND AND HYPRE_USING_HIP)
find_package(rocsparse REQUIRED)
find_package(rocrand REQUIRED)
list(APPEND HYPRE_LIBRARIES ${rocsparse_LIBRARIES} ${rocrand_LIBRARIES})
find_package(rocblas REQUIRED)
find_package(rocsolver REQUIRED)
list(APPEND HYPRE_LIBRARIES ${rocsparse_LIBRARIES} ${rocrand_LIBRARIES} ${rocblas_LIBRARIES} ${rocsolver_LIBRARIES})
set(HYPRE_LIBRARIES ${HYPRE_LIBRARIES} CACHE STRING
"HYPRE libraries + dependencies." FORCE)
message(STATUS "Updated HYPRE_LIBRARIES: ${HYPRE_LIBRARIES}")
+1 -1
View File
@@ -231,7 +231,7 @@ endif
ifeq (YES,$(MFEM_USE_HIP))
# This is only necessary when hypre is built with hip:
HYPRE_LIB += -L$(HIP_DIR)/lib $(XLINKER)-rpath,$(HIP_DIR)/lib\
-lrocsparse -lrocrand
-lrocsparse -lrocrand -lrocblas -lrocsolver
endif
# METIS library configuration