Skip to content

Commit 6f4d28e

Browse files
committed
swapped out removed functions for new versions
1 parent 5ee868f commit 6f4d28e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llama-cpp-2/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub fn max_devices() -> usize {
133133
/// ```
134134
#[must_use]
135135
pub fn mmap_supported() -> bool {
136-
unsafe { llama_cpp_sys_2::llama_mmap_supported() }
136+
unsafe { llama_cpp_sys_2::llama_supports_mmap() }
137137
}
138138

139139
/// is memory locking supported according to llama.cpp
@@ -146,7 +146,7 @@ pub fn mmap_supported() -> bool {
146146
/// ```
147147
#[must_use]
148148
pub fn mlock_supported() -> bool {
149-
unsafe { llama_cpp_sys_2::llama_mlock_supported() }
149+
unsafe { llama_cpp_sys_2::llama_supports_mlock() }
150150
}
151151

152152
/// An error that can occur when converting a token to a string.

0 commit comments

Comments
 (0)