2026-03-24 12:10:43 +07:00
|
|
|
#!/bin/bash
|
|
|
|
|
# Compile khra_gixx_1024_v5 — Golden-Weave integration
|
|
|
|
|
# Same deps as v4: zmq + nvml, no json-c, no cufft
|
|
|
|
|
export PATH=/usr/local/cuda-12.6/bin:$PATH
|
|
|
|
|
export LD_LIBRARY_PATH=/usr/local/cuda-12.6/lib64:$LD_LIBRARY_PATH
|
2026-03-24 12:58:19 +07:00
|
|
|
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
|
|
|
cd "$REPO_ROOT"
|
2026-03-24 12:10:43 +07:00
|
|
|
|
|
|
|
|
echo "Compiling khra_gixx_1024_v5..."
|
|
|
|
|
nvcc -O3 -arch=sm_89 \
|
2026-03-24 12:58:19 +07:00
|
|
|
-o build/khra_gixx_1024_v5 \
|
|
|
|
|
cuda/khra_gixx_1024_v5.cu \
|
2026-03-24 12:10:43 +07:00
|
|
|
-lzmq -lnvidia-ml
|
|
|
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
2026-03-24 12:58:19 +07:00
|
|
|
echo "BUILD OK: build/khra_gixx_1024_v5 ($(date))"
|
|
|
|
|
ls -la build/khra_gixx_1024_v5
|
2026-03-24 12:10:43 +07:00
|
|
|
else
|
|
|
|
|
echo "BUILD FAILED"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|