diff --git a/ggml-opencl.cpp b/ggml-opencl.cpp index cfa766eb1..732e24c91 100644 --- a/ggml-opencl.cpp +++ b/ggml-opencl.cpp @@ -934,6 +934,7 @@ void ggml_cl_init(void) { if (initialized) { return; } + initialized = true; cl_int err;