Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/cmake/FindNCCL.cmake # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / cmake / FindNCCL.cmake` 36 lines ยท 964 bytes Raw Blame History 1 # cmake/FindNCCL.cmake 2 3 # NVIDIA does not distribute CMake files with NCCl, therefore use this file to find it instead. 4 5 find_path(NCCL_INCLUDE_DIR 6 NAMES nccl.h 7 HINTS ${NCCL_ROOT} $ENV{NCCL_ROOT} $ENV{CUDA_HOME} /usr/local/cuda 8 PATH_SUFFIXES include 9 ) 10 11 find_library(NCCL_LIBRARY 12 NAMES nccl 13 HINTS ${NCCL_ROOT} $ENV{NCCL_ROOT} $ENV{CUDA_HOME} /usr/local/cuda 14 PATH_SUFFIXES lib lib64 15 ) 16 17 include(FindPackageHandleStandardArgs) 18 find_package_handle_standard_args(NCCL 19 DEFAULT_MSG 20 NCCL_LIBRARY NCCL_INCLUDE_DIR 21 ) 22 23 if(NCCL_FOUND) 24 set(NCCL_LIBRARIES ${NCCL_LIBRARY}) 25 set(NCCL_INCLUDE_DIRS ${NCCL_INCLUDE_DIR}) 26 27 if(NOT TARGET NCCL::NCCL) 28 add_library(NCCL::NCCL UNKNOWN IMPORTED) 29 set_target_properties(NCCL::NCCL PROPERTIES 30 IMPORTED_LOCATION "${NCCL_LIBRARY}" 31 INTERFACE_INCLUDE_DIRECTORIES "${NCCL_INCLUDE_DIR}" 32 ) 33 endif() 34 endif() 35 36 mark_as_advanced(NCCL_INCLUDE_DIR NCCL_LIBRARY)