I'm looking for get the GPU load (MFX and EU loads) inside my C++ application.So is here any way to use the "DirectTraceSample" or anay other DLL to have access to such measure.
At this time there is no way for you to get the metrics values via an API call from within your application.
Can you help me understand what you are trying to do and why you need this? There may be a way for Intel GPA to provide the info you need.
I'm runing several applications that use the Intel MFX "encoder" and I want to monitor remotely the GPU usage (by sending values via ethernet) to check the hardware "GPU" limitation.
With Intel GPA you can monitor GPU usage in a client/server mode -- take a look at the System Analyzer tool (see this link), and also take a look at the tool's support for media.
Does this give you the capabilities that you need?
In my company we use our own secure connection between the client and the server, so what I need is a C++ like method to get the GPU usage/MFX.
Now I understand why an API is necessary -- the secure connection between client and server.
Unfortunately, since there's no way to get this data from within your app/game, the only option I can think of is to write out data via a user-defined trigger (such as every seconds, or every frames, or another trigger you define), then read that file from your client process. Also, take a look at the "capture.exe" and "playback.exe" utilities in the Intel GPA install area as well (they are command-line tools).
Whether this method works depends upon your specific use model, but at this time there is no API read access from within the Intel GPA product.
ps-> You're not the only person to request this feature, and I've submitted this as a feature request to see if we can add this capability in a future release.
My inderstanding of "capture.exe" and "playback.exe" is that they are useful to play and capture frames and can not be used to get the GPU load if for example I'm runnig an application such "sample_encode.exe" from
the "Intel Media SDK" samples.
I'll retry some of my sample apps to be sure that these utilities work as expected.
Any news regarding my question.
Nothing new... we don't currently support what you are trying to do. I've submitted this as an enhancement request to the development team.
Can I get GPU load via an API call in my application?
Thanks for suggesting this again, but unfortunately Intel GPA does not have an API for this information.