mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-05 21:39:02 +00:00
topo rebuild: add a delay to avoid packet interleaving
This commit is contained in:
parent
729870fcd7
commit
3f27a25340
1 changed files with 3 additions and 3 deletions
|
@ -3634,8 +3634,8 @@ void llama_profile_device(
|
||||||
dev_info->memory.total_physical = round(device_physical_memory(false) / (double)(1 << 30) * 100) / 100;
|
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.available_physical = round(device_physical_memory(true) / (double)(1 << 30) * 100) / 100;
|
||||||
|
|
||||||
GGML_ASSERT(dev_info->memory.total_physical > 0, "Failed to parse total physical memory\n");
|
GGML_ASSERT(dev_info->memory.total_physical > 0 && "Failed to parse total physical memory\n");
|
||||||
GGML_ASSERT(dev_info->memory.available_physical > 0, "Failed to parse available physical memory\n");
|
GGML_ASSERT(dev_info->memory.available_physical > 0 && "Failed to parse available physical memory\n");
|
||||||
|
|
||||||
dev_info->memory.used_can_swap = round(device_swappable_memory() / (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.total_swap = round(device_swap_memory(false) / (double)(1 << 30) * 100) / 100;
|
||||||
|
|
Loading…
Add table
Reference in a new issue