cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

aj_guillon
Adept I

Raw Access to Performance Counters on GPU?

I'm getting very desparate for performance tuning information on Linux, and at this point I'm sufficiently desparate to write something myself.  Are the performance counters on the card documented so that I can write my own interface to them?  Would there be any hope of guidance from AMD so that an open-source tuning application can be written?  Something that just gets the raw counters from the device is a good first step.  Where does support have to be written, at kernel level or at userspace?

At this point, I cannot further optimize my application without a profiler... and rather than just complaining I'm fully ready to do it myself with some guidance.

0 Likes
5 Replies
nou
Exemplar

on windows there is GPUPerfAPI http://developer.amd.com/gpu/GPUPerfAPI/Pages/default.aspx which provide access to this performance counters. sadly it is windows only.

you can try write here http://forums.amd.com/devforum/messageview.cfm?catid=347&threadid=134719 to push this little further.

0 Likes
ryta1203
Journeyman III

Why don't you just tweak in Windows for now?

Dual boot or 2nd machine. This seems like a much simpler solution than trying to write something yourself.

0 Likes

I appreciate your suggestion as a "quick fix", but Windows is not a supported operating system for the product I am working on anyways... in another thread on the GPU Tools forum I did post that I had tried the code there, but there were other issues.  The best solution is to have access to these tools myself.

I have never been afraid of hard work, so if AMD is able to disclose the particulars of how to access this data on the GPU (if it's not already documented somewhere that I don't see... and assuming these counters exist in hardware), I'll get something written that everyone can use and enjoy, and this further could reduce the costs of AMD's own product development 😉

0 Likes

aj_guillon,

Have you checked the GPUPerfAPI library.

http://developer.amd.com/gpu/GPUPerfAPI/Pages/default.aspx.

A new version with linux support is going to be released soon.

0 Likes

I just noticed today that the new GPU Perf API does indeed support Linux, thank you very much for this... I'm going through and learning how to use it now, and I'll post to this thread (in a couple months hopefully) once I have put together an open-source app to help others profile their OpenCL code.

Thanks a billion!

0 Likes