]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ref #1 : add -pthread to compilation flags
authorGeorgi Gerganov <redacted>
Mon, 26 Sep 2022 08:58:44 +0000 (11:58 +0300)
committerGeorgi Gerganov <redacted>
Mon, 26 Sep 2022 08:58:44 +0000 (11:58 +0300)
Makefile

index e725dc4d0690ecc8cffb2e6f09b5c3e3655add96..773bde0e93a4f3e733d99a651ff7ac0f79293cac 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,10 @@ main: ggml.o main.o
        ./main -h
 
 ggml.o: ggml.c ggml.h
-       gcc -O3 -mavx -mavx2 -mfma -mf16c -c ggml.c
+       gcc -pthread -O3 -mavx -mavx2 -mfma -mf16c -c ggml.c
 
 main.o: main.cpp ggml.h
-       g++ -O3 -std=c++11 -c main.cpp
+       g++ -pthread -O3 -std=c++11 -c main.cpp
 
 # clean up the directory
 clean: