LLNL/Caliper

Bug in loop-report when using blank space

Rombur opened this issue · 0 comments

There seems to be a bug in loop-report if there is a blank space in the name of the loop. In that case, the Loop summary works fine but the Iteration summary does not print anything. The cxx-example uses mainloop and everything works fine:

./cxx-example -P loop-report 5000

Loop summary:
------------

Loop     Iterations Time (s) Iter/s (min) Iter/s (max) Iter/s (avg)
mainloop       5000 7.020397   371.149326  2408.294927   690.052330

Iteration summary (mainloop):
-----------------

Block Iterations Time (s) Iter/s
    0       1205 0.500354 2408.294927
 1205        555 0.500450 1109.001898
 1760        436 0.500720  870.746126
 2196        367 0.500213  733.687449
 2563        327 0.500546  653.286611
 2890        296 0.501063  590.744078
 3186        273 0.500636  545.306370
 3459        255 0.501695  508.276941
 3714        239 0.501501  476.569339
 3953        233 0.500510  465.525164
 4186        218 0.501248  434.914454
 4404        206 0.502460  409.982884
 4610        197 0.500139  393.890498
 4807        190 0.500779  379.408881
 4997          3 0.008083  371.149326 

If I just change mainloop to main loop and here is what I get:

./cxx-example -P loop-report 5000

Loop summary:
------------

Loop      Iterations Time (s) Iter/s (min) Iter/s (max) Iter/s (avg)
main loop       5000 7.041216   373.641304  2430.606873   689.089144

Iteration summary (main loop):
-----------------

Block Iterations Time (s) Iter/s