File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -184,5 +184,5 @@ endif()
184
184
if (NCCL_FOUND)
185
185
add_definitions (-DUSE_NCCL)
186
186
include_directories (SYSTEM ${NCCL_INCLUDE} )
187
- list (APPEND Caffe_LINKER_LIBS ${NCCL_LIBRARIES } )
187
+ list (APPEND Caffe_LINKER_LIBS ${NCCL_LIBRARY } )
188
188
endif ()
Original file line number Diff line number Diff line change 6
6
# The following are set after configuration is done:
7
7
# NCCL_FOUND
8
8
# NCCL_INCLUDE_DIR
9
- # NCCL_LIBRARIES
9
+ # NCCL_LIBRARY
10
10
11
- find_path (NCCL_INCLUDE_DIR NAMES nccl.h PATHS ${NCCL_ROOT_DIR} )
11
+ find_path (NCCL_INCLUDE_DIR NAMES nccl.h
12
+ PATHS ${NCCL_ROOT_DIR} /include
13
+ )
12
14
13
- find_library (NCCL_LIBRARIES NAMES nccl PATHS ${NCCL_ROOT_DIR} )
15
+ find_library (NCCL_LIBRARY NAMES nccl
16
+ PATHS ${NCCL_ROOT_DIR} /lib ${NCCL_ROOT_DIR} /lib64)
14
17
15
18
include (FindPackageHandleStandardArgs)
16
- find_package_handle_standard_args(NCCL DEFAULT_MSG NCCL_INCLUDE_DIR NCCL_LIBRARIES )
19
+ find_package_handle_standard_args(NCCL DEFAULT_MSG NCCL_INCLUDE_DIR NCCL_LIBRARY )
17
20
18
21
if (NCCL_FOUND)
19
- message (STATUS "Found NCCL (include: ${NCCL_INCLUDE_DIR} , library: ${NCCL_LIBRARIES } )" )
20
- mark_as_advanced (NCCL_INCLUDE_DIR NCCL_LIBRARIES )
22
+ message (STATUS "Found NCCL (include: ${NCCL_INCLUDE_DIR} , library: ${NCCL_LIBRARY } )" )
23
+ mark_as_advanced (NCCL_INCLUDE_DIR NCCL_LIBRARY )
21
24
endif ()
22
25
You can’t perform that action at this time.
0 commit comments