Skip to content

Misc. bug: GPU detection bug: The Docker version of llama.cpp did not detect the GPU. Vulkan Backend, AMD RX7900XTX (ROCm is fine) #24474

Description

@arbv

Name and Version

[root@cauldron:/etc/nixos]# podman run --rm --security-opt=label=disable --device /dev/dri -e VK_LOADER_DEBUG=all --group-add video ghcr.io/ggml-org/llama.cpp:full-vulkan --server --version
version: 9592 (ac4cddeb0)
built with GNU 15.2.0 for Linux x86_64

Operating systems

Linux

Which llama.cpp modules do you know to be affected?

llama-server

Command line

podman run --rm --security-opt=label=disable --device /dev/dri -e VK_LOADER_DEBUG=all ghcr.io/ggml-org/llama.cpp:full-vulkan --server --list-devices --verbose
Available devices:

Problem description & steps to reproduce

llama.cpp does not detect my GPUs at all when using Vulkan backend. ROCm works fine.

First Bad Commit

No response

Relevant log output

Logs when using the official docker image
podman run --rm --security-opt=label=disable --device /dev/dri -e VK_LOADER_DEBUG=all ghcr.io/ggml-org/llama.cpp:full-vulkan --server --list-devices --verbose
Available devices:
Logs when using vulkaninfo with Debian Trixie image (to demonstrate that GPU passthrough for Vulkan works)
[root@cauldron:/etc/nixos]# podman run --rm --device /dev/dri   docker.io/library/debian:trixie   sh -c 'apt-get update -qq && apt-get install -y -qq mesa-vulkan-drivers vulkan-tools >/dev/null 2>&1; vulkaninfo --summary 2>/dev/null | grep -iE "deviceName|driverName|GPU id|apiVersion"'
	apiVersion         = 1.4.305
	deviceName         = AMD Radeon RX 7900 XTX (RADV NAVI31)
	driverName         = radv
	apiVersion         = 1.4.305
	deviceName         = AMD Radeon Graphics (RADV RAPHAEL_MENDOCINO)
	driverName         = radv
	apiVersion         = 1.4.305
	deviceName         = llvmpipe (LLVM 19.1.7, 256 bits)
	driverName         = llvmpipe

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions