# \[VTA\] How can I calculate VTA GOPs?

**URL:** <https://discuss.tvm.apache.org/t/vta-how-can-i-calculate-vta-gops/8192>\
**Category:** Questions\
**Created:** [October 15, 2020, 7:29pm UTC](https://discuss.tvm.apache.org/t/vta-how-can-i-calculate-vta-gops/8192 "2020-10-15T19:29:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hagoon](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/hagoon/32/2848_2.png) [@Hagoon](https://discuss.tvm.apache.org/u/Hagoon)\
**Post date:** [October 15, 2020, 7:29pm UTC](https://discuss.tvm.apache.org/t/vta-how-can-i-calculate-vta-gops/8192/1 "2020-10-15T19:29:27Z")

</div>

This is so basic question, but I can’t calculate VTA GOPs in batch 1, block in 4, block out 4, clock 142MHz which is Get Started with VTA tutorial.

With the model, VTA have 16Mac so in my calcuation

16 Mac / GEMM \* 142 MHz = 2.272GOPs

But I know this is not the correct answer. I want to know what I miscalculated

Thank you

---

<div class="post-metadata">

**Author:** ![liangfu](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/liangfu/32/250_2.png) [@liangfu](https://discuss.tvm.apache.org/u/liangfu)\
**Post date:** [October 16, 2020, 9:18am UTC](https://discuss.tvm.apache.org/t/vta-how-can-i-calculate-vta-gops/8192/2 "2020-10-16T09:18:05Z")

</div>

Did you mean LOG\_BLOCK=4 or just BLOCK=4?

If LOG\_BLOCK=4, that means BLOCK\_IN and BLOCK\_OUT would be 16. Therefore, in a GEMM instruction, it would perform 16x16 fused-multiply-add (MAC), that is 256 MACs in a single GEMM instruction. In my calculation,

256 MACs \* 0.142 GHz = 36.352 GOps

Note that, in current Chisel implement, a single GEMM would take 4 cycles/stages to complete. We might see a performance regression on that.
