mit-emze / cimloop

MIT License
40 stars 9 forks source link

Question regarding number of macros in ws_dummy_buffer_many_macro #4

Closed Farbin closed 1 month ago

Farbin commented 2 months ago

Hi! Could you kindly answer these two questions?

  1. For ws_dummy_buffer_many_macro, there is a fixed number of 4096 macros. What happens to the unused macros? Won’t they draw leakage energy? 



  2. How can we set the number of macros based on the weight size of the full model in CiMLoop?

Thanks!

tanner-andrulis commented 2 months ago
Farbin commented 2 months ago

Thank you very much for your reply Tanner. I think I can use the last option you said. Just to verify, is this the right way to force the minimal number of macro usage?

image

And is the right way to find out how many macros were utilized is to look at the Utilized instances (max) number in the row drivers OR column drivers? For example, if my macro size is rxc, then ceil(row drivers utilized instances (max) / r) would be the. number of used macros?

tanner-andrulis commented 2 months ago

That is the correct way to set the minimal number of instances.

As for your second question, I'm not sure where these parameters would be coming from. What is rxc ? You can also look at the mapping to derive the number of utilized instances pretty easily.

Farbin commented 2 months ago

Thanks so much! About the second question, this is the mapping I get for the second convolution layer in vgg16 with 32x32 macro size. Does it mean: 3 x 3 x 2 x 2 = 36 macros are used?

image
tanner-andrulis commented 2 months ago

Yes, yes it does!

Farbin commented 1 month ago

Thank you very much! I really appreciate your help!