Repository navigation
Description
Problem / Background
Loading precompiled PTX is insufficient: MLX must own evaluation timing, array lifetimes, and graph dependencies. Depends on #2832 and #2831.
Design: feasibility review, added in #2835. Integration points: kernels/fused_norm.cpp, kernels/kernel_port.h, CUDA jit_module.cpp and device.cpp under src/lib/mlxcelverse/, and src/lib/mlxcel-core/build.rs.
Proposed Solution
Add a default-off experimental adapter for the standalone fused-normalization artifact. Preserve the current CUDA implementation and backend dispatch. Use the same artifact/ABI manifest as the standalone harness; validate target and specialization before enqueue.
Acceptance Criteria
- Execute during MLX lazy evaluation through its command encoder; retain inputs, outputs, and modules until asynchronous completion and graph replay finish, without device-host-device tensor round trips.
- Test lazy chains, graph on/off, repeated replay, allocator reuse, concurrent requests/streams, and captured-child-graph dependency ordering with nonzero GPU execution.
- Preserve artifact/dtype/shape/target/ABI cache identity and existing cache trust rules; test wrong-manifest, missing-artifact, unsupported-dtype/layout/target cases.
- Unsupported configurations select the existing CUDA path before enqueue; execution-time CUDA faults surface as errors, never silent retries. Expose a test-visible route marker so parity cannot pass by unnoticed fallback.
- Run the numerical matrix from Add a standalone cuda-oxide fused residual RMSNorm kernel #2832 in the adapter and demonstrate unchanged ordinary builds without oxide artifacts/compiler; keep non-CUDA and Windows routes unchanged.
- Record GB10 commands/results under
gpu-lockand document the opt-in switch and fallback behavior.
No general runtime replacement, broad operator port, or production enablement. If correct integration requires backend replacement, report the constraint and stop expansion.
Implemented in PR #3451 (open, not merged); commands and results are in docs/mlxcelverse/cuda-oxide-mlx-adapter-evidence.md on that branch. No backend replacement was needed.
Activity
docs: add cuda-oxide feasibility and initial experiment plan
docs: align the cuda-oxide experiment plan with issue order
docs: document cuda-oxide feasibility and initial experiment plan (#2835
feat(mlxcelverse): standalone cuda-oxide fused residual-add + RMSNorm…
refactor(core): split the cuda-oxide ABI check and record the graph dump
fix(core): close the review items on the cuda-oxide RMSNorm adapter
refactor(cuda): replace the disk-cache bool with a DiskCache enum
fix(ci): keep the cuda-oxide artifacts byte-exact on Windows checkouts
feat(core): add an opt-in cuda-oxide route behind fused_add_rms_norm (l…
docs(cuda-oxide): record the #2834 decision to keep the route opt-in
test(bench): benchmark cuda-oxide RMSNorm on GB10 and record the resu…
feat(cuda): make fused add+RMSNorm byte-identical to MLX rms_norm (#3512