7f896a8bb changed 100755 to 100644 on 16 scripts that the workflows or check-local.sh execute by path, among them
scripts/install-pinned-rustup.sh (the first step of every job), scripts/test-cuda-fixed-ptx.sh, scripts/test-cuda-driver-bootstrap.sh,
scripts/build-cpu.sh and the GPU gate scripts. A Linux checkout keeps git's mode, so `scripts/install-pinned-rustup.sh ...` failed with
"Permission denied" before any build. Found by running the steps from a `git archive` in a Linux container; the Windows and WSL-on-/mnt/c
runs of the first audit show every file as executable and could not see it. Only modes change; engine/strata is not touched.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
26 lines
1.8 KiB
Bash
Executable File
26 lines
1.8 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Test-only bounded native reference; no serving/model build or GPU execution.
|
|
# TOOLKIT must be the verified deploy/cuda-toolkit.lock.json 13.0.88 distribution.
|
|
set -euo pipefail
|
|
[[ $# == 2 ]] || { echo 'Usage: build-cuda-projection-family-oracle.sh TOOLKIT PRIVATE_OUTPUT' >&2; exit 2; }
|
|
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
toolkit="$(cd "$1" && pwd)"
|
|
output="$2"
|
|
[[ ! -e "$output" && -f "$toolkit/TOOLKIT-PROVENANCE.json" ]]
|
|
"$toolkit/bin/nvcc" --version | grep 'V13.0.88'
|
|
python3 - "$toolkit/TOOLKIT-PROVENANCE.json" "$root/deploy/cuda-toolkit.lock.json" <<'PY'
|
|
import json,sys
|
|
assert json.load(open(sys.argv[1]))['lock']==json.load(open(sys.argv[2]))
|
|
PY
|
|
# Exact native source identity is an oracle gate, not caller-selected reference.
|
|
echo 'f2fc636e5e8f6db9bbb8146fbf2b78a717c0e0076bf8c72ac2b784df7b3f455f engine/strata/src/kernels/cuda/native_mmvq.cu' | (cd "$root" && sha256sum --check)
|
|
echo '07fe5567a7fc75a079dcc7887975dffe490607564c16ad884423b903ab08a537 engine/strata/src/kernels/cuda/iq_kernels.cu' | (cd "$root" && sha256sum --check)
|
|
echo '0061131b615c5721fc88a78feeb22c1f8c450f1c2646a317d80796a653bf595c engine/strata/third_party/ggml/ggml-common.h' | (cd "$root" && sha256sum --check)
|
|
sha256sum "$root/engine/strata/src/kernels/cuda/native_mmvq.cu" "$root/scripts/cuda-projection-family-oracle/native_fixture.cu"
|
|
"$toolkit/bin/nvcc" -std=c++17 -O3 -arch=sm_120 --use_fast_math \
|
|
-Xcompiler=-ffunction-sections,-fdata-sections -Xlinker=--gc-sections \
|
|
-I"$root/engine/strata/include" -I"$root/engine/strata/third_party/ggml" "$root/engine/strata/src/kernels/cuda/native_mmvq.cu" \
|
|
"$root/engine/strata/src/kernels/cuda/iq_kernels.cu" \
|
|
"$root/scripts/cuda-projection-family-oracle/native_fixture.cu" -ldl -o "$output"
|
|
sha256sum "$output"
|