Skip to content

Commit

Permalink
CI: Limit OMP_NUM_THREADS to 2 on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
solardiz committed Jan 5, 2024
1 parent 534e1ff commit 478b447
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ci/run-build-and-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ echo 'END OF BUILD ENVIRONMENT INFORMATION'
nproc="$(nproc)" || nproc=1
j="-j$nproc"

if [ $nproc -gt 2 ]; then
export OMP_NUM_THREADS=2
fi

cd src
time ./configure $*
time make $j
Expand Down

0 comments on commit 478b447

Please sign in to comment.