From dba866ffcf1f00650c433a64342b123a8e8f1222 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 13 Jul 2023 22:39:26 -0700 Subject: [PATCH] Update API method name --- LLama/Native/NativeApi.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LLama/Native/NativeApi.cs b/LLama/Native/NativeApi.cs index ccafdf1b..947fd75a 100644 --- a/LLama/Native/NativeApi.cs +++ b/LLama/Native/NativeApi.cs @@ -25,7 +25,7 @@ namespace LLama.Native "3. The backend is not compatible with your system cuda environment. Please check and fix it. If the environment is " + "expected not to be changed, then consider build llama.cpp from source or submit an issue to LLamaSharp."); } - NativeApi.llama_init_backend(); + NativeApi.llama_backend_init(false); } private const string libraryName = "libllama"; @@ -64,7 +64,7 @@ namespace LLama.Native /// Call once at the start of the program /// [DllImport(libraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern void llama_init_backend(); + public static extern void llama_backend_init(bool numa); /// /// Frees all allocated memory