This issue is a result of a Codex global repository scan.
SetupCuSolverMp.cmake tells users to set CUSOLVERMP_PATH, but the actual search hints use CAL_CUSOLVERMP_PATH and NVHPC_ROOT_DIR. CollectBuildInfoVars.cmake also reports only CAL_CUSOLVERMP_PATH. Users following the error message can still get “not found”.
Search hints and error message:
|
# Find cuSOLVERMp first, then decide communicator backend. |
|
find_library(CUSOLVERMP_LIBRARY NAMES cusolverMp |
|
HINTS ${CAL_CUSOLVERMP_PATH} ${NVHPC_ROOT_DIR} |
|
PATH_SUFFIXES lib lib64 math_libs/lib math_libs/lib64) |
|
|
|
find_path(CUSOLVERMP_INCLUDE_DIR NAMES cusolverMp.h |
|
HINTS ${CAL_CUSOLVERMP_PATH} ${NVHPC_ROOT_DIR} |
|
PATH_SUFFIXES include math_libs/include) |
|
|
|
if(NOT CUSOLVERMP_LIBRARY OR NOT CUSOLVERMP_INCLUDE_DIR) |
|
message(FATAL_ERROR |
|
"cuSOLVERMp not found. Set CUSOLVERMP_PATH or NVHPC_ROOT_DIR." |
|
) |
Build info path reporting:
|
if(DEFINED CAL_CUSOLVERMP_PATH AND ENABLE_CUSOLVERMP) |
|
set(ABACUS_CUSOLVERMP_VERSION "yes (path: ${CAL_CUSOLVERMP_PATH})") |
|
elseif(ENABLE_CUSOLVERMP) |
|
set(ABACUS_CUSOLVERMP_VERSION "yes (version unknown)") |
Relevant code:
find_library(CUSOLVERMP_LIBRARY NAMES cusolverMp
HINTS ${CAL_CUSOLVERMP_PATH} ${NVHPC_ROOT_DIR}
...)
...
message(FATAL_ERROR
"cuSOLVERMp not found. Set CUSOLVERMP_PATH or NVHPC_ROOT_DIR."
)
Suggested fix:
Either accept both CUSOLVERMP_PATH and CAL_CUSOLVERMP_PATH as aliases in the search/build-info logic, or update the error message and documentation to the actual supported variable.
This issue is a result of a Codex global repository scan.
SetupCuSolverMp.cmaketells users to setCUSOLVERMP_PATH, but the actual search hints useCAL_CUSOLVERMP_PATHandNVHPC_ROOT_DIR.CollectBuildInfoVars.cmakealso reports onlyCAL_CUSOLVERMP_PATH. Users following the error message can still get “not found”.Search hints and error message:
abacus-develop/cmake/SetupCuSolverMp.cmake
Lines 10 to 22 in 84ca04b
Build info path reporting:
abacus-develop/cmake/CollectBuildInfoVars.cmake
Lines 265 to 268 in 84ca04b
Relevant code:
Suggested fix:
Either accept both
CUSOLVERMP_PATHandCAL_CUSOLVERMP_PATHas aliases in the search/build-info logic, or update the error message and documentation to the actual supported variable.