Results 1 to 4 of 4

Thread: How can I know that GPU is free for my Open CL code and not for other tasks ?

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    22

    How can I know that GPU is free for my Open CL code and not for other tasks ?

    Hello,

    I want to use Open CL to run some computations and use AMD's GPU.
    But this GPU is also used to display the GUI of the application which contains images, menus etc.
    The libraries used for graphic is WPF.

    Of course the GPU is also used for windows itself.

    When I'm using the GPU to run Open CL how can I know that it is free and not used for other graphic tasks ?

    Thanks,
    Zvika

  2. #2
    Senior Member
    Join Date
    Dec 2011
    Posts
    154
    You can check if it is being used for OpenGL by asking OpenGL what device it is using.

    But you shouldn't need to do this; the driver handles dividing time between the multiple users. Just don't run kernels that take more than 20ms to run or you'll make the UI sluggish.

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Posts
    22
    Quote Originally Posted by Dithermaster View Post
    You can check if it is being used for OpenGL by asking OpenGL what device it is using.

    But you shouldn't need to do this; the driver handles dividing time between the multiple users. Just don't run kernels that take more than 20ms to run or you'll make the UI sluggish.
    Hello,

    If Open GL is not used (just WPF or GDI+) can I be sure that GPU is free ?

    Thanks,
    Zvika

  4. #4
    Senior Member
    Join Date
    Dec 2011
    Posts
    154
    Quote Originally Posted by zvivered View Post
    Hello,

    If Open GL is not used (just WPF or GDI+) can I be sure that GPU is free ?

    Thanks,
    Zvika
    Perhaps, but these days the GPU is always used by something. For example, Windows (Aero Glass) and Max OS X both use the GPU for window composition.

    Sharing resources is common these days. If you need a dedicated GPU, use a Tesla card.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •