openmp working weird (job multiplied by number of physical cores) – CentOS
this is my test code void test_code() { omp_set_num_threads(4); #pragma omp parallel { int tid = omp_get_thread_num(); #pragma omp for for (int i = 0; i < 4; i++) printf("Hello World %d %dn", tid, i); } } ... void CResizer::ThreadMain()…