argonne-lcf / THAPI

A tracing infrastructure for heterogeneous computing applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

instructions help

zjin-lcf opened this issue · comments

Could you please provide instructions for tracing/profiling an OpenCL program running on an Nvidia GPU ?

Thanks

It should just work. I will assume you installed it with spack and activated the spack install in some way.
You can use two tools:

  • tracer_opencl.sh YOUR_APP will only generate the trace. You can activate various options on the command line, like profiling info etc (see --help)
  • iprof YOUR_APP will generate the trace with profiling activated (plus a number of options) and will tally the result. You can replay the trace afterwards, display it, dump a json timeline, etc...
    If you have issues with iprof, the first thing to do is run tracer_opencl.sh, and then report the different behaviors you observe.

to display traces, babeltrace_opencl should give you a nice output (please don't rely on the format too much just yet we have outstanding issues that need to be fixed that will change the format somewhat).

Best,