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
340 stars 104 forks source link

compute energy of mac operation problem #119

Closed deepanshu761999 closed 2 years ago

deepanshu761999 commented 2 years ago

"compute energy" of mac operation in timeloop-mapper.stats.txt file is not the same as in ERT_summary produced by Accelergy. It is always 1pJ in the timeloop-mapper.stats.txt.

nellie-wu commented 2 years ago

Have you compiled timeloop with the -accelergy flag? If correctly configured, you should see accelergy being executed in the terminal output when running timeloop.

If accelergy was executed, would you please provide your input files for us to try to reproduce the behavior?

deepanshu761999 commented 2 years ago

Yes, I compiled timeloop with --accelergy flag. And I can see accelergy being executed.

I ran a couple of examples like Eyeriss_like and pim. Found out that energy per mac operation was different when compared to the example outputs provided with the examples itself. Then I tried changing the energy per mac operation and in the timeloop-model.ERT_summary.txt energy per mac is changing but in the timeloop-model.stats.txt compute energy is just 1pJ. However, I also tried changing energy per op of ADC and found that changes are consistent in both files.

PS-I'm using Timeloopv2.0

angshuman-parashar commented 2 years ago

In order to help us reproduce the issue, could you please attach the exact yamls you are using for your run? You can concatenate everything into a single YAML.

deepanshu761999 commented 2 years ago

processing-in-memory-design.zip

I have attached the zip file(it is an unchanged processing-in-memory example from accelergy project page). It also includes logs and stats.

Below is the ERT summary:

ert_summary

while timeloop stats showing:

timeloop_stats

nellie-wu commented 2 years ago

Thanks for providing the input files. We have updated the codebase to fix the issue, please pull and try again.

Omar-Abdul-Aziz commented 1 year ago

Hello,

I have the same problem with the SRAM memorry. https://github.com/NVlabs/timeloop/issues/202#issue-1633567799 Could you support?