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 / C6-DISASM-OM / s05.sh

20 lines · 1102 bytes Raw Blame History
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.
4set -u
5K=build/sm121dis-kernels
6ulimit -c 0
7n=0
8for 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
12done
13echo "decoder differential: .om and migration-pending C decoders agree on every word of $n kernels"
14rc=0
15build/sm121dis_diff_red --pairs "$(ls "$K"/*.bin | head -1)" > /dev/null 2> build/sm121dis-diff-red.err || rc=$?
16if [ $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
18echo "red check: one flipped bit aborts the decoder differential, as it must (exit $rc)"
19head -1 build/sm121dis-diff-red.err
20time sh tools/sm121dis/negctl.sh build/sm121dis "$K" build/sm121dis-work