You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
打印结果:
LOGE("ncnn cpu num = %d",ncnn::get_cpu_count());
LOGE("ncnn cpu num omp = %d",ncnn::get_omp_num_threads());
ncnn cpu num = 8;
ncnn cpu num omp =1 ;
想问一下为什么 num omp 为1 。
The text was updated successfully, but these errors were encountered:
开启OMP
ncnn::set_omp_dynamic(1);
ncnn::Option opt;
opt.lightmode = true;
opt.num_threads = 4;
打印结果:
LOGE("ncnn cpu num = %d",ncnn::get_cpu_count());
LOGE("ncnn cpu num omp = %d",ncnn::get_omp_num_threads());
ncnn cpu num = 8;
ncnn cpu num omp =1 ;
想问一下为什么 num omp 为1 。
The text was updated successfully, but these errors were encountered: