mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 22:08:46 +01:00
Make mmap_file static
This commit is contained in:
parent
64bde3ffd4
commit
d68c5dc435
@ -296,7 +296,7 @@ struct llama_context_params llama_context_default_params() {
|
|||||||
// model loading
|
// model loading
|
||||||
//
|
//
|
||||||
|
|
||||||
void * mmap_file(const char* fname) {
|
static void * mmap_file(const char* fname) {
|
||||||
#if defined(MAP_FAILED)
|
#if defined(MAP_FAILED)
|
||||||
// POSIX mmap
|
// POSIX mmap
|
||||||
int fd = open(fname, O_RDONLY);
|
int fd = open(fname, O_RDONLY);
|
||||||
|
Loading…
Reference in New Issue
Block a user