Skip to content

Compile bug: Error generating vulkan shaders for mul_mm.comp #20868

@tomoverlund

Description

@tomoverlund

Git commit

$ git rev-parse HEAD
81bc4d3

Operating systems

Linux

GGML backends

Vulkan

Problem description & steps to reproduce

Running on freshly updated Debian unstable on AMD 64, using a fresh git clone of llama.cpp. Trying to compile with Vulkan support. Packages libvulkan-dev (1.4.341.0-1) and glslc (2026.1-1) are installed. Running on a single core, non-concurrent build.

Build steps:

$ cmake -B build -DGGML_VULKAN=1
$ cmake --build build --config Release

I get an error at this point:

[ 15%] Generate vulkan shaders for mul_mm.comp
Error executing command for matmul_id_subgroup_q8_0_f32_aligned_fp32: Failed to fork process
Error executing command for matmul_id_subgroup_q8_0_f16_fp32: Failed to fork process
[..]

followed by a long list of similar failures.

Other shaders seemed to compile okay. The previous successful build step was:
[ 14%] Generate vulkan shaders for mul_mat_vecq.comp
and the next successful build step was:
[ 15%] Generate vulkan shaders for mul_mm_cm2.comp

The build continues on, and eventually fails at:
[ 67%] Linking CXX executable ../bin/test-tokenizer-0
/usr/bin/x86_64-linux-gnu-ld.bfd: ../bin/libggml-vulkan.so.0.9.8: undefined reference to `matmul_id_subgroup_q6_k_f32_f16acc_len'

First Bad Commit

No response

Compile command

$ cmake -B build -DGGML_VULKAN=1
$ cmake --build build --config Release

Relevant log output

See main description.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions