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/GEMM-TUNE-20261027/prep.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 / GEMM-TUNE-20261027 / prep.sh` 20 lines · 1726 bytes Raw Blame History 1 #!/bin/bash 2 # After anchored 'TrainCarry: MERGED #112': fresh clones for arm A (main) and arm B (perf/gemm-tiles), builds, host+sim gates. 3 set -eu 4 W=/home/drakestapleton/work/GemmTune; H=/home/drakestapleton/handoffs/GemmTune 5 F="-std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -Isrc -I./m16 -I./nvrm -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include -ffp-contract=off -Itests" 6 for arm in A B; do 7 d=$W/arm$arm; rm -rf $d; git clone -q https://github.com/aien-dev/CUDApp.git $d 8 done 9 cd $W/armB && git checkout -q -b perf/gemm-tiles origin/main && git apply --index $H/perf-gemm-tiles.patch 10 git -c user.name="GemmTune (Drake Stapleton's agent)" -c user.email=drake@aienos.com commit -q -m "gemm: cached packed scratch, banded MAIN grid, rt 4 register opt-in; default rt2 ct4 wm2 wn4 band 8 11 12 The packed operands live in a persistent GPU-cached scratch (AIEN_OMEGA_GEMM_PACK_CACHED=0: uncached, the old 13 behaviour); MAIN walks its tiles in column bands so a band of packed B stays in L2; rt 4 configs opt MAIN into the 14 hardware register limit. Defaults picked by the GemmTune exploration holds (EXPLORATORY), A/B in evidence/GEMM-TUNE-*." 15 for arm in A B; do 16 cd $W/arm$arm; echo "== arm $arm $(git rev-parse HEAD)" 17 nice -n 19 taskset -c 10-14 make -j5 build/libomega_gpu.a build/gpu_gemm_test build/gpu_tc_peak_test build/gpu_qmma_probe_test 18 nice -n 19 taskset -c 10-14 cc $F -o build/gemm_ab $H/gemm_ab.c build/libomega_gpu.a -lpthread -lm 19 done 20 cd $W/armB && nice -n 19 taskset -c 10-14 make test-gpu-gemm