File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1156,16 +1156,14 @@ test_libtorch_jit() {
11561156
11571157test_libtorch_profiler () {
11581158 echo " Testing profiler C++ tests"
1159- ln -sf " $TORCH_LIB_DIR " /libc10 * " $ TORCH_BIN_DIR"
1160- ln -sf " $ TORCH_LIB_DIR" /libtorch * " $TORCH_BIN_DIR "
1159+ export CPP_TESTS_DIR= " ${ TORCH_BIN_DIR} "
1160+ export LD_LIBRARY_PATH= " ${ TORCH_LIB_DIR} : ${LD_LIBRARY_PATH} "
11611161
1162- # Run E2E test in its own process (needs clean Kineto state)
1163- " ${TORCH_BIN_DIR} /test_privateuse1_profiler" \
1164- --gtest_filter=PrivateUse1ProfilerTest.EndToEndProfiling
1162+ # Run E2E test first (needs clean Kineto state)
1163+ python test/run_test.py --cpp --verbose -i cpp/test_privateuse1_profiler -k " EndToEndProfiling"
11651164
1166- # Run all other tests in a separate process
1167- " ${TORCH_BIN_DIR} /test_privateuse1_profiler" \
1168- --gtest_filter=-PrivateUse1ProfilerTest.EndToEndProfiling
1165+ # Run all other tests
1166+ python test/run_test.py --cpp --verbose -i cpp/test_privateuse1_profiler -k " not EndToEndProfiling"
11691167}
11701168
11711169test_libtorch_api () {
You can’t perform that action at this time.
0 commit comments