Files
leleka/scripts/chain/seal_chain.sh
T

16 lines
735 B
Bash

#!/usr/bin/env bash
# Compile and seal chain_window.cu with the project tooling (WSL; the tree is patched in place).
# scripts/chain/seal_chain.sh (run from Git Bash in the worktree)
set -euo pipefail
root=$(git rev-parse --show-toplevel)
wsl -d Ubuntu -e bash -lc "
set -e
cd \$(wslpath -a '$root')
TK=\$HOME/cuda-toolkits/13.2.2
OUT=\$HOME/chain-seal
rm -rf \$OUT && mkdir -p \$OUT
python3 scripts/chain/reset_chain_pin.py
python3 scripts/gpu-bringup/compile_assets.py --toolkit \$TK --only chain_window --no-rope --out \$OUT 2>&1 | tail -4
python3 scripts/gpu-bringup/seal_pins.py --ptx-dir \$OUT --only chain_window --write --manifest-out \$OUT/SEALED-MANIFEST.json 2>&1 | grep -E 'REFUSED|touched|chain|written' | head
"