Skip to content

Commit 5318a96

Browse files
authored
Change to manually specifying the link libraries for CAL and cusolverMp
1 parent a145e53 commit 5318a96

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

CMakeLists.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,19 @@ if(USE_CUDA)
352352
endif()
353353
if (ENABLE_CUSOLVERMP)
354354
add_compile_definitions(__CUSOLVERMP)
355+
find_library(CAL_LIBRARY
356+
NAMES cal
357+
PATHS ${CAL_CUSOLVERMP_PATH}
358+
NO_DEFAULT_PATH
359+
)
360+
find_library(CUSOLVERMP_LIBRARY
361+
NAMES cusolverMp
362+
PATHS ${CAL_CUSOLVERMP_PATH}
363+
NO_DEFAULT_PATH
364+
)
355365
target_link_libraries(${ABACUS_BIN_NAME}
356-
cal
357-
cusolverMp
366+
${CAL_LIBRARY}
367+
${CUSOLVERMP_LIBRARY}
358368
)
359369
endif()
360370
endif()

0 commit comments

Comments
 (0)