From 55433c13cc5b23d85fbcc9afbd17be9e404a5884 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Mon, 18 Nov 2013 19:23:31 +0000 Subject: [PATCH] Changed default OpenMP threads when mixing with TBB to 1/4 the number of processors instead of 1/2. --- gtsam/base/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/base/types.h b/gtsam/base/types.h index 01117e431..076d50eb8 100644 --- a/gtsam/base/types.h +++ b/gtsam/base/types.h @@ -245,7 +245,7 @@ namespace gtsam { TbbOpenMPMixedScope() : previousOpenMPThreads(omp_get_num_threads()) { - omp_set_num_threads(omp_get_num_procs() / 2); + omp_set_num_threads(omp_get_num_procs() / 4); } ~TbbOpenMPMixedScope()