Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions scripts/firedrake-run-split-tests
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ num_procs=$1
num_jobs=$2
extra_args=${@:3}

# Set per-job cache directories to avoid race conditions when multiple jobs attempt to compile the same form.
cache_cmd="PYOP2_CACHE_DIR=\$VIRTUAL_ENV/.cache/pyop2/job{#} \
FIREDRAKE_TSFC_KERNEL_CACHE_DIR=\$VIRTUAL_ENV/.cache/tsfc/job{#}"

if [ $num_procs = 1 ]; then
# Cannot use mpiexec -n 1 because this can sometimes hang with
# OpenMPI at MPI_Finalize
Expand All @@ -57,7 +53,7 @@ set -x
# * Uses tee to pipe stdout+stderr to both stdout and a log file
# * Writes pytest's exit code to a file called jobN.errcode (for later inspection)
parallel --line-buffer --tag \
"${cache_cmd}; ${pytest_cmd} |& tee ${log_file_prefix}{#}.log; \
"${pytest_cmd} |& tee ${log_file_prefix}{#}.log; \
echo \${PIPESTATUS[0]} > job{#}.errcode" \
::: $(seq ${num_jobs})

Expand Down
Loading