cmake: Enable (s)ccache for nccl builds (#55814)

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

I don't really know if the original issue is resolved but let's just
check and see if this passes CI so that we can potentially get some
speed up on our builds

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Test Plan: Imported from OSS

Reviewed By: walterddr

Differential Revision: D27715734

Pulled By: seemethere

fbshipit-source-id: a8f90774dfd25b0abf8e57283fe3591a8d8f3c4b
This commit is contained in:
Eli Uriegas 2021-04-13 14:44:06 -07:00 committed by Facebook GitHub Bot
parent c47cc30bf5
commit b98f011cd4

View file

@ -22,10 +22,6 @@ 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}"