summaryrefslogtreecommitdiff
path: root/.jenkins
diff options
context:
space:
mode:
authorJunjie Bai <bai@in.tum.de>2018-11-29 13:19:45 -0800
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2018-11-29 13:24:56 -0800
commit2901777a0e544f1439f0a250106288444b91538d (patch)
tree098217de59c37d10cde25eae013ca777d09e4079 /.jenkins
parent1b0b2e69f838af586901a736f34e00f642c2939f (diff)
downloadpytorch-2901777a0e544f1439f0a250106288444b91538d.tar.gz
pytorch-2901777a0e544f1439f0a250106288444b91538d.tar.bz2
pytorch-2901777a0e544f1439f0a250106288444b91538d.zip
Add back the MAX_JOBS=4 restriction to make rocm CI more stable (#14566)
Summary: As a workaround before hcc has fixed high memory usage Pull Request resolved: https://github.com/pytorch/pytorch/pull/14566 Differential Revision: D13263555 Pulled By: bddppq fbshipit-source-id: 479c7a76aff3919f028e03ef345795537480f0fa
Diffstat (limited to '.jenkins')
-rwxr-xr-x.jenkins/pytorch/build.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/.jenkins/pytorch/build.sh b/.jenkins/pytorch/build.sh
index ff419ffc46..73d8b4dd2a 100755
--- a/.jenkins/pytorch/build.sh
+++ b/.jenkins/pytorch/build.sh
@@ -47,6 +47,11 @@ cmake --version
pip install -q -r requirements.txt || true
if [[ "$BUILD_ENVIRONMENT" == *rocm* ]]; then
+ # When hcc runs out of memory, it silently exits without stopping
+ # the build process, leaving undefined symbols in the shared lib
+ # which will cause undefined symbol errors when later running
+ # tests. Setting MAX_JOBS to smaller number to make CI less flaky.
+ export MAX_JOBS=4
# ROCm CI is using Caffe2 docker images, which needs these wrapper
# scripts to correctly use sccache.