forked from akumarc11/macro-weave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdispatch.sh
More file actions
executable file
·21 lines (18 loc) · 1.03 KB
/
Copy pathdispatch.sh
File metadata and controls
executable file
·21 lines (18 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
cd /workspace/submission_run
export PYTHONPATH=/workspace/submission_run
BENCHES=$(ls external/MacroPlacement/Testcases/ICCAD04/ | grep "^ibm" | sort)
echo "[$(date '+%Y-%m-%d %H:%M:%S')] DISPATCH START — $(echo $BENCHES | wc -w) benches" | tee -a logs/dispatch.log
for b in $BENCHES; do
echo "[$(date '+%Y-%m-%d %H:%M:%S')] === START $b ===" | tee -a logs/dispatch.log
mkdir -p positions/${b}
MACROWEAVE_DUMP_POSITIONS_DIR="positions/${b}" \
.venv/bin/python -m macro_place.evaluate submissions/hyperplace/placer.py -b $b > logs/${b}.log 2>&1
rc=$?
echo "[$(date '+%Y-%m-%d %H:%M:%S')] === DONE $b (exit=$rc) ===" | tee -a logs/dispatch.log
# Capture the summary table line + validity
tail -25 logs/${b}.log | grep -E "Proxy|Overlap|Valid|valid|⚠|^ +$b" | tee -a logs/summary.log
# Post-hoc OOB + TILOS validation on final dumped placement
.venv/bin/python validate_one.py $b 2>&1 | tee -a logs/summary.log
done
echo "[$(date '+%Y-%m-%d %H:%M:%S')] DISPATCH END" | tee -a logs/dispatch.log