From: Martin Kronbichler Date: Tue, 29 Dec 2015 20:16:12 +0000 (+0100) Subject: Change minimum parallel grainsize of vector to power of 2 X-Git-Tag: v8.4.0-rc2~122^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2027%2Fhead;p=dealii.git Change minimum parallel grainsize of vector to power of 2 --- 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; } }