Skip to content

Commit b0b06d3

Browse files
committed
rocm job failed at merge time, using export LD_LIBRARY_PATH
1 parent 665f140 commit b0b06d3

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.ci/pytorch/test.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,16 +1156,14 @@ test_libtorch_jit() {
11561156

11571157
test_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

11711169
test_libtorch_api() {

0 commit comments

Comments
 (0)