From d3f155733f98770c38e72fbab0d2a6caa5cd0186 Mon Sep 17 00:00:00 2001 From: ct-clmsn Date: Sat, 23 Dec 2023 20:49:12 -0500 Subject: [PATCH] updated thread support --- ggml-oshmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ggml-oshmem.c b/ggml-oshmem.c index a3d363937..1a1b85dea 100644 --- a/ggml-oshmem.c +++ b/ggml-oshmem.c @@ -23,7 +23,8 @@ struct ggml_openshmem_context { }; void ggml_openshmem_backend_init(void) { - shmem_init(); + int provided = 0; + shmem_init_thread(SHMEM_THREAD_MULTIPLE, &provided); } void ggml_openshmem_backend_free(void) {