You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

nccl.cmake 665 B

12345678910111213141516171819
  1. if(ENABLE_GITEE)
  2. set(REQ_URL "https://gitee.com/mirrors/nccl/repository/archive/v2.7.6-1.tar.gz")
  3. set(MD5 "220d232b30cb9bff2e54219399b9f6fb")
  4. else()
  5. set(REQ_URL "https://github.com/NVIDIA/nccl/archive/v2.7.6-1.tar.gz")
  6. set(MD5 "073b19899f374c5ba07d2db02dc38f9f")
  7. endif()
  8. set(nccl_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
  9. mindspore_add_pkg(nccl
  10. VER 2.7.6-1
  11. LIBS nccl
  12. URL ${REQ_URL}
  13. MD5 ${MD5}
  14. BUILD_OPTION src.build NVCC_GENCODE="-gencode=arch=compute_70,code=sm_70"
  15. INSTALL_INCS build/include/*
  16. INSTALL_LIBS build/lib/*)
  17. include_directories(${nccl_INC})
  18. add_library(mindspore::nccl ALIAS nccl::nccl)