instructions help
zjin-lcf opened this issue · comments
zjin-lcf commented
Could you please provide instructions for tracing/profiling an OpenCL program running on an Nvidia GPU ?
Thanks
Brice Videau commented
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 withiprof
, the first thing to do is runtracer_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,