]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
[Vulkan] Fix compilation of `vulkan-shaders-gen` on w64devkit after `e31a4f6` (#8880)
authorMaggotHATE <redacted>
Tue, 6 Aug 2024 11:32:03 +0000 (16:32 +0500)
committerGitHub <redacted>
Tue, 6 Aug 2024 11:32:03 +0000 (13:32 +0200)
* Fix compilation issue in `vulkan-shaders-gen`

https://github.com/ggerganov/llama.cpp/commit/e31a4f679779220312c165b0f5994c680a610e38 broke compilation on w64devkit. Including `algorithm` seems to fix that.

* Guard it under `#ifdef _WIN32`

ggml/src/vulkan-shaders/vulkan-shaders-gen.cpp

index f6f4f116ad2aeb633f933207fab85c5056951641..a792e203b273a018fa779555896b4dcf064731c4 100644 (file)
@@ -22,6 +22,7 @@
 #ifdef _WIN32
     #include <windows.h>
     #include <direct.h> // For _mkdir on Windows
+    #include <algorithm> // For std::replace on w64devkit
 #else
     #include <unistd.h>
     #include <sys/wait.h>