Skip to content

Commit

Permalink
ggml : init time on first ggml_init() call
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Mar 29, 2023
1 parent 0ba76c1 commit b51c717
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b51c717

Please sign in to comment.