Skip to content

Commit f380c10

Browse files
authored
Use hint for find nccl. (dmlc#9490)
1 parent 12fe2fc commit f380c10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/modules/FindNccl.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ endif (BUILD_WITH_SHARED_NCCL)
5252

5353
find_path(NCCL_INCLUDE_DIR
5454
NAMES nccl.h
55-
PATHS $ENV{NCCL_ROOT}/include ${NCCL_ROOT}/include)
55+
HINTS ${NCCL_ROOT}/include $ENV{NCCL_ROOT}/include)
5656

5757
find_library(NCCL_LIBRARY
5858
NAMES ${NCCL_LIB_NAME}
59-
PATHS $ENV{NCCL_ROOT}/lib/ ${NCCL_ROOT}/lib)
59+
HINTS ${NCCL_ROOT}/lib $ENV{NCCL_ROOT}/lib/)
6060

6161
message(STATUS "Using nccl library: ${NCCL_LIBRARY}")
6262

0 commit comments

Comments
 (0)