@@ -693,7 +693,6 @@ test_aten() {
693693 ${SUDO} ln -sf " $TORCH_LIB_DIR " /libmkldnn* " $TEST_BASE_DIR "
694694 ${SUDO} ln -sf " $TORCH_LIB_DIR " /libnccl* " $TEST_BASE_DIR "
695695 ${SUDO} ln -sf " $TORCH_LIB_DIR " /libtorch* " $TEST_BASE_DIR "
696- ${SUDO} ln -sf " $TORCH_LIB_DIR " /libtbb* " $TEST_BASE_DIR "
697696
698697 ls " $TEST_BASE_DIR "
699698 aten/tools/run_tests.sh " $TEST_BASE_DIR "
@@ -718,21 +717,6 @@ test_without_numpy() {
718717 popd
719718}
720719
721- # pytorch extensions require including torch/extension.h which includes all.h
722- # which includes utils.h which includes Parallel.h.
723- # So you can call for instance parallel_for() from your extension,
724- # but the compilation will fail because of Parallel.h has only declarations
725- # and definitions are conditionally included Parallel.h(see last lines of Parallel.h).
726- # I tried to solve it #39612 and #39881 by including Config.h into Parallel.h
727- # But if Pytorch is built with TBB it provides Config.h
728- # that has AT_PARALLEL_NATIVE_TBB=1(see #3961 or #39881) and it means that if you include
729- # torch/extension.h which transitively includes Parallel.h
730- # which transitively includes tbb.h which is not available!
731- if [[ " ${BUILD_ENVIRONMENT} " == * tbb* ]]; then
732- sudo mkdir -p /usr/include/tbb
733- sudo cp -r " $PWD " /third_party/tbb/include/tbb/* /usr/include/tbb
734- fi
735-
736720test_libtorch () {
737721 local SHARD=" $1 "
738722
@@ -746,7 +730,6 @@ test_libtorch() {
746730 ln -sf " $TORCH_LIB_DIR " /libc10* " $TORCH_BIN_DIR "
747731 ln -sf " $TORCH_LIB_DIR " /libshm* " $TORCH_BIN_DIR "
748732 ln -sf " $TORCH_LIB_DIR " /libtorch* " $TORCH_BIN_DIR "
749- ln -sf " $TORCH_LIB_DIR " /libtbb* " $TORCH_BIN_DIR "
750733 ln -sf " $TORCH_LIB_DIR " /libnvfuser* " $TORCH_BIN_DIR "
751734
752735 export CPP_TESTS_DIR=" ${TORCH_BIN_DIR} "
@@ -883,7 +866,6 @@ test_rpc() {
883866 # test reporting process to function as expected.
884867 ln -sf " $TORCH_LIB_DIR " /libtorch* " $TORCH_BIN_DIR "
885868 ln -sf " $TORCH_LIB_DIR " /libc10* " $TORCH_BIN_DIR "
886- ln -sf " $TORCH_LIB_DIR " /libtbb* " $TORCH_BIN_DIR "
887869
888870 CPP_TESTS_DIR=" ${TORCH_BIN_DIR} " python test/run_test.py --cpp --verbose -i cpp/test_cpp_rpc
889871}
0 commit comments