Skip to content

Compile bug: libggml-vulkan.so reproducible builds issue #11306

Closed

Description

@bmwiedemann

Git commit

667d728

Operating systems

Linux

GGML backends

Vulkan

Problem description & steps to reproduce

I'm compiling the llamacpp openSUSE package and found that the libggml-vulkan.so differs in every build.

My analysis points to
https://github.com/ggerganov/llama.cpp/blob/bd38dde/ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp#L502
as the place where some sorting is missing to provide deterministic output.

First Bad Commit

No response

Compile command

we build with cmake - see https://github.com/bmwiedemann/openSUSE/blob/0da890b/packages/l/llamacpp/llamacpp.spec#L123 for details.

Relevant log output

Generated source-code varied (randomly) thusly:

/home/abuild/rpmbuild/BUILD.unsorted/llamacpp-4501/build/ggml/src/ggml-vulkan/ggml-vulkan-shaders.cpp
@@ -1,8 +1,892 @@
 #include "ggml-vulkan-shaders.hpp"
 
-unsigned char matmul_f16_f32_aligned_fp32_data[10276] = {
+unsigned char matmul_q4_1_f16_fp32_data[10564] = {
...

Activity

  1. jeffbolznv commented on Jan 20, 2025

    @jeffbolznv
    Contributor

    Hi, please try #11315

  2. added a commit that references this issue on Jan 23, 2025
    1971adf
  3. added a commit that references this issue on Jan 26, 2025
    7f26ad6
  4. added a commit that references this issue on Feb 26, 2025
    779d3ef
  5. added a commit that references this issue on Apr 26, 2026
    c62c7e4
  6. added a commit that references this issue on Apr 28, 2026
    a3e7803
  7. added a commit that references this issue on May 6, 2026
    69f326f
  8. added 2 commits that reference this issue on Jun 2, 2026
    ce9f1b6
    999f69d
  9. added a commit that references this issue on Jul 5, 2026
    74c56fd
  10. added a commit that references this issue on Aug 18, 2026
    beab77c
  11. added a commit that references this issue on Oct 5, 2026
    44ef3c3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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