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

2018-10-23 Thread Chris Hanson
That's the bit of code I was looking for. Thanks Florent! On Fri, Oct 19, 2018 at 12:24 PM Alberto Luaces wrote: > Great! Thanks a lot, Florent! > > COUDRET Florent writes: > > > Hi Alberto, > > > > for NVidia and AMD graphics cards, we declare 2 public variables at > > global scope to force us

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

2018-10-19 Thread Alberto Luaces
Great! Thanks a lot, Florent! COUDRET Florent writes: > 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

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

2018-10-19 Thread COUDRET Florent
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.downl

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

2018-10-19 Thread Alberto Luaces
Trajce Nikolov NICK writes: > I owned laptop with same configuration and obviously the Radeon driver > software kit (or how it is called) comes with an app where you select > the card per app. You select your app in this Radeon app and it will > run on the selected device That is what I tried, bu

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

2018-10-19 Thread Alberto Luaces
Chris Hanson writes: > I believe I was previously told that there are some secret C symbols wherein > if you create a variable of a particular name, it acts as a hint to the > driver to trigger particular behavior. > > I can't at the moment find the names of the symbols or what they do, but I'll

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

2018-10-18 Thread Trajce Nikolov NICK
I owned laptop with same configuration and obviously the Radeon driver software kit (or how it is called) comes with an app where you select the card per app. You select your app in this Radeon app and it will run on the selected device On Thu, Oct 18, 2018 at 9:09 PM Chris Hanson wrote: > I bel

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

2018-10-18 Thread Chris Hanson
I believe I was previously told that there are some secret C symbols wherein if you create a variable of a particular name, it acts as a hint to the driver to trigger particular behavior. I can't at the moment find the names of the symbols or what they do, but I'll look around. Maybe you can find

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

2018-10-18 Thread Alberto Luaces
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