Skip to content

Commit

Permalink
Adjust parallelism in spark-tests script to reduce memory footprint (#…
Browse files Browse the repository at this point in the history
…8871)

Signed-off-by: Peixin Li <pxli@nyu.edu>
  • Loading branch information
pxLi authored Jul 31, 2023
1 parent 1d805ff commit c5fed02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jenkins/spark-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ if [[ $PARALLEL_TEST == "true" ]]; then
PARALLELISM=$(nvidia-smi --query-gpu=memory.free --format=csv,noheader | \
awk '{if (MAX < $1){ MAX = $1}} END {print int(MAX / (2 * 1024))}')
fi
# parallelism > 6 could slow down the whole process, so we have a limitation for it
# parallelism > 5 could slow down the whole process, so we have a limitation for it
# this is based on our CI gpu types, so we do not put it into the run_pyspark_from_build.sh
[[ ${PARALLELISM} -gt 6 ]] && PARALLELISM=6
[[ ${PARALLELISM} -gt 5 ]] && PARALLELISM=5
MEMORY_FRACTION=$(python -c "print(1/($PARALLELISM + 0.1))")

export TEST_PARALLEL=${PARALLELISM}
Expand Down

0 comments on commit c5fed02

Please sign in to comment.