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 / 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.
3set -eu
4W=/home/drakestapleton/work/GemmTune; H=/home/drakestapleton/handoffs/GemmTune
5F="-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"
6for arm in A B; do
7 d=$W/arm$arm; rm -rf $d; git clone -q https://github.com/aien-dev/CUDApp.git $d
8done
9cd $W/armB && git checkout -q -b perf/gemm-tiles origin/main && git apply --index $H/perf-gemm-tiles.patch
10git -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
12The packed operands live in a persistent GPU-cached scratch (AIEN_OMEGA_GEMM_PACK_CACHED=0: uncached, the old
13behaviour); MAIN walks its tiles in column bands so a band of packed B stays in L2; rt 4 configs opt MAIN into the
14hardware register limit. Defaults picked by the GemmTune exploration holds (EXPLORATORY), A/B in evidence/GEMM-TUNE-*."
15for 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
19done
20cd $W/armB && nice -n 19 taskset -c 10-14 make test-gpu-gemm