#include <errno.h>
#endif
+// Need this to compile with Visual Studio 2017
+#define restrict __restrict
+
typedef volatile LONG atomic_int;
typedef atomic_int atomic_bool;
static bool is_first_call = true;
if (is_first_call) {
+ // initialize time system (required on Windows)
+ ggml_time_init();
+
// initialize GELU, EXP and F32 tables
{
const uint64_t t_start = ggml_time_us(); UNUSED(t_start);