Skip to content

Commit

Permalink
Cope and warn with possibly uncalibrated bus perfmodels
Browse files Browse the repository at this point in the history
  • Loading branch information
sthibaul committed Feb 4, 2025
1 parent 2e8fdaf commit 6768e05
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/core/perfmodel/perfmodel_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -3016,6 +3016,16 @@ double starpu_transfer_predict(unsigned src_node, unsigned dst_node, size_t size
}
#endif

if (isnan(latency) || isnan(bandwidth))
{
static int warned = 0;
if (!warned)
{
_STARPU_DISP("Warning: no bus performance model was calibrated between nodes %d and %d, ignoring transfer time\n", src_node, dst_node);
warned = 1;
}
return 0;
}

return latency + (size/bandwidth)*2*ngpus;
}
Expand Down

0 comments on commit 6768e05

Please sign in to comment.