Use omp_get_num_procs to set the number of OpenMP threads rather than our core count detection.

This commit is contained in:
Jordan Woyak 2013-02-16 23:42:00 -06:00
parent 123035a192
commit 537d5ea942
1 changed files with 1 additions and 1 deletions

View File

@ -692,7 +692,7 @@ inline void SetOpenMPThreadCount(int width, int height)
if (g_ActiveConfig.bOMPDecoder && width > 127 && height > 127) if (g_ActiveConfig.bOMPDecoder && width > 127 && height > 127)
{ {
// don't span to many threads they will kill the rest of the emu :) // don't span to many threads they will kill the rest of the emu :)
omp_set_num_threads((cpu_info.num_cores + 2) / 3); omp_set_num_threads((omp_get_num_procs() + 2) / 3);
} }
else else
{ {