Repository navigation
[CUDA] Pass MLX_CUDA_ARCH_LIST as a single quoted macro - #4839
Merged
Merged
Conversation
dhiltgen
force-pushed
the
cuda-arch-list
branch
from
November 6, 2026 00:50
cd7eac4 to
d0f995d
Compare
zcbenz
approved these changes
Nov 6, 2026
inureyes
added a commit
to lablup/mlxcel
that referenced
this pull request
Nov 16, 2026
Advance the MLX pin from `9f806b36` to `fc344c98`, the head of upstream `main` on 2026-11-16 and one commit newer. Nothing else has merged upstream since the last bump (#2876). See `docs/mlxcelverse/mlx-pin-2026-11-16.md`. The new commit, ml-explore/mlx#4839, passes `MLX_CUDA_ARCH_LIST` to the compiler as one quoted macro and splits it at runtime, so MSVC with the Visual Studio generator accepts a multi-architecture CUDA list. It changes only `mlx/backend/cuda/CMakeLists.txt` and `mlx/backend/cuda/device_info.cpp`. mlxcel sets `MLX_CUDA_ARCHITECTURES` from `build.rs` and never reads the macro or `get_arch_list()`, so no mlxcel code changes. ## Overlays - None of the 175 overlay files is one of the two changed upstream files, so every CPU, Metal, CUDA and core overlay applies unchanged and keeps the base it was last merged from. - ROCm: `rocm_overlay.py retarget` moved the core files to the new pin with no conflicts, and `drift` reports the same residual as before. Only the `UPSTREAM` pin line and the `CORE_RESIDUAL.diff` header change. The fork stays `75915908`. ## Validation (Apple M3 Ultra) - Pin parsers: `cargo test -p mlxcel-mlx-pin` (52 + 1 passed), `scripts/ci/mlx_pinned_commit_test.sh` passed, and the CMake file resolves to `fc344c98`. - `make verify-rocm-overlay` and `rocm_overlay.py drift` pass. - Release build with `metal,accelerate` fetched and compiled MLX at `fc344c98`; the binary reports that commit. - Metal, serial: `layers::tests` 47, `sdpa`/`attention` 146, `qmm`/`qmv` 28, mlxcel-core `qmm`/`qmv`/`cpu_qmm_accum`/`mamba1_scan`/`nemotron_registry` 27, `models::{jamba,mamba,ssd_scan,nemotron_h}` 92, all passed. - Greedy generation with `gemma-3n-e2b-it-4bit` and `qwen3.5-4b-4bit` runs and is coherent. - fmt and env-var docs check pass. PR CI passed, including the Windows compile-only build, the CUDA architecture-list check and the MLX pin extraction. No CUDA compile ran (on this host or in PR CI), and the only functional change is in the CUDA build, so the next GB10 build is its first compile.
4 tasks done
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.
Follow up to #4761 - fix up the cmake wiring to keep MSVC with the VS generator happy.