[PATCH v2] app/dma-perf: add average latency per worker

Varghese, Vipin vipin.varghese at amd.com
Fri Mar 8 03:39:55 CET 2024


<snipped>
>> -     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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20240308/0aec8d10/attachment.htm>


More information about the dev mailing list