6 Replies Latest reply on Aug 27, 2014 10:52 AM by slimmeke

    GPUPerfAPI Library for GPU Graphics Memory Usage info?

    piyushm1

      Hi All,

       

      Is it possible to use GPUPerfAPI for retrieving the graphics memory utilization at run time? I am trying to use OpenGL's glGetIntegerv(GL_TEXTURE_FREE_MEMORY_ATI, param) but new AMD drivers do not seem to support.

      What else can be done for querying Graphics memory utilization on AMD GPUs runtime?

        • Re: GPUPerfAPI Library for GPU Graphics Memory Usage info?
          slimmeke

          Hi

           

          Did you find a sollution for querying the GPU memory usage? I will add it to Open Hardware Monitor. But I can't find any information about iT.

            • Re: GPUPerfAPI Library for GPU Graphics Memory Usage info?
              piyushm1

              Hi slimmeke,

               

              I have posted the AMD GPU memoru usage issue quite a few places, but unfortunately nobody have replied yet. But it looks like confirmed that ATI technologies do not support OpenGL's glGetIntegerv(GL_TEXTURE_FREE_MEMORY_ATI, param) as their Driver model has changed. The above OpenGl APIs work fine in XP & old drivers. Anyway I am aware that the memory retrieved shall not be very accurate but at least it should give some help as to the memory usage, so that we can load The GPU accordingly. I checked GPUPerfAPi,AGS library etc from AMD but to no success. Even IDirect3DDevice9::GetAvailableTextureMem() gives a constant value (maybe that is expected).

               

              Thus, U need to look at few unconventional routines to query runtime memory usage:

               

              Try searching about D3DKMTQueryStatistics which is available under windows 7 onwards. Its rather undocumented, but I have the impression that some Apps like GPU-Z, ProcessExplorer, Skrim Performance Monitor use it to show memory usage on AMD.

              Also there is a open source code called radeontop-master but it is for Linux. It can be good if somebody converts for Windows.

              Please post your analysis if any.


              Also please comment if this was an useful reply.

               

              Regards.

            • Re: GPUPerfAPI Library for GPU Graphics Memory Usage info?
              slimmeke

              Gpu-Z and ProcessExplorerer does use something to query the GPU memory.

              For GPu-z I have found a service that can read the shared memory.

              https://github.com/JohnnyUT/GpuzShMem

              But you need to start PGU-Z for it.

               

              I will let you know if i found some way to query the GPU memory.