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 / C6-DISASM-OM / s05.sh
| 1 | #!/bin/sh |
| 2 | # t_81083ab1 step 05: the test-sm121dis differential (every corpus word, .om vs C), its red check, then the |
| 3 | # flipped-bit control. Same commands as mk/sm121dis.mk test-sm121dis. |
| 4 | set -u |
| 5 | K=build/sm121dis-kernels |
| 6 | ulimit -c 0 |
| 7 | n=0 |
| 8 | for f in "$K"/*.bin; do |
| 9 | n=$((n + 1)); rc=0 |
| 10 | build/sm121dis_diff --pairs "$f" > /dev/null 2> build/sm121dis-diff.err || rc=$? |
| 11 | if [ $rc != 0 ]; then echo "FAIL .om vs C decoder differential on $f (exit $rc)"; head -3 build/sm121dis-diff.err; exit 1; fi |
| 12 | done |
| 13 | echo "decoder differential: .om and migration-pending C decoders agree on every word of $n kernels" |
| 14 | rc=0 |
| 15 | build/sm121dis_diff_red --pairs "$(ls "$K"/*.bin | head -1)" > /dev/null 2> build/sm121dis-diff-red.err || rc=$? |
| 16 | if [ $rc -le 128 ] || ! grep -q '^DISASM DIFFER' build/sm121dis-diff-red.err; then |
| 17 | echo "RED CHECK BROKEN: the differential did not abort on a flipped bit (exit $rc)"; exit 1; fi |
| 18 | echo "red check: one flipped bit aborts the decoder differential, as it must (exit $rc)" |
| 19 | head -1 build/sm121dis-diff-red.err |
| 20 | time sh tools/sm121dis/negctl.sh build/sm121dis "$K" build/sm121dis-work |