- printf("\nTotal Bandwidth: %.3lf Gbps, Total MOps: %.3lf\n", bandwidth_total, mops_total); + printf("\nAverage Cycles/op per worker: %.1f, Total Bandwidth: %.3lf Gbps, Total MOps: %.3lf\n", + (avg_cycles_total * (float) 1.0) / nb_workers, bandwidth_total, mops_total); snprintf(output_str[MAX_WORKER_NB], MAX_OUTPUT_STR_LEN, CSV_TOTAL_LINE_FMT, cfg->scenario_id, nr_buf, memory * nb_workers, avg_cycles_total / nb_workers, bandwidth_total, mops_total);As previous mentioned, please make sure the csv format and the above snprintf also modified (make sure stdout and csv has the same value).
Hi Chengwen, the CSV_TOTAL_LINE_FMT already has `Cycles/op` with `%u`. I think you are asking to convert this to `%0.1f` to keep it same as `printf`.
Sure I will share v3 for the same.