Desktop foundation / core (ubuntu-latest) (push) Failing after 28s
Desktop foundation / core (macos-latest) (push) Canceled after 0s
Desktop foundation / core (windows-latest) (push) Canceled after 0s
Linux / verify (push) Canceled after 0s
Linux / keyless-cuda (push) Canceled after 0s
Linux / static-cuda-package (push) Canceled after 0s
Linux / hosted-cuda-package (push) Canceled after 0s
Linux / linux-static-cli (push) Canceled after 0s
Linux / linux-cli-container (push) Canceled after 0s
Linux / release-cli (push) Canceled after 0s
21 lines
1012 B
Bash
Executable File
21 lines
1012 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
build_dir="${STRATA_KEYLESS_BUILD_DIR:-${repo_root}/artifacts/build-keyless-gpu}"
|
|
# A separate CUDA test context must fit; never stop the user's serving process.
|
|
used="$(nvidia-smi --query-gpu=memory.used --format=csv,noheader,nounits | head -n 1)"
|
|
if (( used > 1024 )); then
|
|
printf 'GPU is occupied; run keyless validation after unloading the model.\n' >&2
|
|
exit 1
|
|
fi
|
|
cmake -S "${repo_root}/engine/strata" -B "${build_dir}" \
|
|
-DSTRATA_ENABLE_CUDA=ON -DSTRATA_ENABLE_HIP=OFF \
|
|
-DSTRATA_NATIVE_EXPERTS=ON -DSTRATA_BUILD_TESTS=OFF \
|
|
-DSTRATA_BUILD_CONVERSATION_TESTS=ON \
|
|
-DCMAKE_CUDA_ARCHITECTURES="${STRATA_CUDA_ARCHITECTURES:-native}"
|
|
cmake --build "${build_dir}" --parallel "${BUILD_JOBS:-4}" --target \
|
|
keyless_parity keyless_stream_parity conversation_snapshot_test
|
|
ctest --test-dir "${build_dir}" --output-on-failure \
|
|
-R '^(keyless_parity|keyless_stream_parity|conversation_snapshot_test)$'
|