KULeuven-MICAS/stream

Should this not be min?

Closed this issue · 3 comments

transfer_duration = max([ceil(tensor.size / link.bandwidth) for link in links])

No. The links variable represents the links needed to transfer from Core A to core B. If one of these links has a lower bandwidth, we assume the worst-case transfer time across all of them.

Hope that clarifies your concern.

Bandwidth is inversely proportional to duration. You should either take the max of link.bandwidth or the min of duration. Here you are taking max of duration.

Oh nvm, I re-read your comment, now it makes sense. You are considering the worst-case transfer time.