From: Georgi Gerganov Date: Wed, 29 Mar 2023 19:15:34 +0000 (+0300) Subject: ggml : init time on first ggml_init() call X-Git-Tag: gguf-v0.4.0~1055 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=b51c717d5cf9181c33afcb84554e47f6d539c891;p=pkg%2Fggml%2Fsources%2Fllama.cpp ggml : init time on first ggml_init() call --- diff --git a/ggml.c b/ggml.c index ccdba30e..02675ee6 100644 --- a/ggml.c +++ b/ggml.c @@ -2748,6 +2748,9 @@ struct ggml_context * ggml_init(struct ggml_init_params params) { static bool is_first_call = true; if (is_first_call) { + // initialize time system (required on Windows) + ggml_time_init(); + // initialize GELU, SILU and EXP F32 tables { const uint64_t t_start = ggml_time_us(); UNUSED(t_start);