GPUOpen-Tools / gpu_performance_api

GPU Performance API for AMD GPUs
MIT License
251 stars 46 forks source link

example of opencl #9

Open trinayan opened 7 years ago

trinayan commented 7 years ago

Hi, Is there any example to show how to use this tool with a OpenCL application?

Best, Trinayan

giordi91 commented 7 years ago

not sure about explicit code sample but you find documentation of every single counter and example code in how to setup the context here: http://developer.amd.com/wordpress/media/2013/12/GPUPerfAPI-UserGuide-2-15.pdf I guess then is just a matter to query the correct counters, I am gonna work with this API soon for OpenCL counters, so i will let you know if i get anywhere