Add dump_stats to pingpong and wavefront