add os detect

This commit is contained in:
Lizonghang 2024-12-30 09:13:12 +04:00
parent d9beb030ee
commit fa31ca8e35
3 changed files with 46 additions and 0 deletions

View file

@ -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;