Build test_e2e_tensorpipe only if Gloo is enabled (#43041)

Summary:
test_e2e_tensorpipe depends on ProcessGroupGloo, therefore it could not be tested with Gloo disabled
Otherwise, it re-introduces  https://github.com/pytorch/pytorch/issues/42776

Pull Request resolved: https://github.com/pytorch/pytorch/pull/43041

Reviewed By: lw

Differential Revision: D23122101

Pulled By: malfet

fbshipit-source-id: a8a088b6522a3bc888238ede5c2d589b83c6ea94
This commit is contained in:
Nikita Shulga
2020-08-14 09:23:26 -07:00
committed by Facebook GitHub Bot
parent 31788ae151
commit 2f9fd8ad29

View File

@ -3,8 +3,6 @@ set(TORCH_RPC_TEST_SOURCES
${TORCH_ROOT}/test/cpp/common/main.cpp
${TORCH_RPC_TEST_DIR}/e2e_test_base.cpp
${TORCH_RPC_TEST_DIR}/test_wire_serialization.cpp
${TORCH_RPC_TEST_DIR}/test_e2e_process_group.cpp
${TORCH_RPC_TEST_DIR}/test_e2e_tensorpipe.cpp
)
set(TORCH_RPC_TEST_DEPENDENCY_LIBS
torch c10d gtest process_group_agent tensorpipe_agent
@ -13,6 +11,7 @@ set(TORCH_RPC_TEST_DEPENDENCY_LIBS
if(USE_GLOO)
list(APPEND TORCH_RPC_TEST_SOURCES
${TORCH_RPC_TEST_DIR}/test_e2e_process_group.cpp
${TORCH_RPC_TEST_DIR}/test_e2e_tensorpipe.cpp
)
endif()