I try to use pytorch/cpuinfo to get the soc name on the phone, and I download the cpuinfo.h in my project. however, When I try to use it in my macos13.4, it failed and error is ld: symbol(s) not found for architecture x86_64.
My code is
#include "external/cpuinfo/include/cpuinfo.h"
#include <iostream>
int main() {
if (!cpuinfo_initialize()) {
std::cout << "Error during initialization" << std::endl;
return 1;
}
std::cout << "CPU Name: " << cpuinfo_get_package(0)->name << std::endl;
return 0;
}
is there anything wrong with it?