Commit 4ff6ec97 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

use better measure for a large pair.


Former-commit-id: 26f38f7ae3772603fdefea351c61e64944c2d778
parent 4b5f635c
......@@ -474,7 +474,7 @@ void scheduler_splittasks ( struct scheduler *s ) {
/* Otherwise, break it up if it is too large? */
else if ( scheduler_doforcesplit && ci->split && cj->split &&
( ci->count > space_maxsize && cj->count > space_maxsize ) ) {
( ci->count > space_maxsize / cj->count ) ) {
message( "force splitting pair with %i and %i parts." , ci->count , cj->count );
......
......@@ -25,7 +25,7 @@
#define space_cellallocchunk 1000
#define space_splitratio 0.875f
#define space_splitsize_default 400
#define space_maxsize_default 2000
#define space_maxsize_default 25000000
#define space_subsize_default 5000
#define space_stretch 1.10f
#define space_maxreldx 0.25f
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment