I'm a novice for VTune. My goal is to get the assembly code of OpenCL.
According to figure 3 from the link, the picture showed many Dynamic functions. But while I profiled my application (I used OpenCL Gaussian elimination and other applications from Rodinia Benchmark suit), I cannot find any dynamic code or any of my functions.
I tried both lightweight hotspot and hotspot with Knights Corner Platform Analysis, but still met the same problem.
I also set CL_CONFIG_USE_VTUNE=True; ENABLE_JITPROFILING=1; for the environment
What did i miss here? OR which function I should look for ?
OR if you have another way to get the assembly code from OpenCL, please let me know.
in case you missed some of that. No search paths, even for your own source or compiled code, are present until you designate them. I don't know whether your OpenCL libraries may be in yet another path.
If you mean viewing asm code as executed in your application in VTune, you would set up the search paths so that you can locate the counted events in source and asm views.. You don't need to run your cases over; you simply re-resolve after setting the desired paths.
If you mean viewing generated asm code, presumably the compiler has an option to write that to a file, and you have the option of objdump for viewing the .o files.
It is recommended to use VTune Amplifier XE 2013 Update 16 and OpenCL 2013 R3 or later. In Update 16 we set all variables that are needed automatically.
You should see your OpenCL kernels under [Dynamic] model in the process mic_server.
Double clisking on the kernel raw in the grid should provide you the Assembly view for the kernel.
You can also try to set experimental variable CL_CONFIG_USE_ITT_API=TRUE for the application to launch. In this case you will see OpenCL kernel instances annotations by frames and see them on timeline and do analysis of outliers with ../frame type/.. groupings.
Thanks & Regards, Dmitry