aien-train
AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.
Brought by drakestapleton
aien-train / streams / physics-gb10 / build.sh
| 1 | #!/bin/sh |
| 2 | # Build gr_info against the pinned physics checkout (omega physics.lock 6d7cf0d4). |
| 3 | set -eu |
| 4 | here=$(cd "$(dirname "$0")" && pwd) |
| 5 | P=${PHYSICS_DIR:-$HOME/workspace/physics-pf-6d7cf0d4} |
| 6 | NV=$P/third_party/nvidia-open-580.173.02 |
| 7 | out=${OUT_DIR:-$here/build} |
| 8 | mkdir -p "$out" |
| 9 | cc -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 \ |
| 10 | -I"$P/nvrm" -I"$NV/src/common/sdk/nvidia/inc" -I"$NV/kernel-open/common/inc" \ |
| 11 | -I"$NV/kernel-open/nvidia-uvm" -I"$NV/src/nvidia/arch/nvalloc/unix/include" \ |
| 12 | "$here/gr_info.c" "$P/nvrm/nvrm.c" -o "$out/gr_info" |
| 13 | echo "built $out/gr_info (physics $(git -C "$P" rev-parse --short=8 HEAD))" |