Executable programs and extensions

Local AI with ROCm and Radeon: Reading Support Combinations and Runtime Paths

Check Radeon support across the GPU, operating system, and ROCm combination

ROCm1 is a software stack for computing AI workloads on AMD GPUs. It connects drivers, runtimes, libraries, and frameworks such as PyTorch2 to run image-generation or language-model tasks. Find a supported combination for your GPU3 and operating system, then choose the app’s installation path.

To run PyTorch image workloads on a Radeon, match the operating system and application as well as the GPU model. This guide first checks one supported combination, then tests the connection with a small workload.

Requirements and key details
  • Use HIPIFY to convert supported calls in CUDA source to HIP form, then build for AMD.
  • Choose an installation path from the separate support matrix for the Radeon or Instinct product family.
  • Follow the documented installation and execution path for Windows, WSL, Linux, or Vulkan.

Distinguish the ROCm stack from HIP porting

ROCm includes drivers, runtimes, compilers, math libraries, and framework integration. Image generation with PyTorch requires a compatible PyTorch build, ROCm version, and GPU kernels. Install a version combination listed in the official support matrix.

HIP4 is a C++ runtime5 API6 and GPU kernel7 language. Use HIPIFY8 to convert supported CUDA9 source calls to HIP, build for AMD, and connect libraries such as cuBLAS to their ROCm counterparts. After building, test an input and inspect the output and errors.

A wooden desk with a code notebook, a graphics card, and a separately packed disk
Port CUDA source to AMD with HIP and match the corresponding libraries.

Find the product family and complete software combination in the support matrix

AMD provides separate support paths for Radeon, Instinct, and Ryzen APUs. Find consumer Radeon cards in the ROCm on Radeon matrix; for data-center Instinct, check the server distribution, kernel, and software combination. Select the device, then follow the release listed for its product family and OS.

The latest AMD ROCm Core SDK is 10.1.0 and provides an integrated compatibility matrix. Find a row that supports your GPU, operating system, driver, kernel, ROCm, and framework together. Match the version in app installation instructions such as PyTorch to that row, then run the documented command.

Two different graphics cards on a workbench beside paper and a calendar
Match the OS, driver, ROCm, and framework along with the GPU.

Choose the Windows, WSL, or Linux path based on the app

On Linux, install a supported distribution, kernel, and driver combination. For native Windows PyTorch and WSL, follow the support scope and configuration documented for each. The WSL path may include a ROCDXG setup between the Windows host and Linux guest. Choose an OS/GPU combination supported by the app’s installation procedure.

When using Docker, prepare the host driver and pass the GPU into the container as described in the official container guide. Check that the device is visible inside the container, then install libraries and the model to isolate environment issues step by step.

A laptop showing a landscape beside two desktop computers on a workbench
Windows, WSL, and Linux have different procedures and support conditions.

Read PyTorch’s cuda naming together with the actual build

PyTorch ROCm retains the torch.cuda namespace and "cuda" device label so existing APIs and code can be reused. To check whether the installed build uses ROCm, inspect torch.version.hip too; this value indicates whether the framework is built for the AMD HIP runtime.

If PyTorch cannot find the GPU, check the installed build, supported combination, and device connection in sequence. If the GPU is detected but one app fails, look in its logs for a required operation or extension package. Complete a small basic PyTorch operation, then test app features one at a time to locate the failure.

Vulkan is a separate backend from ROCm

llama.cpp provides a Vulkan backend for Radeon GPUs. Match the Vulkan driver and llama.cpp build options, then run the model using the app’s Vulkan instructions. Configure PyTorch image workloads that use ROCm through their separate execution path.

Run a small GGUF10 chat and PyTorch image workload to completion to check each feature. When comparing backend speed, use the same model, quantization11, and input conditions.

Run a small workload to completion before buying

If you already have a Radeon, prepare the app and model using a support-matrix installation path, then complete a small image workload through saving the output. Reopen the app, repeat the same input, and record quality, memory, and run time. When choosing a new GPU, select the model and app first, then compare VRAM12 and power requirements for supported cards.

When considering a combination absent from official documentation, plan for community configuration and maintenance work together. To reduce that burden, choose another GPU or backend officially supported by the app.

Terminology notes

  1. ROCm — AMD’s software platform for AI and high-performance computing on GPUs. Support depends on the combination of GPU, operating system, driver, and framework versions.

    Back to the text
  2. PyTorch — A software framework for building and running AI models. Check the compatible PyTorch version and hardware support along with the model.

    Back to the text
  3. GPU — A processor designed to handle many calculations in parallel. It performs model computations during AI inference.

    Back to the text
  4. HIP — An API and runtime for portable GPU C++ code. It helps with porting CUDA code.

    Back to the text
  5. Runtime — The software environment that provides facilities needed while a program runs. In local AI, it can also refer to a model execution engine.

    Back to the text
  6. API — A defined interface that lets other code call a program’s functions.

    Back to the text
  7. GPU kernel — Code executed in parallel on a GPU to perform operations such as matrix multiplication or normalization.

    Back to the text
  8. HIPIFY — Tools that translate CUDA source constructs and API calls into HIP. Builds, correctness checks, and performance tuning may still be needed after conversion.

    Back to the text
  9. CUDA — A software platform for general-purpose computing on NVIDIA GPUs.

    Back to the text
  10. GGUF — A file format for model data, widely used by llama.cpp-based tools.

    Back to the text
  11. Quantization — A way to represent model weights or values with fewer bits, reducing storage and memory use. The coarser representation can also affect accuracy.

    Back to the text
  12. VRAM — Memory used by a graphics card’s GPU to store model weights and intermediate values.

    Back to the text

Frequently asked questions

What should you check first in this article?
ROCm is a software stack for computing AI workloads on AMD GPUs. It connects drivers, runtimes, libraries, and frameworks such as PyTorch to run image-generation or language-model tasks. Find a supported combination for your GPU and operating system, then choose the app’s installation path.