mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-10 11:14:33 +00:00
fix swappable mem in termux
This commit is contained in:
parent
fa05a482f8
commit
b642d70188
3 changed files with 24 additions and 13 deletions
|
@ -3583,6 +3583,7 @@ void llama_profile_device(
|
|||
|
||||
dev_info->memory.total_physical = round(device_physical_memory(false) / (double)(1 << 30) * 100) / 100;
|
||||
dev_info->memory.available_physical = round(device_physical_memory(true) / (double)(1 << 30) * 100) / 100;
|
||||
dev_info->memory.used_can_swap = round(device_swappable_memory() / (double)(1 << 30) * 100) / 100;
|
||||
dev_info->memory.total_swap = round(device_swap_memory(false) / (double)(1 << 30) * 100) / 100;
|
||||
dev_info->memory.available_swap = round(device_swap_memory(true) / (double)(1 << 30) * 100) / 100;
|
||||
dev_info->memory.cpu_read_ram_bw = device_memory_bw(n_threads);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue