From reading the specs, my graphics card should be compatible with NSight but I cannot get the PerfKit API to work. When I run “NvPmApiQuery --names” to list the counter names I get:
device 0: GeForce GT 640M LE
Unkown API type
EnumerateCounters failed
Is there something I’m not doing right or is the video card just not compatible? If so what other ways are there for me to get real-time information about the GPU in my program?
Thanks for clearing that out but I still have problems. When I initialize and setup the perfkit API in my app, I cannot get any data back from the sampler. Even the running the samples provided(for both D3D and OpenGL) I get garbage values outputted. Here is a screenshot of the D3D app running: http://imgur.com/wvx1SNx
After debugging I found that I can’t even register my counters
GetNvPmApi()->AddCounterByName(mNVPMContext,“gpu_idle”); returns NVPM_ERROR_INVALID_COUNTER
also GetNvPmApi()->Sample(mNVPMContext, NULL, &unCount); returns NVPM_ERROR_INVALID_CONTEXT
which is wierd, because upon initialization(doing it exactly as specified in the User Guide) everything seems fine…
Since you mentioned that your GPU is a mobile part (GeForce GT 640M LE), are you able to turn off optimus on the laptop? If you can, do so, and try again.
Hello, I am sorry for bumping this old thread, but after awhile of searching I have found no solution to this and I am desperate to get this working. I am developing using DirectX 11, doing GPGPU work and I need to be able to monitor the GPU stats. Is there any way to get this working?