Repository navigation
windows: serve baseRT's Windows x86-64 ROCm engine - #188
Open
IsuraManchanayake wants to merge 3 commits into
Open
IsuraManchanayake wants to merge 3 commits into
IsuraManchanayake wants to merge 3 commits into
Conversation
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.
…n Windows [skip ci]
Open
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-rocmintorc-0.6.0). This PR makes the daemon install it, load it and serve through it, and builds thebasertfeature on Windows again.What changes
superfluid-engine-ffi). The library isbaseRT.dllon Windows. It is loaded withLOAD_WITH_ALTERED_SEARCH_PATH, asllama.dllis. The installed runtime is found throughruntimes\basert\currentread as the file Windows has in place of the link, asthrough_linkdoes for the other runtimes.superfluid-adapter-kit).rocmis whether the display driver's HIP runtime is there (amdhip64_7.dllin System32).rocm_runtimeslists the HIP SDKs: each<major.minor>directory under%ProgramFiles%\AMD\ROCmwith hipBLASLt in itsbin, andHIP_PATH.amd_gpuscomes from the newest SDK'shipInfo(gcnArchName, in HIP's order, feature suffixes dropped). It is read as it writes and given ten seconds.superfluid-adapter-basert).basert-engine-windows-x64-rocm.ci.yml, thewindows-2025job).--features llamacpp,tui,shim), andsuperfluid-engine-ffiandsuperfluid-adapter-basertjoin the crates tested there.superfluid-worker-basertis built.release.yml). The Windows tarball's daemon has thebasertfeature, andsuperfluid-worker-basert.exeis shipped beside the llama.cpp worker.serve_cli.rskey-file tests check a Unix file mode, so they are Unix-only. The file compiled to nothing on Windows before, because thebasertfeature was off there.Checks
cargo test -p superfluid-adapter-kit -p superfluid-adapter-basert -p superfluid-engine-ffipasses, with new tests for the Windows platform, the SDK requirement, hipInfo's output and the SDK directories.cargo clippy ... -D warningsis clean for those crates, for this host and forx86_64-pc-windows-gnu, and for the daemon with--features llamacpp,tui,shimforx86_64-pc-windows-gnu.cargo build --release -p superfluid --features llamacpp,tui,shimand-p superfluid-adapter-basert --bin superfluid-worker-basertbuild.cargo test --release -p superfluid-adapter-kit -p superfluid-adapter-basert -p superfluid-engine-ffipasses atca3a67b. 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.BASERT_LIBnaming the 0.6.0 Windows bundle'sbaseRT.dll:superfluid runtimesshows basert ready on the GPU;serveloads Qwen3-0.6B Q4_0;Not done here
superfluid runtime install basertagainst 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.ps1does not install the basert runtime on Windows, whereinstall.shdoes on the other platforms.HIP_VISIBLE_DEVICESon Windows: hipInfo's order is taken as HIP's.rc-0.2.1(#179) ships first; this train mergesmainafter it.