Skip to content

windows: serve baseRT's Windows x86-64 ROCm engine - #188

Open
IsuraManchanayake wants to merge 3 commits into
rc-0.2.2from
feat/windows-basert
Open

IsuraManchanayake wants to merge 3 commits into
rc-0.2.2from
feat/windows-basert

Conversation

@IsuraManchanayake

Copy link
Copy Markdown
Collaborator

Into rc-0.2.2 (#187). CI has not run on this PR, on purpose: every commit carries [skip ci], and the Windows job's new baseRT legs are defined but have not run.

superfluid built for Windows without baseRT, because baseRT had no Windows engine. baseRT 0.6.0 brings one: the ROCm engine for AMD Strix Halo and Strix Point through AMD's HIP SDK for Windows (basecompute/baseRT-internal feat/windows-rocm into rc-0.6.0). This PR makes the daemon install it, load it and serve through it, and builds the basert feature on Windows again.

> superfluid runtimes
RUNTIME   STATE   INSTALL  VERSION  INSTALLABLE  READS  DEVICE (MEMORY BUDGET)  WORKER
basert    ready   -        0.6.0    none here    base   ROCm: GPU, 107.1 GB     built in
> superfluid serve models\Qwen3-0.6B-Q4_0.base --http 127.0.0.1:18460
<-- 200 POST /v1/chat/completions model=Qwen3-0.6B-Q4_0 prompt=20 cached=0 completion=138 ttft=582ms prefill=34 tok/s decode=244.5 tok/s total=1016ms finish=stop

What changes

  • Loading the engine (superfluid-engine-ffi). The library is baseRT.dll on Windows. It is loaded with LOAD_WITH_ALTERED_SEARCH_PATH, as llama.dll is. The installed runtime is found through runtimes\basert\current read as the file Windows has in place of the link, as through_link does for the other runtimes.
  • The host (superfluid-adapter-kit).
    • rocm is whether the display driver's HIP runtime is there (amdhip64_7.dll in System32).
    • rocm_runtimes lists the HIP SDKs: each <major.minor> directory under %ProgramFiles%\AMD\ROCm with hipBLASLt in its bin, and HIP_PATH.
    • amd_gpus comes from the newest SDK's hipInfo (gcnArchName, in HIP's order, feature suffixes dropped). It is read as it writes and given ten seconds.
  • The recipe (superfluid-adapter-basert).
    • Windows x86-64 with a Strix GPU as device 0 takes basert-engine-windows-x64-rocm.
    • The engine needs the HIP SDK it was linked against (7.2). Without it, the install says so and names the SDK, as the Linux engine names ROCm 10.
    • The message for an unsupported machine names Windows.
  • CI (ci.yml, the windows-2025 job).
    • The daemon is clippied, built and tested with its default features (--features llamacpp,tui,shim), and superfluid-engine-ffi and superfluid-adapter-basert join the crates tested there.
    • superfluid-worker-basert is built.
    • The hosted runner has no AMD GPU, so the real-engine tests skip, as they do on every runner without the engine.
  • The release (release.yml). The Windows tarball's daemon has the basert feature, and superfluid-worker-basert.exe is shipped beside the llama.cpp worker.
  • Tests. The two serve_cli.rs key-file tests check a Unix file mode, so they are Unix-only. The file compiled to nothing on Windows before, because the basert feature was off there.
  • Docs (installation, quickstart, development). baseRT serves on Windows with an AMD Strix GPU and the HIP SDK 7.2.

Checks

  • macOS:
    • cargo test -p superfluid-adapter-kit -p superfluid-adapter-basert -p superfluid-engine-ffi passes, with new tests for the Windows platform, the SDK requirement, hipInfo's output and the SDK directories.
    • cargo clippy ... -D warnings is clean for those crates, for this host and for x86_64-pc-windows-gnu, and for the daemon with --features llamacpp,tui,shim for x86_64-pc-windows-gnu.
  • strix-halo-3 (Windows 11 26200, Radeon 8060S, HIP SDK 7.2, MSVC toolchain):
    • cargo build --release -p superfluid --features llamacpp,tui,shim and -p superfluid-adapter-basert --bin superfluid-worker-basert build.
    • cargo test --release -p superfluid-adapter-kit -p superfluid-adapter-basert -p superfluid-engine-ffi passes at ca3a67b. Running it there first found two problems: three of the recipe's existing assertions still named the old message, and an engine-ffi test assumed a second, versioned library name. Both are fixed.
    • With BASERT_LIB naming the 0.6.0 Windows bundle's baseRT.dll:
      • superfluid runtimes shows basert ready on the GPU;
      • serve loads Qwen3-0.6B Q4_0;
      • a chat completion answers "Paris" (finish=stop);
      • three requests at once all finish.

Not done here

  • superfluid runtime install basert against a published release. No baseRT release has a Windows bundle yet, so the recipe pins none. A pin for 0.6.0 comes with that release.
  • install.ps1 does not install the basert runtime on Windows, where install.sh does on the other platforms.
  • The order of a box with several AMD GPUs under HIP_VISIBLE_DEVICES on Windows: hipInfo's order is taken as HIP's.

rc-0.2.1 (#179) ships first; this train merges main after it.

The basert runtime installs basert-engine-windows-x64-rocm on Windows with an
AMD Strix GPU and AMD's HIP SDK 7.2, loads baseRT.dll from the install, and the
daemon and the release build with the basert feature there.
@IsuraManchanayake IsuraManchanayake mentioned this pull request Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant