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() } } 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