Skip to content

Commit

Permalink
Reduce MAX_JOBS for gcc 7.2 build (#7618)
Browse files Browse the repository at this point in the history
  • Loading branch information
yf225 authored May 16, 2018
1 parent 64cb4fb commit 599d0fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .jenkins/pytorch/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ if ! which conda; then
fi

# sccache will fail for CUDA builds if all cores are used for compiling
if [[ "$BUILD_ENVIRONMENT" == *cuda* ]] && which sccache > /dev/null; then
# gcc 7.2 with sccache seems to have intermittent OOM issue if all cores are used
if ([[ "$BUILD_ENVIRONMENT" == *cuda* ]] || [[ "$BUILD_ENVIRONMENT" == *gcc7.2* ]]) && which sccache > /dev/null; then
export MAX_JOBS=`expr $(nproc) - 1`
fi

Expand Down

0 comments on commit 599d0fa

Please sign in to comment.