#!/bin/bash # Third implementation of the union-of-masks tables for IIS-Q-0003: the program q3_tables_py.py in # pure Python, on NP processes. The program does not use the binary of q3_check for its counts. # It compares each row with the row of q3_check in the logs of the last run of run_tables.sh. # Work items, in the order of importance: all puncture sets for the kinds intact and dual; one set # of each orbit for the kinds p1w, p1s and p3; all sets of p2; then all sets of p1w and p1s on # layer 0. An orbit is an orbit under the signed permutation matrices that preserve the cap. # usage (from the root of the workspace): # /bin/bash -c '. work/lean_env.sh && bash work/capset/q0003/run_tables_py.sh [NP]' # NP is the number of processes. The default is 12. W=$(cd "$(dirname "$0")/../../.." && pwd) # the root of the workspace; this script is in work/capset/q0003 D=$W/work/capset/q0003 L=$D/logs PY3=/opt/homebrew/bin/python3 NP=${1:-12} { echo "start $(date -u +%Y-%m-%dT%H:%M:%SZ)" "$PY3" --version 2>&1 echo "script sha256 $(shasum -a 256 "$D/q3_tables_py.py" | cut -d' ' -f1)" echo "processes $NP" } > "$L/q3_tables_py_run.log" 2>&1 P=0 while [ "$P" -lt "$NP" ]; do { echo "start $(date -u +%Y-%m-%dT%H:%M:%SZ)"; "$PY3" -I "$D/q3_tables_py.py" "$L" -1 intact - orbits "$P" "$NP"; echo "exit $?"; echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)"; } > "$L/q3_tables_py_P$P.log" 2>&1 & P=$((P + 1)) done wait "$PY3" -I "$D/q3_tables_py.py" "$L" COLLECT > "$L/q3_tables_py_collected.log" 2>&1 { echo "collect exit $?"; echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)"; } >> "$L/q3_tables_py_run.log"