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