MCPcopy Create free account
hub / github.com/OAID/Tengine / get_cpu_info

Function get_cpu_info

driver/cpu/cpu_driver.cpp:632–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632const struct cpu_info* get_cpu_info(const char* dev_name)
633{
634 CPUDevice* cpu_dev = dynamic_cast<CPUDevice*>(DriverManager::GetDevice(dev_name));
635
636 if(cpu_dev == nullptr)
637 return NULL;
638
639 const CPUInfo* cpu_info = cpu_dev->GetCPUInfo();
640
641 return &cpu_info->dev;
642}
643
644static int set_default_cpu(const int* cpu_list, int cpu_number)
645{

Callers

nothing calls this directly

Calls 1

GetCPUInfoMethod · 0.80

Tested by

no test coverage detected