File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,8 @@ struct llama_mmap {
243
243
#else
244
244
static constexpr bool SUPPORTED = false ;
245
245
246
- llama_mmap (struct llama_file *) {
246
+ llama_mmap (struct llama_file *, bool prefetch = true ) {
247
+ (void )prefetch;
247
248
throw std::string (" mmap not supported" );
248
249
}
249
250
#endif
@@ -382,8 +383,13 @@ struct llama_mlock {
382
383
#else
383
384
static constexpr bool SUPPORTED = false ;
384
385
385
- void raw_lock (const void * addr, size_t size) {
386
+ size_t lock_granularity () {
387
+ return (size_t ) 65536 ;
388
+ }
389
+
390
+ bool raw_lock (const void * addr, size_t size) {
386
391
fprintf (stderr, " warning: mlock not supported on this system\n " );
392
+ return false ;
387
393
}
388
394
389
395
void raw_unlock (const void * addr, size_t size) {}
You can’t perform that action at this time.
0 commit comments