locked
How can I measure GPU load/usage? RRS feed

  • Question

  • I have a GPU bound application I want to write a watchdog for.  To do this, I need to monitor the GPU usage.   Is there a way to do this in PowerShell (WMI, Win32, etc.)?   I am running Windows 8.1 with an AMD graphics card.

    MSDN premium subscriber

    Saturday, December 14, 2013 3:01 AM

Answers

  • Well I don't exactly know how to get the GPU Usage, but I did a search for WMI Class for Video Controller and found few which could help...provided you H/W provider provides WMI supports.

    PS C:\> Get-CimClass *videocontroller*
    
    
       NameSpace: ROOT/cimv2
    
    CimClassName                        CimClassMethods
    ------------                        ---------------
    CIM_VideoController                 {SetPowerState, R
    CIM_PCVideoController               {SetPowerState, R
    Win32_VideoController               {SetPowerState, R
    CIM_VideoControllerResolution       {}
    

    Yes ! You can use Eventing with WMI to setup a watchdog (if it is supported).

    To quickly get started WMI Eventing refer to the book by MVP Ravikanth:
    http://www.ravichaganti.com/blog/?p=1979


    Knowledge is Power{Shell}.

    • Marked as answer by Yan Li_ Friday, December 20, 2013 2:08 AM
    Sunday, December 15, 2013 2:00 PM

All replies

  • Well I don't exactly know how to get the GPU Usage, but I did a search for WMI Class for Video Controller and found few which could help...provided you H/W provider provides WMI supports.

    PS C:\> Get-CimClass *videocontroller*
    
    
       NameSpace: ROOT/cimv2
    
    CimClassName                        CimClassMethods
    ------------                        ---------------
    CIM_VideoController                 {SetPowerState, R
    CIM_PCVideoController               {SetPowerState, R
    Win32_VideoController               {SetPowerState, R
    CIM_VideoControllerResolution       {}
    

    Yes ! You can use Eventing with WMI to setup a watchdog (if it is supported).

    To quickly get started WMI Eventing refer to the book by MVP Ravikanth:
    http://www.ravichaganti.com/blog/?p=1979


    Knowledge is Power{Shell}.

    • Marked as answer by Yan Li_ Friday, December 20, 2013 2:08 AM
    Sunday, December 15, 2013 2:00 PM
  • Hi,

    Just checking in to see if the suggestion was helpful. Please let us know if you would like further assistance.

    TechNet Subscriber Support

    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.


    Regards, Yan Li

    Tuesday, December 17, 2013 1:52 AM