interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / evidence / DECODE-KERNELS-20261027T0612Z / tools / abrun.sh

19 lines · 686 bytes Raw Blame History
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.
5set -u
6D=$1; shift
7mkdir -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" &
13P=$!
14sleep 0.2
15"$@"
16rc=$?
17sleep 0.2
18kill $P 2>/dev/null; wait $P 2>/dev/null
19exit $rc