Skip to content

Commit eaace3e

Browse files
malfetfacebook-github-bot
authored andcommitted
Skip CUDA benchmarks on nogpu configs (#42704)
Summary: Avoids timeouts when the benchmark is launched on nogpu configs Pull Request resolved: #42704 Reviewed By: mruberry Differential Revision: D22987725 Pulled By: malfet fbshipit-source-id: aa9aece16557c0af8e05e612277ae1d9e0173a51
1 parent 6cb0807 commit eaace3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.jenkins/pytorch/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ test_bazel() {
341341
}
342342

343343
test_benchmarks() {
344-
if [[ "$BUILD_ENVIRONMENT" == *cuda* ]]; then
344+
if [[ "$BUILD_ENVIRONMENT" == *cuda* && "$BUILD_ENVIRONMENT" != *nogpu* ]]; then
345345
pip_install --user "pytest-benchmark==3.2.3"
346346
pip_install --user "requests"
347347
BENCHMARK_DATA="benchmarks/.data"

0 commit comments

Comments
 (0)