diff options
| author | Georgi Gerganov <ggerganov@gmail.com> | 2023-03-29 22:15:34 +0300 | 
|---|---|---|
| committer | Georgi Gerganov <ggerganov@gmail.com> | 2023-03-29 22:15:34 +0300 | 
| commit | b51c717d5cf9181c33afcb84554e47f6d539c891 (patch) | |
| tree | 6ebdd4ec4c4514026243d8488f7fac27d96a5a9b | |
| parent | 0ba76c1e73ae21038b80bfb5a746157376c88173 (diff) | |
ggml : init time on first ggml_init() call
| -rw-r--r-- | ggml.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| @@ -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); | 
