From 0e093cee70bc0c0369a2d317a6b0d72b30929acc Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 29 Dec 2015 21:16:12 +0100 Subject: [PATCH] Change minimum parallel grainsize of vector to power of 2 --- source/base/parallel.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/base/parallel.cc b/source/base/parallel.cc index 1d794fd30e..284d8deca5 100644 --- a/source/base/parallel.cc +++ b/source/base/parallel.cc @@ -34,13 +34,13 @@ namespace internal // large to split the work load into // enough chunks and the problem becomes // badly balanced) - unsigned int minimum_parallel_grain_size = 1000; + unsigned int minimum_parallel_grain_size = 1024; } namespace SparseMatrix { - // set this value to 1/5 of the value of + // set this value to 1/4 of the value of // the minimum grain size of // vectors. this rests on the fact that // we have to do a lot more work per row @@ -50,7 +50,7 @@ namespace internal // worth it any more for anything but // very small matrices that we don't care // that much about anyway. - unsigned int minimum_parallel_grain_size = 200; + unsigned int minimum_parallel_grain_size = 256; } } -- 2.39.5