mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-10-28 08:31:25 +00:00
ggml-cpu: document use of "free" memory [no ci] (#15834)
This commit is contained in:
@@ -348,8 +348,10 @@ static void ggml_backend_cpu_device_get_memory(ggml_backend_dev_t dev, size_t *
|
|||||||
long pages = sysconf(_SC_PHYS_PAGES);
|
long pages = sysconf(_SC_PHYS_PAGES);
|
||||||
long page_size = sysconf(_SC_PAGE_SIZE);
|
long page_size = sysconf(_SC_PAGE_SIZE);
|
||||||
*total = pages * page_size;
|
*total = pages * page_size;
|
||||||
|
|
||||||
|
// "free" system memory is ill-defined, for practical purposes assume that all of it is free:
|
||||||
*free = *total;
|
*free = *total;
|
||||||
#endif
|
#endif // _WIN32
|
||||||
|
|
||||||
GGML_UNUSED(dev);
|
GGML_UNUSED(dev);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user