mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Pass CUDA_NVCC_EXECUTABLE to NCCL build
Summary: If this variable is set to a ccache symlink then the NCCL build will also use the cache. The NCCL build is the slowest component of a cached build without this change Closes https://github.com/caffe2/caffe2/pull/1416 Reviewed By: Yangqing Differential Revision: D6214008 Pulled By: pietern fbshipit-source-id: e0a90e27de9b1c5a1fdc0e5bad5fb61f9fa924c3
This commit is contained in:
committed by
Facebook Github Bot
parent
72a5bb3c09
commit
2c10b13eeb
5
cmake/External/nccl.cmake
vendored
5
cmake/External/nccl.cmake
vendored
@ -23,7 +23,10 @@ if (NOT __NCCL_INCLUDED)
|
||||
BUILD_IN_SOURCE 1
|
||||
CONFIGURE_COMMAND ""
|
||||
BUILD_COMMAND
|
||||
make "CXX=${CMAKE_CXX_COMPILER}" "CUDA_HOME=${CUDA_TOOLKIT_ROOT_DIR}"
|
||||
make
|
||||
"CXX=${CMAKE_CXX_COMPILER}"
|
||||
"CUDA_HOME=${CUDA_TOOLKIT_ROOT_DIR}"
|
||||
"NVCC=${CUDA_NVCC_EXECUTABLE}"
|
||||
INSTALL_COMMAND ""
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user