mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-15 03:19:41 +00:00
revert klite newline bug, trying to add win7 support
This commit is contained in:
parent
844f92688a
commit
bf482d1786
4 changed files with 14 additions and 3 deletions
|
@ -219,6 +219,7 @@ struct llama_mmap {
|
|||
throw std::runtime_error(format("MapViewOfFile failed: %s", llama_format_win_err(error).c_str()));
|
||||
}
|
||||
|
||||
#ifndef USE_FAILSAFE
|
||||
#if _WIN32_WINNT >= _WIN32_WINNT_WIN8
|
||||
if (prefetch) {
|
||||
// Advise the kernel to preload the mapped memory
|
||||
|
@ -233,6 +234,9 @@ struct llama_mmap {
|
|||
#else
|
||||
#pragma message("warning: You are building for pre-Windows 8; prefetch not supported")
|
||||
#endif // _WIN32_WINNT >= _WIN32_WINNT_WIN8
|
||||
#else
|
||||
printf("\nPrefetchVirtualMemory skipped in failsafe mode.");
|
||||
#endif
|
||||
}
|
||||
|
||||
~llama_mmap() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue