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 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
>
> --
> Alberto
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 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

-- 
Alberto

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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.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
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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, but it was not obvious to me.  Apparently our
client got it to work, nevertheless, so I will ask them how they did it
for reference.

-- 
Alberto

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 
> look around. Maybe you can find it before I do based on that knowledge.

That solution would be indeed nice to know, but I also had not luck
finding it.

Nevertheless, apparently our client got it to work tinkering with the
driver settings, so I will resume this search at a later date.

Thank you for the insight!

-- 
Alberto

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 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 it before I do based on that knowledge.
>
> On Thu, Oct 18, 2018 at 5:04 PM Alberto Luaces  wrote:
>
>> 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!
>>
>> --
>> Alberto
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
> --
> Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
> http://www.alphapixel.com/
> Training • Consulting • Contracting
> 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4
> • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
> Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
> osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
> iPhone/iPad/iOS • Android
> @alphapixel  facebook.com/alphapixel (775)
> 623-PIXL [7495]
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 it before I do based on that knowledge.

On Thu, Oct 18, 2018 at 5:04 PM Alberto Luaces  wrote:

> 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!
>
> --
> Alberto
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel  facebook.com/alphapixel (775)
623-PIXL [7495]
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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 (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!

-- 
Alberto

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org