for instance, counting maths ops here:
for (int i = 0; i < 100; ++i)
{
for (int j = 0; j < 50; ++j)
{
X[i*xcol+j] = Y[i] * Z[j];
}
}
Should we counting the ops like ++i
, i*xcol+j
etc in our total gflops(before you point out the obvious mistake here, lets forget the strict definition of flops for a moment) counting or we only need count Y[i]*Z[j]
? The reason why I ask this is that I read some papers where they only count the last one as gflops/maths ops here.