Commit 92b0509c authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Make a better estimate of the total number of cells.

parent b8b5f0e9
......@@ -2971,11 +2971,11 @@ int engine_estimate_nr_tasks(struct engine *e) {
ncells++;
/* Count cell depth until we get below the parts per cell threshold. */
int depth = 3;
int depth = 0;
while (nparts > space_splitsize) {
depth++;
nparts /= 8;
ncells += (1 << depth);
ncells += (1 << (depth * 3));
}
}
}
......
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