]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change minimum parallel grainsize of vector to power of 2 2027/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 29 Dec 2015 20:16:12 +0000 (21:16 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 29 Dec 2015 20:16:12 +0000 (21:16 +0100)
source/base/parallel.cc

index 1d794fd30ee9bcca1ac0c129e838a7019634f13b..284d8deca5d602c55ae538f2a7221eba37425da1 100644 (file)
@@ -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;
   }
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.