From 42aa835c58bc9352722d908ae3ae4591ec6b2c97 Mon Sep 17 00:00:00 2001 From: slaren Date: Thu, 11 Jan 2024 12:00:18 +0100 Subject: [PATCH] opencl : fix double initialization --- ggml-opencl.cpp | 1 + 1 file changed, 1 insertion(+) 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;