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/omega-blas/blob/main/tests/gb10/run.sh # omega-blas aien-dev/omega-blas 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 `omega-blas / tests / gb10 / run.sh` 23 lines ยท 1258 bytes Raw Blame History 1 #!/bin/sh 2 # tests/gb10/run.sh: build and run tests/gb10/batched.c (strided, pointer-array and single f32 3 # products, the epilogue and non-f32 calls that must stay on the host) against one library build. 4 # OMB_BUILD= library directory (default build-gb10; build for the host-only library) 5 # OMEGABLAS_DEVICE=gb10 run on the device path (unset: host); the route predictions follow it 6 # GB10_HOOKS= link tests/gb10/hooks.c (OMB_TEST_BACKEND=model, OMB_TEST_MUTANT=) 7 # Exit status is the driver's: 0 only if every case is inside its derived limit, leaves every 8 # element outside the products alone, and moves the route counters as predicted. 9 set -eu 10 ROOT=$(cd "$(dirname "$0")/../.." && pwd) 11 CC=${CC:-cc} 12 OMB_BUILD=$(cd "$ROOT" && cd "${OMB_BUILD:-build-gb10}" && pwd) 13 W="$OMB_BUILD/gb10test" 14 rm -rf "$W"; mkdir -p "$W" 15 HOOKS= 16 if [ -n "${GB10_HOOKS:-}" ]; then 17 $CC -O1 -I"$GB10_HOOKS/src" -I"$GB10_HOOKS/tests" -c -o "$W/hooks.o" "$ROOT/tests/gb10/hooks.c" 18 HOOKS="$W/hooks.o" 19 fi 20 $CC -O1 -Wall -I"$ROOT/include" -o "$W/batched" "$ROOT/tests/gb10/batched.c" $HOOKS \ 21 -L"$OMB_BUILD" -lomegablas -Wl,-rpath,"$OMB_BUILD" -lm 22 echo "gb10 batched: library $OMB_BUILD/libomegablas.so, device ${OMEGABLAS_DEVICE:-host}" 23 "$W/batched"