Skip to content

docs(cuda): record the Windows runtime bundle validation on N1X - #2786

Merged
inureyes merged 2 commits into
mainfrom
update/issue-2653-windows-cuda-bundle
Oct 31, 2026
Merged

inureyes merged 2 commits into
mainfrom
update/issue-2653-windows-cuda-bundle

Conversation

@inureyes

Copy link
Copy Markdown
Member

Hardware validation of the Windows CUDA runtime bundle from #2640, which closed on build-only verification. Host: RTX Spark N1X (aarch64-pc-windows-msvc, sm_121), driver 617.74, CUDA 13.4 (V13.4.92), cuDNN 9.27.0.42. "Toolkit away" means the toolkit root renamed, and CUDA_PATH, CUDA_HOME and CUDNN_PATH unset. No DLL or header was missing, so this changes docs and one comment.

Runs

gemma-4-e4b-it-qat-4bit, empty MLX_PTX_CACHE_DIR for generate.

Run Runtime line Result
Toolkit in place, no bundle <toolkit>/bin/arm64 (build-time CUDA toolkit) generate, 43.6 tok/s
Toolkit away, bundle folder ...\bundle-2653\mlxcel\bin (executable directory) generate, 45.1 tok/s; server chat 200
Toolkit away, bundle moved ...\bundle-2653-moved\bin (MLXCEL_CUDA_RUNTIME_DIR) generate, 44.8 tok/s; server chat 200

The server check used curl, because scripts/server_chat_smoke.sh opens /tmp from Windows Python and fails on this host. That script is not changed here.

Module list

A generate run on a 3950-token Llama 3.1 8B prompt, toolkit away, is what reaches cuDNN:

...\bundle-2653\mlxcel\bin\cublas64_13.dll
...\bundle-2653\mlxcel\bin\cublasLt64_13.dll
...\bundle-2653\mlxcel\bin\cudnn64_9.dll
...\bundle-2653\mlxcel\bin\cudnn_adv64_9.dll
...\bundle-2653\mlxcel\bin\cudnn_cnn64_9.dll
...\bundle-2653\mlxcel\bin\cudnn_engines_precompiled64_9.dll
...\bundle-2653\mlxcel\bin\cudnn_engines_runtime_compiled64_9.dll
...\bundle-2653\mlxcel\bin\cudnn_engines_tensor_ir64_9.dll
...\bundle-2653\mlxcel\bin\cudnn_ext64_9.dll
...\bundle-2653\mlxcel\bin\cudnn_graph64_9.dll
...\bundle-2653\mlxcel\bin\cudnn_heuristic64_9.dll
...\bundle-2653\mlxcel\bin\cudnn_ops64_9.dll
...\bundle-2653\mlxcel\bin\nvJitLink_130_0.dll
...\bundle-2653\mlxcel\bin\nvrtc64_130_0.dll
...\bundle-2653\mlxcel\bin\nvrtc-builtins64_134.dll
C:\Windows\SYSTEM32\nvcuda.dll

Listed but not loaded in any run: cuFFT, cuSOLVER, cuSPARSE. The short gemma prompt loads no cuDNN DLL.

Missing DLL

Removing cudnn_ops64_9.dll exits 127 with this message; nvrtc-builtins64_134.dll and cusparse64_12.dll stop the same way with their own names:

mlxcel: the CUDA runtime directory chosen from executable directory (...\mlxcel\bin) is missing ...\mlxcel\bin\cudnn_ops*.dll. The CUDA libraries load these files at run time, and other CUDA installations are not searched; restore the files or use a complete runtime directory.

Removing cufft64_12.dll does not stop generate, because cuFFT loads on first call.

Docs changes beyond the result

  • The arm64 cccl archive's LICENSE is the CUDA EULA, which the script rejects, so the install guide now points at the NVIDIA/cccl tag's LICENSE. Packaging with that file was checked; the runs above used a stand-in file for that one license, which does not affect loading.
  • MSVCP140.dll, VCRUNTIME140.dll and openblas.dll do not resolve through the runtime directory. The notes now say so.

Not covered

x64 GPU hosts, a machine with only the display driver (this one has Visual Studio), and cuFFT or cuSOLVER calls.

Gate

clippy with --features cuda, cargo test -p mlxcel-mlx-pin --lib and the packaging tests pass locally. make verify-cuda-runtime-dir needs c++, which this host lacks; CI's overlay-host-tests job runs it. Plain-name load results go on #2641. The internal manual gets the matching update separately.

Closes #2653

#2640 closed on build-only verification because its host had no NVIDIA GPU. The bundle has now run on an arm64 RTX Spark N1X with the toolkit renamed. The Windows limits row, the DLL list provenance and the plain-name load paragraph now state that result.

Two documented gaps came out of it. The `LICENSE` in the arm64 `cccl` archive is the CUDA EULA, which the packaging script rejects, so the docs now point at the matching `NVIDIA/cccl` tag. The Visual C++ runtime and `openblas.dll` do not resolve through the runtime directory, which the notes now say.

No DLL or header was missing, so no code changed beyond a comment.

Refs #2653
@inureyes inureyes added status:review Under review type:test Test related changes priority:medium Medium priority area:core mlxcel-core: MLX FFI, primitives, KV cache, layers platform:windows Windows (native) specific labels Oct 31, 2026
@inureyes
inureyes merged commit 1a257bc into main Oct 31, 2026
31 checks passed
@inureyes inureyes added this to the 0.8 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core mlxcel-core: MLX FFI, primitives, KV cache, layers platform:windows Windows (native) specific priority:medium Medium priority status:review Under review type:test Test related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: Validate the Windows CUDA runtime bundle on NVIDIA hardware

1 participant