NVlabs / timeloop

Timeloop performs modeling, mapping and code-generation for tensor algebra workloads on various accelerator architectures.
https://timeloop.csail.mit.edu/
BSD 3-Clause "New" or "Revised" License
336 stars 102 forks source link

About the Calculation of Number of Hops #174

Open Arcana-2236 opened 1 year ago

Arcana-2236 commented 1 year ago

In src/model/network-legacy.cpp, the double LegacyNetwork::NumHops at line 625 provides a way to calculate the number of hops in PROBABILISTIC_MULTICAST model. But I am confused about what the multicast model is and how to get this formula, can you elaborate more on this analytical formula? Thank you.

angshuman-parashar commented 1 year ago

I believe it originated from this calculation. I'm not sure if the code reflects exactly this logic, but it should be roughly similar. Multicast