Choosing a Graphics Device

classic Classic list List threaded Threaded
5 messages Options
Art
Reply | Threaded
Open this post in threaded view
|

Choosing a Graphics Device

Art
I've looked everywhere I can think of and still can't figure out how to choose a graphics device.  My current issue is when I run my application on a Dell laptop with two graphics cards (integrated Intel and Nvidia).  If I run it on the laptop hooked up to an external monitor or docking station is utilizes the Nvidia graphics device.  If I run the application using only the laptop monitor it utilizes the integrated Intel graphics device.  Is this something that can be overridden?  This application utilizes a custom built framework that needs to work the same (or at least similar) for Windows, Linux, and Mac when rendered in AWT, SWT, or NEWT.
Reply | Threaded
Open this post in threaded view
|

Re: Choosing a Graphics Device

gouessej
Administrator
Hi

There is an API for that, Nvidia GPU affinity, but it isn't available in JOGL yet:
http://www.opengl.org/registry/specs/NV/gpu_affinity.txt

There is an example of use here:
https://github.com/Eyescale/Equalizer/blob/master/tools/affinityCheck/affinityCheck.cpp
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Choosing a Graphics Device

Sven Gothel
Administrator
On 01/21/2014 05:12 PM, gouessej [via jogamp] wrote:
> Hi
>
> There is an API for that, Nvidia GPU affinity, but it isn't available in JOGL
> yet:
> http://www.opengl.org/registry/specs/NV/gpu_affinity.txt

We may need to earmark that (i.e. add enhancement bug report).
Anybody willing to add this extension is welcome ofc.

>
> There is an example of use here:
> https://github.com/Eyescale/Equalizer/blob/master/tools/affinityCheck/affinityCheck.cpp

You may also simply change some settings of your graphics card,
AFAIK you can tell which GPU shall be used for which application etc ..
At least this is true on Window w/ NV+Intel.

~Sven



signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Choosing a Graphics Device

gouessej
Administrator
You're right. It's possible to choose the "Performance" profile under Windows with Nvidia configuration tool. I'm almost sure Martin already did that once, he posted a screen capture here about that.
Julien Gouesse | Personal blog | Website
Art
Reply | Threaded
Open this post in threaded view
|

Re: Choosing a Graphics Device

Art
In reply to this post by Sven Gothel
Thanks for the quick replies.

I've tried setting the default device using the Nvidia configuration tool but that doesn't seem to work.  However, I haven't spent much time going down this route because ultimately this type of workaround falls short of a solution for a deployed application (at least in my case.)