]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ggml : remove _GNU_SOURCE
authorGeorgi Gerganov <redacted>
Sun, 25 Jun 2023 13:38:17 +0000 (16:38 +0300)
committerGeorgi Gerganov <redacted>
Sun, 25 Jun 2023 13:38:17 +0000 (16:38 +0300)
ref : https://github.com/ggerganov/whisper.cpp/pull/1027

scripts/sync-whisper.sh
src/ggml.c

index 6359f4bb8b28097273d884956f66da418f0df1d7..1c74859b65e6ae9e5483048fe02f5a0c919f9876 100755 (executable)
@@ -5,6 +5,9 @@ cp -rpv ../whisper.cpp/ggml-cuda.h                    src/ggml-cuda.h
 cp -rpv ../whisper.cpp/ggml-cuda.cu                   src/ggml-cuda.cu
 cp -rpv ../whisper.cpp/ggml-opencl.h                  src/ggml-opencl.h
 cp -rpv ../whisper.cpp/ggml-opencl.cpp                src/ggml-opencl.cpp
+cp -rpv ../whisper.cpp/ggml-metal.h                   src/ggml-metal.h
+cp -rpv ../whisper.cpp/ggml-metal.m                   src/ggml-metal.m
+cp -rpv ../whisper.cpp/ggml-metal.metal               src/ggml-metal.metal
 cp -rpv ../whisper.cpp/ggml.h                         include/ggml/ggml.h
 cp -rpv ../whisper.cpp/examples/common.h              examples/common.h
 cp -rpv ../whisper.cpp/examples/common.cpp            examples/common.cpp
index af2294750c1843ba5dcb156cc2abb38beca3823c..2a5c469ed8ea56fb5bc64af259fc0ed2b89e730e 100644 (file)
@@ -1,4 +1,3 @@
-#define _GNU_SOURCE // Defines CLOCK_MONOTONIC on Linux
 #define _CRT_SECURE_NO_DEPRECATE // Disables ridiculous "unsafe" warnigns on Windows
 
 #include "ggml.h"