What counts as a flop?
问题 Say I have a C program that in pseudoish is: For i=0 to 10 x++ a=2+x*5 next Is the number of FLOPs for this (1 [x++] + 1 [x*5] + 1 [2+(x+5))] * 10[loop], for 30 FLOPS? I am having trouble understanding what a flop is. Note the [...] are indicating where I am getting my counts for "operations" from. 回答1: For the purposes of FLOPS measurements, usually only additions and multiplications are included. Things like divisions, reciprocals, square roots, and transcendental functions are too