CSV output header

38 views
Skip to first unread message

Justin Lee

unread,
Mar 23, 2020, 2:00:51 AM3/23/20
to likwid-users
Hello, 

I have been working with the timeline mode of likwid-perf, generating a CSV output. However, I am not able to make sense of the csv output as there isn't any csv header present. 

ne way I have been going around this is by combining the csv headers from the .txt file(changing the '|' delimiter to "," at the same time) and insert it on top of the .csv output. However, as a result, not all the columns in the CSV file has a corresponding header. Therefore, is there an easier way for this workflow? Also, how can I get the header field for all the columns?

Best,
Justin Lee

Screenshot from 2020-03-23 01-38-16-02.jpegScreenshot from 2020-03-23 01-29-15.pngScreenshot from 2020-03-23 01-32-51.png

Thomas Gruber

unread,
Mar 23, 2020, 6:51:53 AM3/23/20
to likwid-users
Hi,

you are right, the CSV header does not directly describe all columns. You have to combine the "Cores" line with the following "GID..." line as shown in the documentation (https://github.com/RRZE-HPC/likwid/wiki/likwid-perfctr#the-timeline-mode). But, of course, there is is room for improvement in the documentation. I have not used ',' as separator because it might be part of a metric name. The '|' is rarely used in descriptions. The CSV output is somewhat new to for the timeline mode.

Best,
Thomas

Thomas Gruber

unread,
Mar 23, 2020, 12:02:58 PM3/23/20
to likwid-users
Just as a note, the CSV header line can be adjusted in

You could transform it to a loop like:
for e=1, likwid.numberOfEvents(gid) do
   for c=1, #clist do
       table.insert(strlist, string.format("%s<%d>", likwid.getNameOfEvent(gid, e), clist[c]))
   end
end

Similarily for the metric part of course. Now you get a header like this:
GID|eventCount|cpuCount|Total Runtime|Runtime (RDTSC)<0>|Runtime (RDTSC)<1>|....

Best regards,
Thomas

P.S. If you have no control over the installation, copy the likwid-perfctr script locally and use it from there
cp $LIKWID_PREFIX/bin/likwid-perfctr .
edit likwid-perfctr
./likwid-perfctr ....

Justin Lee

unread,
Mar 23, 2020, 12:58:00 PM3/23/20
to likwid...@googlegroups.com
Hello Thomas,

This is great to know! This would definitely help. Thanks.

Best,
Justin Lee

--

---
You received this message because you are subscribed to the Google Groups "likwid-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to likwid-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/likwid-users/d78be721-631b-4b2a-8d3f-f82f349d9c02%40googlegroups.com.


--
Justin Lee
"Human potential is the greatest potential energy in the world."
Reply all
Reply to author
Forward
0 new messages