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