mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-10 04:34:34 +00:00
add os detect
This commit is contained in:
parent
d9beb030ee
commit
fa31ca8e35
3 changed files with 46 additions and 0 deletions
|
@ -3579,6 +3579,7 @@ void llama_profile_device(
|
|||
int n_threads,
|
||||
bool flash_attn) {
|
||||
dev_info->device_name = device_name();
|
||||
dev_info->device_os = device_os();
|
||||
dev_info->cpu_props.cores = device_cpu_cores();
|
||||
|
||||
dev_info->memory.total_physical = round(device_physical_memory(false) / (double)(1 << 30) * 100) / 100;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue