In short
Vulkan is a useful llama.cpp route for Radeon integrated graphics: install the tools, build or download a Vulkan-enabled llama.cpp, and run a GGUF model with GPU offload. ROCm is another option on supported hardware, driver and operating-system combinations. Choose a working backend first, then compare speed with the same model and settings.
- Vulkan works across a broad range of Radeon graphics, including integrated GPUs, with a standard graphics driver.
- ROCm needs a supported hardware, driver and OS combination; a working Linux setup does not guarantee the same route on Windows.
- Build with -DGGML_VULKAN=ON, or download an official Windows Vulkan release package and keep its DLLs beside the executables.
- Compare backends only with the same model, quantisation, context, driver and power settings.
What you need
| A Radeon iGPU or dGPU | Vulkan support comes with the standard AMD graphics driver; no separate compute stack is needed for the Vulkan route. |
|---|---|
| Windows 10/11 or Linux | The build steps below are written for Windows with Visual Studio build tools; Linux uses the same CMake flags. |
| Build tools | Git, Visual Studio C++ build tools, CMake and the Vulkan SDK, if you build from source. |
| A GGUF model file | Start with a small publisher-supplied GGUF; the commands expect it named model.gguf in the project folder. |
| Free system RAM | An iGPU shares system memory, so the model must fit in RAM alongside the OS. See how much ram for local llm guidance. |
Step 01: Install the build tools
Install Git, Visual Studio C++ build tools, CMake and the Vulkan SDK. These are the dependencies the official llama.cpp build documentation lists for a Windows source build. If you plan to use the prebuilt release package instead, you can skip this step.
winget install Git.Git Kitware.CMake Microsoft.VisualStudio.2022.BuildTools LunarG.VulkanSDKStep 02: Build llama.cpp with Vulkan enabled
In a developer PowerShell, clone the official repository and build with the Vulkan backend flag. The -DGGML_VULKAN=ON flag is what selects Vulkan; without it you get a CPU-only build. This is the build procedure from the llama.cpp build documentation, not a hardware validation run.
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build -DGGML_VULKAN=ON
cmake --build build --config ReleaseStep 03: Or download the release package
An official Windows Vulkan release package is an alternative to building. Download it from the repository's releases page, extract it, and keep its DLLs beside the executables — the Vulkan build ships runtime libraries that the executables load from their own folder. If a DLL is missing at launch, it has usually been separated from the executable.
Step 04: Run your first model
Use a small publisher-supplied GGUF and save it as model.gguf in the project folder. The -ngl 99 flag offloads model layers to the GPU; -c 2048 sets the context size and -n 128 caps the generation length. Check the startup output for Vulkan detection and layer offload before judging speed.
.\build\bin\Release\llama-cli.exe -m .\model.gguf -ngl 99 -c 2048 -n 128 -p "Explain unified memory in three sentences."Step 05: Troubleshoot and record your setup
Reduce the offload count or model size if allocation fails — an iGPU shares system memory with the OS, so a model that fits a discrete card may not fit here. Record the model file, quantisation, context size and build when comparing speed, because any of them can change the result more than the backend does.
Vulkan or ROCm?
Vulkan is the broader route for llama.cpp on Radeon integrated graphics, and ROCm is the option on supported hardware, driver and operating-system combinations. Support differs by operating system and build, so the choice starts with what your combination supports, not with which one is theoretically faster.
Vulkan is a graphics-compute API. On Windows and Linux it arrives with the standard AMD graphics driver, which is why it covers a wide range of Radeon products, including integrated GPUs that a compute stack may not officially list. For an iGPU in a mini PC, Vulkan is usually the backend that works first: you install a normal graphics driver and the backend is available.
ROCm is AMD's compute stack. It requires a supported driver and hardware combination, and its supported list has historically been narrower than Vulkan's reach. The operating system matters as much as the chip: a working Linux ROCm setup does not guarantee the same installation route on Windows, where ROCm support for consumer and integrated GPUs has been more limited. If your mini PC dual-boots, plan on a different answer per OS.
| Vulkan | ROCm | |
|---|---|---|
| Driver needed | Standard AMD graphics driver | ROCm-supported driver and stack |
| iGPU coverage | Broad, including Radeon iGPUs | Limited to supported combinations |
| Windows route | Works with the standard driver | Depends on the supported list |
| Linux route | Works with the standard driver | Works where the combination is supported |
| Best first step for an iGPU | Yes | Only if your combination is listed |
What this table means for a buyer is simple: check the supported list for your exact chip and OS before committing to ROCm, and default to Vulkan when the list is unclear. A backend that installs and runs beats a faster backend you cannot get working.
There is no universal speed winner between the two. The practical order is: get one backend working, then compare the other with the same model and settings. Only a matched comparison tells you anything — the FAQ below covers the Strix Halo case in the same terms.
If you later want a simpler package on top of the same hardware, the ollama windows guide covers installing Ollama on a Ryzen AI mini PC, and Ollama's own hardware documentation describes which backends it uses on AMD graphics. The backend choice you make for llama.cpp is the same choice a packaged tool makes underneath.
Build or download llama.cpp with Vulkan
You can either build llama.cpp from source with Vulkan enabled, or download an official Windows Vulkan release package — both give you the same backend. The build route gives you the current code and control over configuration; the package route is faster to a first run. Neither route needs ROCm installed.
To build on Windows, install Git, Visual Studio C++ build tools, CMake and the Vulkan SDK. Open a developer PowerShell — the one launched from the Visual Studio installation, so the compiler is on the path — and run the clone and CMake commands in the steps above. The single flag that matters is -DGGML_VULKAN=ON; the build documentation lists it among the backend options. Without that flag you get a CPU-only build, which is the most common mistake on a fresh machine. On Linux the same flag works with the platform's CMake and compiler toolchain.
The build produces the command-line tools, including llama-cli.exe, under build\bin\Release. Keep the whole build folder intact: the executables and their runtime files live together, and the same keep-them-together rule applies to the downloaded package.
To download instead, take the official Windows Vulkan release package from the repository's releases page. Extract it and keep the DLLs beside the executables: the Vulkan build ships runtime libraries that the executables load from their own folder. Moving llama-cli.exe without its DLLs is the most common reason a fresh download fails to start. If you see a missing-DLL error at launch, it has usually been separated from the executable, not a driver problem.
| Route | What you install | Time to first run | When to use it |
|---|---|---|---|
| Build from source | Git, VS C++ build tools, CMake, Vulkan SDK | Longer | You want the latest code or a custom configuration |
| Release package | Nothing beyond the download | Minutes | You want a first run quickly |
For a buyer deciding between them: use the package to check that Vulkan works on your machine at all, then switch to a source build only if you need something the package does not offer. There is no accuracy difference between the routes — the backend is the same either way.
Whichever route you take, verify the backend at launch rather than assuming it. The startup output should name Vulkan as the detected backend before any tokens are generated. This procedure is documentation-based, not a hardware validation run.
Run your first model
Run a small publisher-supplied GGUF with -ngl 99 to offload layers to the Radeon iGPU, and check the startup output for Vulkan detection before judging speed. The command in the steps above expects the model file named model.gguf in the project folder, so rename your download to match or edit the -m path.
Start small. An integrated GPU shares system memory with the operating system, so a model that fits comfortably on a discrete card with its own VRAM may not fit here. The OS, the browser and the app itself all draw from the same pool. How much memory a given model size needs is covered in how much ram for local llm — read that before choosing a model, not after a failed allocation.
Each flag in the first command does a specific job, and knowing them helps you read failures:
| Flag | What it does | What to do when it fails |
|---|---|---|
-m .\model.gguf | Points at the model file | Check the path and filename |
-ngl 99 | Offloads up to 99 model layers to the GPU | Reduce the number to offload fewer layers |
-c 2048 | Sets the context size in tokens | Lower it to shrink memory use |
-n 128 | Caps generated tokens | Raise it for longer answers |
-p "…" | The prompt | Any text you like |
If allocation fails, reduce the offload count in -ngl or move to a smaller model. A partial offload still runs; it just leaves more layers on the CPU and runs slower. Watch the startup lines: they report the backend, the number of offloaded layers and the context allocation. Those three lines are your confirmation that Vulkan is doing the work and how much of it.
When you compare backends or builds, record the model file, quantisation, context size, driver version and power settings alongside the timing. Any of these can change the result more than the backend does. Two runs with different context sizes are not a comparison, and neither are two runs at different power profiles on a mini PC. Fix everything but the one variable you are testing.
Once llama.cpp works, you may not need it as your daily interface. Ollama wraps a similar runtime in a simpler service, and the ollama windows guide covers that install on a Ryzen AI mini PC. Many people use llama-cli to verify the backend and Ollama for everyday use.
Frequently asked questions
Is Vulkan or ROCm faster on Strix Halo?
There is no universal winner on Strix Halo; the result depends on the build, driver and settings. Match model, quantisation, context, driver and power settings on supported builds before drawing a conclusion. Strix Halo's Radeon graphics is supported by the Vulkan route with the standard driver, while ROCm depends on the supported hardware, driver and OS combination — so on Windows, Vulkan is often the only one of the two that works first. Test both only where both install, and time them with the same model file and parameters. A difference in context size or power settings between two runs can look like a backend difference when it is not.
Sources
- [1]llama.cpp build documentation — Build procedure, the GGML_VULKAN backend flag and Windows build dependencies. Checked 2 October 2026.
- [2]llama.cpp repository — Official repository and Windows Vulkan release packages. Checked 2 October 2026.
- [3]Ollama hardware support — AMD graphics support and backend availability in Ollama, used for the Vulkan-versus-ROCm context. Checked 2 October 2026.