Login  Register

Re: Initializing JOGL with NVidia Optimus systems

Posted by Sven Gothel on Mar 25, 2013; 9:43pm
URL: https://forum.jogamp.org/Initializing-JOGL-with-NVidia-Optimus-systems-tp4028794p4028813.html

On 03/25/2013 03:50 PM, datSilencer [via jogamp] wrote:

> Hello everyone.
>
> I'm currently developing my application on a laptop which uses NVidia Optimus
> GPU switching between a GeForce GT640M LE and an Intel HD Graphics 4000 card
> under Windows Server 2012.
>
> I just don't know how to setup JOGL in order to use the NVIDIA gpu. My
> application always defaults to the Intel card.
>
> [main] INFO org.jgl.opengl.GLScheduledEventListener - OpenGL vendor: [Intel]
> [main] INFO org.jgl.opengl.GLScheduledEventListener - OpenGL renderer:
> [Intel(R) HD Graphics 4000]
> [main] INFO org.jgl.opengl.GLScheduledEventListener - OpenGL version: [4.0.0 -
> Build 9.17.10.2932]
> [main] INFO org.jgl.opengl.GLScheduledEventListener - OpenGL Shading language
> version: [4.00 - Build 9.17.10.2932]
>
> Doing some research I found out that one could use an NVIDIA specific
> extension called WGL_NV_gpu_affinity but I'm not sure if JOGL's WGL code is
> aware of such extension.
>
> http://developer.download.nvidia.com/opengl/specs/WGL_nv_gpu_affinity.txt
not mapped yet, but you can add it and try ..

>
> Is it even remotely possible to perform this device selection?

http://stackoverflow.com/questions/6036292/select-a-graphic-device-in-windows-opengl

Above mentions some doubts due to Quadro Pro requirements,
but it links a PDF documentation from NV.

Maybe you can read it and share your findings,
then we could add such impl. to the AbstractGraphicsDevice's unitID.
At least the abstraction for this feature is already provided.

~Sven



signature.asc (911 bytes) Download Attachment