Revert "Always build USE_DISTRIBUTED. (#160449)"

This reverts commit de893e96c775023aa3be895060848fac3296772c.

Reverted https://github.com/pytorch/pytorch/pull/160449 on behalf of https://github.com/jeanschmidt due to internal changes breaks import checks, see [D81845053](https://www.internalfb.com/diff/D81845053) ([comment](https://github.com/pytorch/pytorch/pull/160449#issuecomment-3264887002))
This commit is contained in:
PyTorch MergeBot
2025-09-08 07:04:36 +00:00
parent 29e09a6545
commit 1e0656f063
29 changed files with 213 additions and 124 deletions

View File

@ -1,4 +1,4 @@
if(NOT WIN32)
if(USE_DISTRIBUTED AND NOT WIN32)
set(DIST_AUTOGRAD_TEST_DIR "${TORCH_ROOT}/test/cpp/dist_autograd")
set(DIST_AUTOGRAD_TEST_SOURCES
${TORCH_ROOT}/test/cpp/common/main.cpp