Skip to content

Commit

Permalink
[Vulkan] Fix compilation of vulkan-shaders-gen on w64devkit after `…
Browse files Browse the repository at this point in the history
…e31a4f6` (ggerganov#8880)

* Fix compilation issue in `vulkan-shaders-gen`

ggerganov@e31a4f6 broke compilation on w64devkit. Including `algorithm` seems to fix that.

* Guard it under `#ifdef _WIN32`
  • Loading branch information
MaggotHATE authored Aug 6, 2024
1 parent 0bf16de commit efda90c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ggml/src/vulkan-shaders/vulkan-shaders-gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit efda90c

Please sign in to comment.