Update NCCL to v2.13.4-1 (#82775)

Also, update slimming script to include two instances of net.o that new library generates
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82775
Approved by: https://github.com/ngimel
This commit is contained in:
Nikita Shulga 2022-08-03 23:26:48 +00:00 committed by PyTorch MergeBot
parent 61b1301ed8
commit c08092fdf2
2 changed files with 4 additions and 2 deletions

View File

@ -54,6 +54,8 @@ if(NOT __NCCL_INCLUDED)
COMMAND "${CMAKE_AR}" x "${__NCCL_BUILD_DIR}/lib/libnccl_static.a"
COMMAND for obj in all_gather_* all_reduce_* broadcast_* reduce_*.o$<SEMICOLON> do "${CMAKE_OBJCOPY}" --remove-relocations .nvFatBinSegment --remove-section __nv_relfatbin $$obj$<SEMICOLON> done
COMMAND "${CMAKE_AR}" cr "${__NCCL_BUILD_DIR}/lib/libnccl_slim_static.a" "*.o"
COMMAND "${CMAKE_AR}" xN 1 "${__NCCL_BUILD_DIR}/lib/libnccl_static.a" net.o
COMMAND "${CMAKE_AR}" q "${__NCCL_BUILD_DIR}/lib/libnccl_slim_static.a" net.o
COMMAND cd -
COMMAND "${CMAKE_COMMAND}" -E remove_directory "${__NCCL_BUILD_DIR}/objects"
WORKING_DIRECTORY "${__NCCL_BUILD_DIR}"

@ -1 +1 @@
Subproject commit 7e515921295adaab72adf56ea71a0fafb0ecb5f3
Subproject commit 19ab67d1727d337d10d0a48cbaf5cd119b8d88f1