<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<snipped><br>
<blockquote type="cite" cite="mid:0526dd9f-aeda-af3f-fd94-70392bd13fab@huawei.com">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">- 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);
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
As previous mentioned, please make sure the csv format and the above snprintf also modified (make sure stdout and csv has the same value).</pre>
</blockquote>
<p>Hi Chengwen, the CSV_TOTAL_LINE_FMT already has `<span style="white-space: pre-wrap">Cycles/op` with `</span><span class="cp" style="box-sizing: inherit; vertical-align: top; color: rgb(85, 119, 153);">%u`.
I think you are asking to convert this to `%0.1f`</span><span style="white-space: pre-wrap"> to keep it same as `printf`. </span></p>
<p><span style="white-space: pre-wrap">Sure I will share v3 for the same.
</span></p>
<blockquote type="cite" cite="mid:0526dd9f-aeda-af3f-fd94-70392bd13fab@huawei.com"><span style="white-space: pre-wrap">
</span></blockquote>
</body>
</html>