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 / DECODE-KERNELS-20261027T0612Z / tools / abrun.sh
| 1 | #!/bin/bash |
| 2 | # DIAGNOSTIC driver (DecodeKernels A/B, 2026-10-27; not product code). Usage: abrun.sh LOGDIR CMD... |
| 3 | # Runs a 18091 /health poller (CLOCK_REALTIME ns + in_flight, ~every 30 ms plus curl time) into LOGDIR/inflight.log for the |
| 4 | # whole life of CMD, so tag.py can drop every sample whose [t0, t1] overlaps in_flight > 0 or a poll gap > 200 ms. |
| 5 | set -u |
| 6 | D=$1; shift |
| 7 | mkdir -p "$D" |
| 8 | ( while :; do |
| 9 | t=$(date +%s%N); h=$(curl -s -m 0.5 127.0.0.1:18091/health) |
| 10 | f=$(printf '%s' "$h" | grep -o '"in_flight":[0-9]*' | cut -d: -f2) |
| 11 | echo "$t ${f:--1}"; sleep 0.03 |
| 12 | done ) > "$D/inflight.log" & |
| 13 | P=$! |
| 14 | sleep 0.2 |
| 15 | "$@" |
| 16 | rc=$? |
| 17 | sleep 0.2 |
| 18 | kill $P 2>/dev/null; wait $P 2>/dev/null |
| 19 | exit $rc |