Changed default OpenMP threads when mixing with TBB to 1/4 the number of processors instead of 1/2.

release/4.3a0
Richard Roberts 2013-11-18 19:23:31 +00:00
parent 45c022a791
commit 55433c13cc
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ namespace gtsam {
TbbOpenMPMixedScope() : TbbOpenMPMixedScope() :
previousOpenMPThreads(omp_get_num_threads()) previousOpenMPThreads(omp_get_num_threads())
{ {
omp_set_num_threads(omp_get_num_procs() / 2); omp_set_num_threads(omp_get_num_procs() / 4);
} }
~TbbOpenMPMixedScope() ~TbbOpenMPMixedScope()