This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/build.sh
T
Deadcode 1e968f6e1d radiance 1.7.0
- every model serves without a GPU: libavx covers every op, so `--kernels libavx` alone serves
  every shipped container
- Qwen3-ASR (zivius): speech to text on /v1/audio/transcriptions and live over /v1/realtime
- /v1/messages works with Claude Code as it ships (gearwave00001)
- a long agent conversation keeps its cached history when the client rewrites its last turn
  (manueloverride)
- a stream's first event goes out with the first token, so llama-benchy measures prefill right
- opt-in --prefill-interleave (Smellyyyy, baKon) and --prefill-span (keptn42)
- four-rank TP releases the link early; four-rank selftests and docs/TP4.md (goodman-b)
- NVFP4 and FP8 compressed-tensors imports (devmilan); tools/rad-export for finetunes and LoRA
  adapters (baKon)
- many fixes, among them lost tokens on stop strings under concurrency, keep-alive, MiniCPM5 tool
  arguments and the CPU's vision and audio encoders
- plugin ABI 17 and changed op schemas: out-of-tree plugins must be rebuilt
2026-10-16 18:25:18 +02:00

57 lines
2.5 KiB
Bash
Executable File

#!/bin/sh
# build.sh -- configure, build and run the fast tests.
#
# With no arguments the build configures itself: if hipcc is present and a card can be enumerated,
# device kernels are compiled for that card's architecture, and otherwise the host backend is
# built. The host backend is a real implementation, not a stub -- everything except device kernels
# is exercised through it -- so a machine with no ROCm is a supported development configuration.
#
# Pass -DRAD_GPU_TARGETS=<arch>[;<arch>...] to cmake to compile for cards this machine does not
# have. Which of them actually get kernels is decided by the kernel libraries present; each one
# declares the architectures it serves.
#
# ./build.sh configure + build + the fast tests (ctest -L fast)
# ./build.sh -c wipe the build directory first
# ./build.sh --no-hip force the host backend even where hipcc exists
# ./build.sh --asan AddressSanitizer + UBSan, host backend, in build-asan/
# ./build.sh --tsan ThreadSanitizer, host backend, in build-tsan/
# ./build.sh --debug CMAKE_BUILD_TYPE=Debug
# ./build.sh -b DIR build in DIR instead of build/ (or build-asan/, build-tsan/)
#
# The other tiers (docs/GUIDE.md §1.3): ctest --test-dir build -LE 'gpu|oot' for everything that
# runs without a card, plain ctest --test-dir build for everything.
set -e
BUILD=
CLEAN=0
SAN=
CMAKE_ARGS=""
while [ $# -gt 0 ]; do
case "$1" in
-c|--clean) CLEAN=1 ;;
--no-hip) CMAKE_ARGS="$CMAKE_ARGS -DRAD_WITH_HIP=OFF" ;;
--asan) SAN=asan ;;
--tsan) SAN=tsan ;;
--debug) CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug" ;;
-b) shift; BUILD="$1" ;;
*) echo "build.sh: unknown option $1" >&2; exit 2 ;;
esac
shift
done
# A sanitised build gets a directory of its own, so it never reconfigures the normal tree. Host
# code only: device kernels are not sanitised, and a sanitised engine is not one to serve from.
case "$SAN" in
asan) CMAKE_ARGS="$CMAKE_ARGS -DRAD_ASAN=ON -DRAD_TSAN=OFF -DRAD_WITH_HIP=OFF"
BUILD=${BUILD:-build-asan} ;;
tsan) CMAKE_ARGS="$CMAKE_ARGS -DRAD_TSAN=ON -DRAD_ASAN=OFF -DRAD_WITH_HIP=OFF"
BUILD=${BUILD:-build-tsan} ;;
*) BUILD=${BUILD:-build} ;;
esac
[ "$CLEAN" = 1 ] && rm -rf "$BUILD"
cmake -S . -B "$BUILD" -G Ninja $CMAKE_ARGS
cmake --build "$BUILD" -j"$(nproc)"
ctest --test-dir "$BUILD" -L '^fast$' -j8 --no-tests=error --output-on-failure