////////////////////////////////////////////////////////////////////////////////
struct ggml_context * ggml_init(struct ggml_init_params params) {
- static bool is_first_call = false;
+ static bool is_first_call = true;
ggml_critical_section_start();
- if (!is_first_call) {
+ if (is_first_call) {
// initialize time system (required on Windows)
ggml_time_init();
} u = {i};
ggml_table_f32_f16[i] = GGML_COMPUTE_FP16_TO_FP32(u.fp16);
}
- is_first_call = true;
+
+ is_first_call = false;
}
ggml_critical_section_end();