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
325 stars 101 forks source link

timeloop reports Energy including static power and dynamic power #91

Closed leehc257 closed 3 years ago

leehc257 commented 3 years ago

i have a question timeloop makes Energy reports by user-defined architecture this report shows Energy per MACC every component and network is this power including dynamic power and static power? i think it just has static power because of all network power zero is this true?

angshuman-parashar commented 3 years ago

It is all dynamic energy. If a component is showing zero energy that could be either because (a) there are 0 accesses to that component (e.g., a bypassed buffer) or (b) the technology model (you should be using Accelergy) is reporting 0 energy per access for that component. If it's (b), check the ERT.yaml to confirm. It could be a component that the specific Accelergy plugin you are using does not support yet. If so, you can file an issue with the Accelergy project. In specific cases, you can override the Accelergy numbers in Timeloop. For example, for a Legacy/XYNoC network you can set a router_energy and wire_energy attribute in the arch specs to override what the technology model is reporting.

leehc257 commented 3 years ago

When I use the timeloop-mapper command, accelergy calculates ERT and timeloop uses ERT(i think so) As you say it seems to be due to the router_energy and wire energy properties Are there any examples for me to refer to?

router & wire energy are zeros image

result : (network energy is zero) image