This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new c85acd96e7 gnu: whisper-cpp: Build with vulkan support.
c85acd96e7 is described below

commit c85acd96e7d808e0022ec516bbc1909c34aee931
Author: Roman Scherer <[email protected]>
AuthorDate: Sun Aug 3 14:56:40 2025 +0200

    gnu: whisper-cpp: Build with vulkan support.
    
    * gnu/packages/machine-learning.scm (whisper-cpp)<#:configure-flags>: Add
    "-DGGML_VULKAN=ON".
    [arguments]<#:phases>[patch-paths]: New phase.
    [native-inputs]: Add shaderc.
    [inputs]: Add spirv-headers, spirv-tools, vulkan-headers, vulkan-loader.
    
    Change-Id: I8d5570b8a2b7e9b6d19bd5a0258ea672baf50d35
    Signed-off-by: Danny Milosavljevic <[email protected]>
---
 gnu/packages/machine-learning.scm | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index 5d135539d2..996dfc375d 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -812,9 +812,15 @@ independently to be able to run a LLaMA model.")
               "-DGGML_AVX2=OFF"
               "-DGGML_AVX512=OFF"
               "-DGGML_AVX512_VBMI=OFF"
-              "-DGGML_AVX512_VNNI=OFF")
+              "-DGGML_AVX512_VNNI=OFF"
+              "-DGGML_VULKAN=ON")
       #:phases
       #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-paths
+            (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* 
"ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp"
+                (("\"/bin/sh\"")
+                 (string-append "\"" (search-input-file inputs "/bin/sh") 
"\"")))))
           #$@(if (not (target-64bit?))
                  '((add-after 'unpack 'skip-failing-tests
                      (lambda _
@@ -835,9 +841,10 @@ independently to be able to run a LLaMA model.")
                 (("\\$\\{VAD_TARGET\\} PROPERTIES LABELS \"base;en\"")
                  "${VAD_TEST} PROPERTIES DISABLED true")))))))
     (native-inputs
-     (list pkg-config))
+     (list pkg-config shaderc))
     (inputs
-     (list openblas sdl2 git))
+     (list openblas sdl2 git spirv-headers spirv-tools
+           vulkan-headers vulkan-loader))
     (synopsis "OpenAI's Whisper model in C/C++")
     (description
      "This package is a high-performance inference of OpenAI's

Reply via email to