]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : fix barrier
authorGeorgi Gerganov <redacted>
Sat, 29 Oct 2022 09:38:29 +0000 (12:38 +0300)
committerGeorgi Gerganov <redacted>
Sat, 29 Oct 2022 16:37:19 +0000 (19:37 +0300)
ggml.c

diff --git a/ggml.c b/ggml.c
index c0354f45cab5d3f70ae29612a6b29ac1ced88e74..bd11cc2038366f42ffd11080b471e5efc7789ea0 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -1136,7 +1136,7 @@ struct ggml_state {
 
 // global state
 struct ggml_state g_state;
-atomic_bool g_state_barrier = 0;
+atomic_int g_state_barrier = 0;
 
 ////////////////////////////////////////////////////////////////////////////////