Disable ccache for nccl builds (#62208)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/62208

reverts
https://github.com/pytorch/pytorch/pull/55814
which removed a workaround for:
https://github.com/pytorch/pytorch/issues/13362

Test Plan: Imported from OSS

Reviewed By: ejguan

Differential Revision: D29935472

Pulled By: nairbv

fbshipit-source-id: 7ce9cde1408f17153632036fd128814032739746
This commit is contained in:
Brian Vaughan 2021-07-27 08:05:51 -07:00 committed by Facebook GitHub Bot
parent dc55d511d9
commit 2eef1f27f8

View File

@ -22,6 +22,10 @@ if(NOT __NCCL_INCLUDED)
CONFIGURE_COMMAND ""
BUILD_COMMAND
env
# TODO: remove these flags when
# https://github.com/pytorch/pytorch/issues/13362 is fixed
"CCACHE_DISABLE=1"
"SCCACHE_DISABLE=1"
make
"CXX=${CMAKE_CXX_COMPILER}"
"CUDA_HOME=${CUDA_TOOLKIT_ROOT_DIR}"