Skip to content

How-ToGPU

How to Run CUDA Apps on an AMD GPU With ZLUDA

ZLUDA aims to run unmodified CUDA programs on AMD Radeon graphics cards. Here's how to check your GPU is supported, install the HIP SDK, download and test ZLUDA, launch CUDA apps on Windows or Linux, and troubleshoot problems.

By , Systems & Technical Editor

5 min read

How to Run CUDA Apps on an AMD GPU With ZLUDA

Plenty of AI and compute programs only support NVIDIA's CUDA. ZLUDA is a free, open-source project that aims to run those unmodified CUDA applications on AMD Radeon graphics cards, without needing the program's source code. Any performance claims are the developers' own. Before you start, check whether your app already supports AMD directly, because a native route is usually simpler: see our guide to running local AI on an AMD Radeon GPU.

Before you start: set your expectations

The ZLUDA documentation is blunt: it warns that this version of ZLUDA is under heavy development and will likely not work with your application yet, while encouraging you to try it and report results. Some workloads are in good shape. The developers say llama.cpp is fully supported, with performance nearly identical to the native ROCm backend, and that Blender now works. Others are not: PyTorch support is still being built up, and the FAQ says ZLUDA is unlikely ever to support NVIDIA's OptiX hardware ray tracing again. The developers also found that the Go engine KataGo ran thousands of times slower than on NVIDIA GPUs, because some operations it uses have only a slow implementation in AMD's MIOpen library.

What you need

  • An AMD Radeon RX 5000-series or newer GPU. ZLUDA's FAQ says it supports these GPUs, both desktop and integrated. Older consumer GPUs such as Polaris and Vega, and server-class GPUs, aren't supported. ZLUDA doesn't currently support Intel GPUs, and macOS isn't supported.

  • Windows or Linux. This guide focuses on Windows, with the Linux commands at the end.

  • A recent AMD graphics driver (AMD Software: Adrenalin Edition).

  • AMD's HIP SDK on Windows, covered in step 2.

Step 1: Update your AMD driver

Install the latest AMD Software: Adrenalin Edition driver for your card. If you're not sure which install option to choose, our explainer on Adrenalin full vs minimal vs driver only covers the differences.

Step 2: Install the HIP SDK

On Windows, ZLUDA needs AMD's HIP SDK as well as the driver. The documentation offers two options:

  • Official HIP SDK: installs automatically and is stable and supported by AMD, but uses older code and has no machine learning support, so PyTorch and TensorFlow will not work. Download it from AMD's HIP SDK for Windows website and run the installer.

  • Nightly HIP SDK builds: needed for machine learning workloads such as PyTorch, but installed by hand and with no stability guarantees. Download a recent therock-dist-windows-gfx tarball for your GPU's architecture from AMD's ROCm SDK nightly tarballs site. The documentation gives the Radeon RX 9070 as an example, whose architecture number is 1201; you can look yours up in the TechPowerUp GPU database or run the included hipInfo.exe. Extract the archive (you may need to extract it twice with a tool such as 7-Zip), then set the HIP_PATH environment variable to the extracted folder, which must contain a bin folder with files including rocblas.dll.

AMD's own HIP SDK for Windows 7.2.0 system requirements list Radeon RX 9000 and RX 7000-series cards as supported and RX 6000-series cards as unsupported, so owners of older cards may run into problems with the official SDK. Our guide to checking whether your AMD GPU supports ROCm explains how to find your card's architecture.

Step 3: Download ZLUDA

The documentation recommends downloading the most recent pre-release from the ZLUDA releases page on GitHub, because ZLUDA evolves quickly; some pre-releases are periodically marked as stable. At the time of writing the latest pre-release is v7-preview.21, published on 11 November 2026, which comes as a zluda-windows zip file and a zluda-linux tar.gz file. Extract the zip to a folder of your choice.

Step 4: Check that ZLUDA can find its libraries

ZLUDA includes a small CUDA test program. Open a Command Prompt in the ZLUDA folder and run:

zluda.exe -- cuda_check.exe

It should report OK for each library it can load, such as nvcuda, cudnn9 and cublas12, along with the path of the matching HIP SDK file. The documentation notes that with the official HIP SDK, cudnn8 and cudnn9 will fail to load because that SDK doesn't include MIOpen, and that cuda_check.exe can sometimes hang because of a bug in MIOpen. The June 2026 ZLUDA update says ZLUDA now explicitly tells you if a library is missing and how to install it.

Step 5: Run your CUDA app

The recommended way is to start your program through the ZLUDA launcher:

zluda.exe -- <APPLICATION> <APPLICATION_ARGUMENTS>

Replace the placeholders with the path to the program's .exe file and any options it needs. Version 7-preview.21 also added an executable picker to the Windows launcher. The alternative is to copy all the ZLUDA files, including nvcuda.dll, into the folder from which your program loads CUDA, which is usually the folder containing its .exe file.

Spectral Compute, which makes the rival SCALE toolkit, notes in its documentation that because ZLUDA compiles each program's GPU code when it starts, you may see delays at startup, and that its reliance on DLL injection tends to upset antivirus software. Bear that in mind if an app seems slow to open or your security software raises a warning.

Step 6: Build llama.cpp for ZLUDA (optional)

If you want to run llama.cpp through ZLUDA, the documentation says it runs at native speed when compiled for CUDA architecture 86 with cuBLAS enabled:

cmake -B build -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES="86" -DGGML_CUDA_FORCE_CUBLAS=true

Compiling for several CUDA architectures is fine as long as one of them is 80, 86 or 89, while disabling cuBLAS may hurt performance. On Windows you need the HIP SDK for rocBLAS. llama.cpp also has native ROCm and Vulkan backends, which our guide to running llama.cpp on Windows covers.

Using ZLUDA on Linux

On Linux, the documentation's recommended method is to run your program like this, where the ZLUDA folder is the one containing ZLUDA's libcuda.so:

LD_LIBRARY_PATH="<ZLUDA_DIRECTORY>:$LD_LIBRARY_PATH" <APPLICATION> <APPLICATION_ARGUMENTS>

An alternative uses LD_AUDIT with ZLUDA's zluda_ld file. ZLUDA runs on top of AMD's ROCm platform, and the June 2026 ZLUDA update notes that on Linux, installing ROCm gives you the runtime and performance libraries in one compatible version; see how to install ROCm on Ubuntu.

Troubleshooting

  • The app crashes or won't start. Collect a trace by adding the --zluda-trace option: zluda.exe --zluda-trace -- <APPLICATION>. Logs are saved in %TEMP%\zluda, and you can zip that folder and attach it to a GitHub issue. The developers say traces help them decide what to fix next.

  • PyTorch or TensorFlow fails. Make sure you're using a nightly HIP SDK build rather than the official SDK, which has no machine learning support.

  • The app uses OptiX ray tracing. ZLUDA doesn't support OptiX, so use the app's other GPU backends if it has them.

For other ways to get CUDA code onto AMD and Intel hardware, see our pick of the best tools to run CUDA software on AMD and Intel GPUs, and for how ZLUDA compares with AMD's own platform, read ZLUDA vs ROCm.

The bottom line

Make sure you have a Radeon RX 5000-series or newer GPU and an up-to-date Adrenalin driver, install AMD's HIP SDK (a nightly build if you need PyTorch), download the latest ZLUDA pre-release from GitHub, check it with zluda.exe -- cuda_check.exe and then start your CUDA program with zluda.exe -- followed by the program's path. Expect some apps not to work yet, and use a native ROCm or Vulkan version of your software where one exists.

Sources

  1. 01ZLUDA documentation, Quick start, Installing HIP SDK, llama.cpp, FAQ and Logging
  2. 02GitHub, ZLUDA releases
  3. 03ZLUDA blog, ZLUDA update Q4 2025 (13 January 2026)
  4. 04ZLUDA blog, ZLUDA update Q1&Q2 2026 (29 June 2026)
  5. 05AMD ROCm documentation, System requirements for Windows (HIP SDK for Windows 7.2.0)
  6. 06SCALE documentation, Comparison to other solutions

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Fix Overscan When Your PC Screen Is Cut Off on a TV

How-To

How to Fix Overscan When Your PC Screen Is Cut Off on a TV

PC desktop cut off at the edges or surrounded by a black border on your TV? That's overscan or underscan. Here's how to fix it with the TV's picture size setting, the right Windows resolution, NVIDIA Control Panel's desktop resizing and AMD's HDMI Scaling.

Marcus Thorne4 min