ZLUDA
Run CUDA apps on AMD GPUs without code changes
Replaces —
Who it's for
Users running llama.cpp on AMD Radeon RX 5000 series or newer GPUs can use ZLUDA to get native-speed cuBLAS inference without needing an NVIDIA card.
You already have an NVIDIA GPU with working CUDA drivers.
ZLUDA's binary-level injection lets users run proprietary CUDA-based tools on AMD hardware without access to source code, since no recompilation is needed.
The application relies on OptiX ray-tracing, which ZLUDA does not support.
Researchers who want to run CUDA-based experiments on AMD hardware while PyTorch native AMD support matures can use ZLUDA as a compatibility bridge, with the caveat that PyTorch support is still in development.
You need production-stable PyTorch training; ZLUDA's PyTorch support is not yet complete.
Developers building CUDA kernels can use ZLUDA to test their code on AMD GPUs during development, helping surface portability issues before targeting a wider hardware base.
The problem
The CUDA ecosystem locks GPU-accelerated software to NVIDIA hardware. Developers and users with AMD GPUs cannot run the vast library of CUDA applications, inference engines, and research code without access to an NVIDIA GPU, even when their hardware is capable of executing the underlying compute workloads.
How it works
ZLUDA replaces `libcuda.so` on Linux (via `LD_LIBRARY_PATH`) and `nvcuda.dll` on Windows without modifying the target application. A dedicated launcher binary handles injection automatically on Windows.
ZLUDA compiles CUDA PTX intermediate code to AMD's HIP/ROCm backend at runtime. This approach preserves low-level features such as disabling FP contraction, explicit alignment, subgroup operations, pointer casts, inline assembly, and denormal modes that OpenCL or Vulkan-based approaches cannot expose.
llama.cpp runs at native performance when compiled for CUDA architecture 86 with cuBLAS enabled (`-DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=86 -DGGML_CUDA_FORCE_CUBLAS=true`). rocBLAS on Windows requires the HIP SDK.
ZLUDA supports both Windows (with the Adrenalin Edition AMD driver and HIP SDK) and Linux. macOS is explicitly out of scope due to CUDA's near-absent presence on that platform.
Supported hardware covers desktop and integrated AMD Radeon RX 5000 series GPUs and newer. Older architectures such as Polaris and Vega are not supported, as they differ significantly from current desktop GPU designs.
The team publishes quarterly progress reports covering new features, performance work, and roadmap updates. ZLUDA 5 shipped in Q3 2025; ROCm 7 and full Windows support followed in Q4 2025.
Features
- Drop-in replacement
- PTX-to-HIP compilation
- llama.cpp at native speed
- Windows and Linux support
- AMD Radeon RX 5000 series and newer
- Active development cadence
How to install
# Linux — run any CUDA application through ZLUDA LD_LIBRARY_PATH="<ZLUDA_DIRECTORY>:$LD_LIBRARY_PATH" <APPLICATION> <APPLICATION_ARGUMENTS> # Windows — use the ZLUDA launcher <ZLUDA_DIRECTORY>\zluda.exe -- <APPLICATION> <APPLICATION_ARGUMENTS>
Recommended for this setup
Strengths
- No application changes required: ZLUDA works at the binary level. Applications built against CUDA need no recompilation, patching, or source access, which means closed-source CUDA software can also benefit.
- Richer feature set than OpenCL/Vulkan paths: By compiling PTX directly to HIP, ZLUDA preserves CUDA features that Vulkan and OpenCL cannot express, including inline assembly, rounding modes, bindless images, and arbitrary virtual calls. Performance libraries such as cuBLAS and cuDNN are also mappable through this path.
- Dedicated funding and quarterly roadmap: The project is fully funded by an undisclosed organization and publishes transparent quarterly updates. This gives it a more predictable development trajectory than many open source GPU compatibility layers.
Trade-offs
- Still under heavy development: The documentation warns that the current version will likely not work with every application yet. Users are encouraged to test and report results rather than assuming production-readiness.
- OptiX and hardware ray-tracing are out of scope: ZLUDA is unlikely to ever support NVIDIA's OptiX ray-tracing API. OptiX uses its own PTX dialect and host code, making it a separate engineering effort that the team does not plan to fund.
- Intel GPU support dropped: ZLUDA previously supported Intel GPUs, but that backend is not currently active. The team is focused on AMD support and welcomes external contributors to revive the Intel path.
- Older AMD GPUs not supported: Radeon RX cards older than the 5000 series (Polaris, Vega, etc.) and server-class AMD GPUs are not supported. Only desktop and integrated consumer GPUs from the RX 5000 generation forward are in scope.
Tech stack
FAQ
ZLUDA supports AMD Radeon RX 5000 series and newer GPUs, including desktop and integrated variants. Older consumer GPUs (Polaris, Vega) and server-class AMD GPUs are not supported.
No. macOS is explicitly unsupported. The team notes there is very little non-deprecated CUDA software for macOS, making it unlikely to ever be added.
On Linux, ZLUDA replaces `libcuda.so` by prepending its directory to `LD_LIBRARY_PATH`. On Windows, a launcher executable (or manual DLL copy) replaces `nvcuda.dll` in the application's load path.
PyTorch support is listed as a top development priority. As of the Q4 2025 update, initial support was expected; check the quarterly blog updates or Discord for current status.
ZLUDA is fully funded by an organization that the team has not yet publicly identified. The project accepts contributions of labor rather than monetary donations.