CUDApp
CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.
Brought by drakestapleton
CUDApp / evidence / GEMM-TUNE-20261027 / ab.sh
| 1 | #!/bin/bash |
| 2 | # Frozen AB-PLAN (amendment 1): rounds given as arguments, arm order from the seed rule, one process per arm per round. |
| 3 | H=/home/drakestapleton/handoffs/GemmTune; W=/home/drakestapleton/work/GemmTune |
| 4 | sha256sum $H/AB-PLAN.md $H/gemm_ab.c |
| 5 | for arm in A B; do echo "# arm $arm $(git -C $W/arm$arm rev-parse HEAD) dirty=$(git -C $W/arm$arm status --porcelain | wc -l)"; done |
| 6 | for r in "$@"; do |
| 7 | if (( (r * 2654435761 + 20261027) % 2 == 0 )); then order="A B"; else order="B A"; fi |
| 8 | echo "== round $r order $order" |
| 9 | for arm in $order; do |
| 10 | echo "== arm $arm round $r load $(cat /proc/loadavg)" |
| 11 | (cd $W/arm$arm && nice -n 19 taskset -c 10-14 build/gemm_ab --set ab --arm $arm --round $r --seed 20261027) || echo "== arm $arm round $r exit $?" |
| 12 | done |
| 13 | done |