Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/evidence/HW-MANIFEST-20261107T0602Z/regress/regress.sh # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / evidence / HW-MANIFEST-20261107T0602Z / regress / regress.sh` 48 lines · 2688 bytes Raw Blame History 1 #!/bin/sh 2 # Runs the new review controls against hwman built from CUDApp `06237840` (H) and prints, per control, 3 # the exit code and last output line. Usage: before.sh HWMAN MANIFEST_DIR OUTDIR 4 H=$1; R=$2; o=$3 5 M=$R/backend/hw/manifest.tsv 6 mkdir -p "$o" || exit 74 7 run() { _n=$1; shift; "$@" > "$o/$_n.log" 2>&1; _rc=$?; echo "$_n exit=$_rc last=$(tail -n 1 "$o/$_n.log")"; } 8 mut() { awk -F '\t' -v OFS='\t' "$2" "$M" > "$o/$1.tsv"; } 9 # 1. persistence: old release is pwrite64 #1 / fsync #1 (no in-flight mark); also the new indices. 10 for c in failed-write:pwrite64:error=ENOSPC short-write:pwrite64:retval=3 failed-sync:fsync:error=EIO; do 11 n=${c%%:*}; inj=${c#*:} 12 for w in 1 2; do 13 st=$o/persist-$n-w$w.state; rm -f "$st" 14 run persist-$n-w$w.seed "$H" run "$M" cpu-gb10-x925 sumsq64 1 0 "$st" 0 15 run persist-$n-w$w strace -qq -o /dev/null -P "$st" -e trace=pwrite64,fsync,ftruncate -e "inject=$inj:when=$w" \ 16 "$H" run "$M" cpu-gb10-x925 sumsq64 1000 1 "$st" `332833500` 17 echo "persist-$n-w$w state=[$(cat "$st")]" 18 for g in 0 1 2; do run persist-$n-w$w-replay-$g "$H" run "$M" cpu-gb10-x925 sumsq64 1 "$g" "$st" 0; done 19 done 20 done 21 # 2. binding 22 mut m-cpuop '$1=="cpu-gb10-x925"{$12="sumsq64,fnv1a64,matmul"}1' 23 mut m-tpmop '$1=="tpm-ntc-npct75x"{$12="props,getrandom,seal"}1' 24 mut m-runner '$1=="cpu-gb10-x925"{$20="hwman-gpu"}1' 25 mut m-famrun '$1=="tpm-ntc-npct75x"{$20="hwman-cpu"}1' 26 mut m-auth '$1=="cpu-gb10-x925"{$6="DIRECT_DEVICE"}1' 27 for m in m-cpuop m-tpmop m-runner m-famrun m-auth; do run check-$m "$H" check "$o/$m.tsv"; done 28 S=$o/cpu.state; rm -f "$S" 29 run cpu-seed "$H" run "$M" cpu-gb10-x925 sumsq64 1 0 "$S" 0 30 run run-cpu-invented-op "$H" run "$o/m-cpuop.tsv" cpu-gb10-x925 matmul 1 1 "$S" 31 echo "cpu state after invented op=[$(cat "$S")]" 32 run run-cpu-invented-runner "$H" run "$o/m-runner.tsv" cpu-gb10-x925 sumsq64 1 1 "$S" 0 33 echo "cpu state after invented runner=[$(cat "$S")]" 34 T=$o/tpm.state; rm -f "$T" 35 run tpm-seed "$H" run "$M" tpm-ntc-npct75x props 0 0 "$T" 36 run run-tpm-invented-op "$H" run "$o/m-tpmop.tsv" tpm-ntc-npct75x seal 1 1 "$T" 37 echo "tpm state after invented op=[$(cat "$T")]" 38 g=$(cut -d ' ' -f 1 "$T") 39 run run-tpm-runner-family "$H" run "$o/m-famrun.tsv" tpm-ntc-npct75x props 0 "$g" "$T" 40 echo "tpm state after runner family=[$(cat "$T")]" 41 # 3. fault oracle 42 g=$(cut -d ' ' -f 1 "$T") 43 for c in badsize-eio:badsize:write:error=EIO badcc-kernel-einval:badcc:write:error=EINVAL badcc-short-response:badcc:read:retval=4; do 44 n=${c%%:*}; r=${c#*:}; k=${r%%:*}; inj=${r#*:} 45 run fault-$n strace -qq -o /dev/null -P /dev/tpmrm0 -e trace=read,write -e "inject=$inj:when=2" \ 46 "$H" fault "$M" tpm-ntc-npct75x "$k" "$g" "$T" 47 g=$((g + 1)) 48 done