Repository navigation
CUDA admission: an integrated GPU under WSL2 reads the CUDA pool (RTX Spark N1X), plus an N1X receipt - #2107
Conversation
|
Thanks @drowzeys, a clear diagnosis: under WSL2 |
|
Added a second, small fix found while testing Drama 3 natively on the same N1X. Drama's CUDA cuBLAS loader ( |
|
Thanks @drowzeys. Here's the check we promised, on a GB10 under native Linux with the variable unset, your head against its base: the admission line is the same in every run (8 streams at a 73,728-token window), tokens are identical in all 20 rows, and prompt and decode speed are level. So native Linux admits exactly as main does. Not run: |
|
Thanks @drowzeys, and for the Drama 3 DLL fix. Two things from our earlier note are still open on |
|
Hi @drowzeys, thanks again for the WSL2 pool fix and the Drama 3 DLL name. Checking in on the small things from our last note:
Main has moved too, so the branch needs a rebase. And is a change needed in the optional-library table your comment mentioned, or can that go? Once these are in, we'll run the opt-in setting and take it from there.
|
c4ef914 to
3877045
Compare
|
Thanks @drowzeys, for the WSL2 pool fix, the N1X receipt and the Drama 3 DLL name. We've finished the small asks on your branch ourselves, keeping your two commits as yours:
Host tests pass on macOS (the Windows pool and environment tests, and the CUDA host suite), and the Linux CUDA build compiles. What's left is ours: on a GB10 under native Linux we'll run this head with the variable unset,
|
3877045 to
2889570
Compare
|
Thanks @drowzeys. We rebased this onto today's main, keeping your commits under your name. The only conflict was in Please pull before you push again (
|
|
/atc exchange b2b69ddb09ce37519cedd6ad578b125388eb81f64215acd31028919e370335a2 |
…on Windows On Linux an integrated device's room came from /proc/meminfo. Under WSL2 that is WSL's RAM (about 30 GiB on an RTX Spark N1X whose firmware gives the GPU 96 GB), not the GPU's WDDM pool, so a 72.8 GiB Flash Next checkpoint the GPU holds was refused. hostCounts takes the WSL answer from its callers (WSL_DISTRO_NAME, or TENSORFOLD_UNIFIED_HOST_COUNTS=1/0 to force procfs or the pool); the family pool reads it through Host.env, so the fixtures keep their native-Linux answer. docs/WINDOWS.md: the WSL note and an RTX Spark N1X receipt (native build from NVIDIA's windows-arm64 archives, WSL and native measurements).
drama3/cuda/blas.zig and the optional-library table named only the Linux sonames (libcublas.so.13), so native Windows Drama 3 always failed with CublasUnavailable although cublas64_13.dll was on PATH. On Windows they now try cublas64_13.dll, as cuda/cublaslt.zig already does for cuBLASLt. Measured on an RTX Spark N1X: fishaudio/drama-3 loads natively in 31.5 s and speaks a 13.2 s line in 11.2 s.
The variable gets a row in platform/environment.zig, so the CUDA backend refuses any other value at startup, by name, as it does for its other settings, and the pool reads parse it through the same row instead of treating everything but 0 as /proc/meminfo. Blank reads as unset, as for every registered setting. docs/environment.md lists it and docs/WINDOWS.md says a typo is refused. The hostCounts, wslPool and cuBLAS open comments are one line each. A fixture test covers WSL2 reading the pool, both values and four typos; the typo cases fail on the previous head, which kept /proc/meminfo for them. Co-authored-by: drowzeys <[email protected]>
2889570 to
a175103
Compare
|
Thank you @drowzeys. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
|
Thanks @drowzeys! This is in TensorFold 1.2.10, out now: https://github.com/ashhart/TensorFold/releases/tag/v1.2.10
|
Problem. On Linux, an integrated device's room comes from `/proc/meminfo`. Under WSL2 that's WSL's RAM, not the GPU's memory. On an RTX Spark N1X laptop (HP OmniBook X 14, 128 GB) the firmware gives the GPU a fixed 96 GB WDDM pool and leaves WSL about 30 GB. So the Linux build refused `Blackfrost-AI/CYBER-FROST-3.8-FP4-Local` (Flash Next, 72.8 GiB) with "24.5 GiB the CUDA memory budget grants", although the GPU holds it. `TENSORFOLD_CUDA_MEMORY_LIMIT_GB` can't help, because it only lowers the cap.
Change.
Receipt (also added to `docs/WINDOWS.md`), on the N1X in HP Performance mode, Cyber Frost FP4-Local, 4 streams at a 32K window, vcruz305's `bench_v1.py` / `concurrency.py`, client end-to-end:
Native Windows build. This reproduces the N1X receipt the Windows doc says hasn't been reproduced on the maintained tree. Built from source:
For comparison, the same laptop on exllamav3 (vcruz305's EXL3 recipe, Cyber Frost 3.87 bpw) gave 38.6 / 34.5 / 27.8 tok/s and 36.2 aggregate at four.
Tests. `zig build test` (host) in WSL2 on the N1X: everything passes except 3 `qwen35_layers_host` cases. They fail identically on unchanged `main` (`85e53093b`), so they're not from this change. The serve path was checked end to end on a 1.2.2 build carrying the same change; this branch is on `main`.