omega-dnn
aien-dev/omega-dnn
Brought by drakestapleton
omega-dnn / evidence / STACK7-GPU-20261026 / gpu-bench / held.sh
| 1 | #!/bin/sh |
| 2 | # Runs under flock: reports how long the lock was held (acquire to command exit) on stderr. |
| 3 | t0=$(date +%s.%N) |
| 4 | "$@"; rc=$? |
| 5 | t1=$(date +%s.%N) |
| 6 | echo "LOCK_HELD_S $(echo "$t1 - $t0" | bc)" >&2 |
| 7 | exit $rc |