[osg-users] Selecting a GPU to be used in a dual-GPU laptop

COUDRET Florent florent.coudret at cstb.fr
Fri Oct 19 02:27:37 PDT 2018


Hi Alberto,

for NVidia and AMD graphics cards, we declare 2 public variables at 
global scope to force using GPU at run-time (even if there is no 
existing application profile).


extern "C" {

     /// Declare this variable in public to enable the NVidia side of 
Optimus - 
http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf
     __declspec(dllexport) int NvOptimusEnablement = 1;

     /// Declare this variable in public to enable the AMD side of AMD 
Switchable Graphics (13.35 driver or newer needed) - 
http://devgurus.amd.com/thread/169965
     __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;

}

Regards,

Florent

Le 18/10/2018 à 18:03, Alberto Luaces a écrit :
> Hi,
>
> some client owns a laptop with a dual GPU system —the typical integrated
> Intel card plus an additional Radeon 530 one into a windows10 system.
>
> It seems that the driver selects automatically the Radeon when using
> some CAD applications, but only the integrated Intel when running our
> OSG program (checked from the Program Manager window).
>
> I heard that in some analogous nVidia systems one can set manually a
> given program to run with the powerful GPU in the Control Panel, but at
> least, if it were possible in the AMD drivers, it is not immediately
> apparent (we didn't find how).
>
> Does anybody have experience in this kind of Radeon systems?
>
> Thank you!
>

-- 
*Florent Coudret*
CSTB / DTI / MIC


More information about the osg-users mailing list