Skip to content

Commit b51c717

Browse files
committed
ggml : init time on first ggml_init() call
1 parent 0ba76c1 commit b51c717

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ggml.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,6 +2748,9 @@ struct ggml_context * ggml_init(struct ggml_init_params params) {
27482748
static bool is_first_call = true;
27492749

27502750
if (is_first_call) {
2751+
// initialize time system (required on Windows)
2752+
ggml_time_init();
2753+
27512754
// initialize GELU, SILU and EXP F32 tables
27522755
{
27532756
const uint64_t t_start = ggml_time_us(); UNUSED(t_start);

0 commit comments

Comments
 (0)