Skip to content

Commit 0c1f101

Browse files
committed
Temporarily increase Python benchmark timeout
Increase the timeout of the Python benchmarks with `thread` progress mode to avoid hitting rapidsai#15 . This can be reverted once that issue is resolved.
1 parent 1e463bb commit 0c1f101

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

ci/test_python.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,22 @@ run_py_benchmark() {
5858
ASYNCIO_WAIT=""
5959
fi
6060

61-
CMD_LINE="UCXPY_ENABLE_DELAYED_SUBMISSION=${ENABLE_DELAYED_SUBMISSION} UCXPY_ENABLE_PYTHON_FUTURE=${ENABLE_PYTHON_FUTURE} timeout 2m python -m ucxx.benchmarks.send_recv --backend ${BACKEND} -o cupy --reuse-alloc -n 8MiB --n-buffers $N_BUFFERS --progress-mode ${PROGRESS_MODE} ${ASYNCIO_WAIT}"
61+
if [ $PROGRESS_MODE == "thread" ]; then
62+
# Increased timeout to prevent issues from
63+
# https://github.com/rapidsai/ucxx/issues/15 .
64+
# TODO: keep the original 2m timeout when the issue above is resolved.
65+
TIMEOUT=5m
66+
else
67+
TIMEOUT=2m
68+
fi
69+
70+
CMD_LINE="UCXPY_ENABLE_DELAYED_SUBMISSION=${ENABLE_DELAYED_SUBMISSION} UCXPY_ENABLE_PYTHON_FUTURE=${ENABLE_PYTHON_FUTURE} timeout ${TIMEOUT} python -m ucxx.benchmarks.send_recv --backend ${BACKEND} -o cupy --reuse-alloc -n 8MiB --n-buffers $N_BUFFERS --progress-mode ${PROGRESS_MODE} ${ASYNCIO_WAIT}"
6271

6372
rapids-logger "Running: ${CMD_LINE}"
6473
if [ $SLOW -ne 0 ]; then
6574
rapids-logger "SLOW BENCHMARK: it may seem like a deadlock but will eventually complete."
6675
fi
67-
UCXPY_ENABLE_DELAYED_SUBMISSION=${ENABLE_DELAYED_SUBMISSION} UCXPY_ENABLE_PYTHON_FUTURE=${ENABLE_PYTHON_FUTURE} timeout 2m python -m ucxx.benchmarks.send_recv --backend ${BACKEND} -o cupy --reuse-alloc -n 8MiB --n-buffers $N_BUFFERS --progress-mode ${PROGRESS_MODE} ${ASYNCIO_WAIT}
76+
UCXPY_ENABLE_DELAYED_SUBMISSION=${ENABLE_DELAYED_SUBMISSION} UCXPY_ENABLE_PYTHON_FUTURE=${ENABLE_PYTHON_FUTURE} timeout ${TIMEOUT} python -m ucxx.benchmarks.send_recv --backend ${BACKEND} -o cupy --reuse-alloc -n 8MiB --n-buffers $N_BUFFERS --progress-mode ${PROGRESS_MODE} ${ASYNCIO_WAIT}
6877
}
6978

7079
rapids-logger "Downloading artifacts from previous jobs"

0 commit comments

Comments
 (0)