Currently mlx-cuda requires a system install of CUDA toolkit: https://github.com/ml-explore/mlx/blob/704fd1ae284036908ede151062452a0f190e8221/mlx/backend/cuda/jit_module.cpp#L30-L51 It would be nice to be able to search from installed python packages as well so users can do: ``` uv run --with 'mlx[cuda]' --with 'cuda-toolkit[all]==12.9' python test_mlx.py ```
Activity
leofang commentedon Nov 27, 2025
Hello from CUDA Python! 👋 The
cuda-pathfinderpackage was designed for precisely this use case, and it has been adopted by CuPy, PyTorch, and many other Python CUDA packages!https://nvidia.github.io/cuda-python/cuda-pathfinder/latest/generated/cuda.pathfinder.load_nvidia_dynamic_lib.html
Any issues can be reported to https://github.com/NVIDIA/cuda-python 🙂 Let us know how we can help you.
zcbenz commentedon Nov 27, 2025
@leofang This is super helpful, thanks a lot!