pytorch/cmake
Nikita Shulga 6a45584272 Remove __nv_relfatbin section from nccl_static library (#35843)
Summary:
NCCL library is built using [CUDA separate compilation](https://devblogs.nvidia.com/separate-compilation-linking-cuda-device-code/), which consists of building intermediate CUDA binaries and then linking them into GPU code that could be executed on device. Intermediate CUDA code is stored in `__nv_relfatbin` section, and code that can be launched is stored in `.nv_fatbin`. When `nvcc` is used to link executable/shared library, it removes those intermediate binaries, but default host linker is not aware of that and therefore it is kept inside host executable.  Help compiler by removing `__nv_relfatbin` sections from object file inside `libncc_static.a`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35843

Test Plan: Build pytorch with CUDA and run `test_distributed.py`

Differential Revision: D20882224

Pulled By: malfet

fbshipit-source-id: f23dd4aa416518324cb38b9bd6846e73a1c7dd21
2020-04-06 18:23:08 -07:00
..
External Remove __nv_relfatbin section from nccl_static library (#35843) 2020-04-06 18:23:08 -07:00
Modules Upgrade MKL-DNN to DNNL v1.2 (#32422) 2020-03-26 22:07:59 -07:00
Modules_CUDA_fix try to find cudnn header in /usr/include/cuda (#31755) 2020-02-04 14:10:32 -08:00
public Use cufft_static_nocallback (#35813) 2020-04-01 13:43:49 -07:00
BuildVariables.cmake
Caffe2Config.cmake.in Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
Caffe2ConfigVersion.cmake.in Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
cmake_uninstall.cmake.in Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
Codegen.cmake CMake script cleanup - mixed case for function names (#35589) 2020-03-30 11:37:02 -07:00
Dependencies.cmake [WIP] Enable NNC's LLVM dependency in CI (#35564) 2020-04-06 15:54:35 -07:00
GoogleTestPatch.cmake
iOS.cmake Fix/relax CMake linter rules (#35574) 2020-03-27 16:52:33 -07:00
MiscCheck.cmake Fix AVX detection with clang-cl (#35653) 2020-03-30 07:53:37 -07:00
ProtoBuf.cmake Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
ProtoBufPatch.cmake Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
Summary.cmake Report CUDA separate compilation flag (#35726) 2020-04-02 19:35:02 -07:00
TorchConfig.cmake.in Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
TorchConfigVersion.cmake.in Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
Utils.cmake CMake script cleanup - mixed case for function names (#35589) 2020-03-30 11:37:02 -07:00
Whitelist.cmake Fix/relax CMake linter rules (#35574) 2020-03-27 16:52:33 -07:00