Success. I got the ROCM 7.1 build working in Arch Linux with Ryzen 8700GE (780M) chip #19235
litan1106
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
First, thank you for the llama.cpp.
I want to share my build.
Building
llama.cppfor ROCm on Arch LinuxThis outlines the steps that worked for compiling the repository with HIP targeting the integrated Radeon 780M (gfx1100) inside the Ryzen Pro 7 8700GE on Arch Linux with ROCm 7.1 installed via the AUR.
Record the GPU target:
hipconfig -l rocminfo | grep gfx→ the messaging confirmed a
gfx1100RDNA3 GPU string.Prepare the ROCm toolchain variables:
Configure CMake with HIP and the proper target:
This ensures the HIP backend is built for the 780M without rocWMMA support (the headers were missing).
Build the project:
cmake --build build --config Release -- -j$(nproc)The second invocation finished the remaining targets after the first run timed out at 120 s.
Source fixes in ggml/src/ggml-hip/CMakeLists.txt
find_package(hipblaslt REQUIRED)afterfind_package(rocblas REQUIRED)target_link_libraries(ggml-hip PRIVATE ggml-base hip::host roc::rocblas roc::hipblas)totarget_link_libraries(ggml-hip PRIVATE ggml-base hip::host roc::rocblas roc::hipblas roc::hipblaslt)so the HIP extension symbols resolve during the link stage.Runtime notes:
GGML_CUDA_ENABLE_UNIFIED_MEMORY=1when you need UMA for the iGPU.HIP_VISIBLE_DEVICESor force the GPU string withHSA_OVERRIDE_GFX_VERSION=11.0.0if ROCm misdetects the integrated GPU.The binaries live under
build/bin(e.g.,llama-cli,llama-server).HIP_VISIBLE_DEVICES=0 GGML_CUDA_ENABLE_UNIFIED_MEMORY=1 \ ./build/bin/llama-cli \ --model models/Llama-3.2-8B-Instruct-Q4_K_M.gguf \ --prompt "Hello again" \ --gpu-layers 2 \ --tensor-split 2,6 \ --ctx-size 2048 \ --flash-attn off \ --threads 8 ggml_cuda_init: found 1 ROCm devices: Device 0: AMD Radeon 780M Graphics, gfx1100 (0x1100), VMM: no, Wave Size: 32 Loading model... ▄▄ ▄▄ ██ ██ ██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄ ██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██ ██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀ ██ ██ ▀▀ ▀▀ build : b7728-afd8929b model : Llama-3.2-8B-Instruct-Q4_K_M.gguf modalities : text available commands: /exit or Ctrl+C stop or exit /regen regenerate the last response /clear clear the chat history /read add a text file > Hello again It's nice to chat with you again. Is there something on your mind that you'd like to discuss, or would you like some recommendations for topics? [ Prompt: 29.7 t/s | Generation: 10.7 t/s ]All reactions