From 63e69ea786d186508aa2414961de5c2f6ee7b0e3 Mon Sep 17 00:00:00 2001 From: Marcus Dunn Date: Thu, 1 Feb 2024 00:23:22 +0000 Subject: [PATCH 1/2] updated llama.cpp --- llama-cpp-sys-2/llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama-cpp-sys-2/llama.cpp b/llama-cpp-sys-2/llama.cpp index e8dc55d0..1cfb5372 160000 --- a/llama-cpp-sys-2/llama.cpp +++ b/llama-cpp-sys-2/llama.cpp @@ -1 +1 @@ -Subproject commit e8dc55d0065d076d4c20f3c4bfca562701b4edfe +Subproject commit 1cfb5372cf5707c8ec6dde7c874f4a44a6c4c915 From 0d57ff95ba03351eac2af9b7299402c06f878c4d Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 1 Feb 2024 09:01:23 -0800 Subject: [PATCH 2/2] updated `max_devices` `usize` --- llama-cpp-2/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama-cpp-2/src/lib.rs b/llama-cpp-2/src/lib.rs index 454fe811..15c504a4 100644 --- a/llama-cpp-2/src/lib.rs +++ b/llama-cpp-2/src/lib.rs @@ -115,7 +115,7 @@ pub fn llama_time_us() -> i64 { /// assert!(max_devices >= 0); /// ``` #[must_use] -pub fn max_devices() -> c_int { +pub fn max_devices() -> usize { unsafe { llama_cpp_sys_2::llama_max_devices() } }