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 667 B

12345678910111213141516171819
  1. if (ENABLE_GITEE)
  2. set(REQ_URL "https://gitee.com/mirrors/nccl/repository/archive/v2.4.8-1.tar.gz")
  3. set(MD5 "e3078a91635f6ac12927e9fa5a7248ec")
  4. else()
  5. set(REQ_URL "https://github.com/NVIDIA/nccl/archive/v2.4.8-1.tar.gz")
  6. set(MD5 "f14b37d6af1c79db5f57cb029a753727")
  7. endif ()
  8. set(nccl_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
  9. mindspore_add_pkg(nccl
  10. VER 2.4.8-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)