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

Add costs to MPI tasks

These are meant to be larger than other tasks, keep recv at a slighly lower cost as that is a speculative call (to MPI_Test), whereas sends are expecting a result

(cherry picked from commit bfcebf24)
parent d408db13
......@@ -1038,6 +1038,12 @@ void scheduler_reweight(struct scheduler *s, int verbose) {
case task_type_timestep:
cost = wscale * t->ci->count;
case task_type_send:
cost = 10 * wscale * t->ci->count * t->ci->count;
case task_type_recv:
cost = 5 * wscale * t->ci->count * t->ci->count;
cost = 0;
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