Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_physical_cpu_count api family #4302

Merged
merged 12 commits into from
Oct 31, 2022
Prev Previous commit
Next Next commit
fix build
  • Loading branch information
nihui committed Oct 30, 2022
commit 73a8140de390b19169eaa2083d8e740279007c1c
4 changes: 2 additions & 2 deletions src/cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1627,10 +1627,10 @@ static int setup_thread_affinity_masks()
// get max freq mhz for all cores
int max_freq_mhz_min = INT_MAX;
int max_freq_mhz_max = 0;
std::vector<int> all_max_freq_mhz = get_max_freq_mhz();
std::vector<int> cpu_max_freq_mhz = get_max_freq_mhz();
for (int i = 0; i < g_cpucount; i++)
{
int max_freq_mhz = all_max_freq_mhz[i];
int max_freq_mhz = cpu_max_freq_mhz[i];

// NCNN_LOGE("%d max freq = %d khz", i, max_freq_mhz);

Expand Down