Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.
Open
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
3 changes: 2 additions & 1 deletion libexec/klab-prove-all
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export RUNNING_DIR=$KLAB_OUT/meta/running
export OBLIGATIONS=$KLAB_OUT/obligations.batch
export BATCH_LIMIT=8
export THREADS=${THREADS:-2}
MEMORY_HEADROOM=${MEMORY_HEADROOM:-4G}
PNAME=$(jq -r '.name' < config.json)
if [ "$PNAME" == "null" ]; then PNAME=""; fi
export PNAME
Expand Down Expand Up @@ -156,7 +157,7 @@ make_batch () {
if [ -n "$KLAB_REPORT_PROJECT_DIR" ]; then
cp -n "$KLAB_OUT"/specs/*.k "$KLAB_REPORT_NAME_DIR"
fi;
parallel -u -P "$THREADS" do_proof {} < "$OBLIGATIONS" & parallel_id=$!
parallel -u --memfree "$MEMORY_HEADROOM" -P "$THREADS" do_proof {} < "$OBLIGATIONS" & parallel_id=$!
trap 'echo "Trapped SIGTERM in klab-prove-all" && kill -s INT $parallel_id && exit 1' TERM
trap 'echo "Trapped SIGINT in klab-prove-all" && kill -s INT $parallel_id && exit 1' INT
wait $parallel_id
Expand Down