is it possible to choose the graphic card?

136 views
Skip to first unread message

Maarten Verberne

unread,
Jan 20, 2023, 5:49:06 AM1/20/23
to hugi...@googlegroups.com, gnome...@gmail.com
As David stated, his laptop defaulted to the UHD when using Hugin.
And that is great because it's quicker that way.
I included 2 screenshots, where the GPU hits 100% is where the openGL is
done.
Everything except the GPU is the same in the setup.
notice that one card needs a lot of time prior to that moment resulting
in about 8 sets per minute, while the other only has a slight bump and
converts some 10 sets in a minute.

So i tried to achieve using the internal GPU on my desktop.
However, nona, with [-g], goes to the card that is set up to display my
desktop.
Is it possible to set nona so it will use my gpu that came with the
processor (GPU1) instead of my rtx3060?

Because it is not ideal to switch HDMI cables on the back of my pc
whenever I want to use Hugin.


I'm not sure why the nvidea is slow at the openGL version nona uses, but
it is not what i expected, nor anybody i spoke with.

Maarten

The command-line script:


nona -g -o out -m TIFF_m template.pto DSC_1234.JPG DSC_1235.JPG
enblend -o finished.tif out0000.tif out0001.tif
hugin-5700g-rtx3060.jpg
hugin-5700g-2s.jpg

Maarten Verberne

unread,
Jan 20, 2023, 6:18:03 AM1/20/23
to hugi...@googlegroups.com, gnome...@gmail.com
by mistake i did not include the right 2 pictures, here are the correct
ones.
and i also included a 3rd one from an slower system with a 10 year old gpu
hugin-5700g-rtx3060-2s.jpg
hugin-5700g-2s.jpg
hugin-3600-hd7850-2s.jpg

David W. Jones

unread,
Jan 20, 2023, 10:08:12 PM1/20/23
to Maarten Verberne, hugi...@googlegroups.com
Well, given Nvidia's continued love of their proprietary way of doing things, their driver might only be emulating OpenGL and deliberately doing it slowly, to discourage people from using OpenGL.

Ages ago, in the 16-bit days, I had a graphics adaptor that could run rings around fancier gaming cards of the day when it came to running OpenGL. It was a card designed for CAD work. The application could just send that card a display list and the card would snap update the display. That way, the CPU could spend its time running the design application.

I don't use Windows, but in searching for a way to switch between graphics adaptors in Linux, I found this article at Dell.com about how to set it for Windows, at least on one Dell model line:

https://www.dell.com/support/kbdoc/de-de/000103466/how-to-make-the-nvidia-graphics-processor-the-default-graphics-adapter-using-the-nvidia-control-panel?lang=en

For some reason, my browser adamantly insisted on giving me their German site, but it's available in multiple languages.

I have no idea if setting if in the Windows control panel will make nona use it, but maybe it will help?

When nona acts on the "-g" option, how does it decide which GPU to use?
--
David W. Jones
gnome...@gmail.com
exploring the landscape of god
http://dancingtreefrog.com

Sent from my Android device with F/LOSS K-9 Mail.

Maarten Verberne

unread,
Jan 21, 2023, 3:05:45 AM1/21/23
to David W. Jones, hugi...@googlegroups.com


Op 21-Jan-23 om 4:08 schreef David W. Jones:
> Well, given Nvidia's continued love of their proprietary way of doing
> things, their driver might only be emulating OpenGL and deliberately
> doing it slowly, to discourage people from using OpenGL.
>
I wouldn't put it past them. they are big and unchallenged, usually that
leads to destruction.

>
> I don't use Windows, but in searching for a way to switch between
> graphics adaptors in Linux, I found this article at Dell.com about how
> to set it for Windows, at least on one Dell model line:
>
In the nvidea desktop driver there is no 'preferred graphics procesor'
that is limited to laptops as far as i could find out.
and i can't choose another GPU in the settings, it is just not available.

one way i know of now is: go in to bios>force IGPU to display>shut
down>switch hdmi>start up. (same thing other way 'round to go back to
the rtx)
the other way involves throwing the nvidea in the bin and start
rendering on a i3 with uhd graphics to see how that runs circles around
the rtx.

>
> When nona acts on the "-g" option, how does it decide which GPU to use?
>
I have no idea, but -g end up with whatever GPU is active at that
moment, so i do not think it decides anything on basis of 'better suited'
If there is a way to tell nona to use the other card it would be great.

David W. Jones

unread,
Jan 21, 2023, 3:33:05 AM1/21/23
to hugi...@googlegroups.com


On January 20, 2023 10:05:36 PM HST, Maarten Verberne <mpgve...@gmail.com> wrote:


> Op 21-Jan-23 om 4:08 schreef David W. Jones:
> > Well, given Nvidia's continued love of their proprietary way of doing things, their driver might only be emulating OpenGL and deliberately doing it slowly, to discourage people from using OpenGL.
> >
> I wouldn't put it past them. they are big and unchallenged, usually that leads to destruction.
>
> >
> > I don't use Windows, but in searching for a way to switch between graphics adaptors in Linux, I found this article at Dell.com about how to set it for Windows, at least on one Dell model line:
> >
> In the nvidea desktop driver there is no 'preferred graphics procesor' that is limited to laptops as far as i could find out.
> and i can't choose another GPU in the settings, it is just not available.

The article at Dell did state that the option to set the primary GPU had to be there in the BIOS for it to be available to the control panel. So apparently your Dell doesn't support it.

I've never checked to see if the option is there in ny Dell laptop's EUFI settings.

> one way i know of now is: go in to bios>force IGPU to display>shut down>switch hdmi>start up. (same thing other way 'round to go back to the rtx)
> the other way involves throwing the nvidea in the bin and start rendering on a i3 with uhd graphics to see how that runs circles around the rtx.

When I use Hugin, it seems to only use the GPU for remapping images. That's a much faster process than the blending that follows. I don't think blending uses the GPU, it will use every available core on the CPU.

> > When nona acts on the "-g" option, how does it decide which GPU to use?
> >
> I have no idea, but -g end up with whatever GPU is active at that moment, so i do not think it decides anything on basis of 'better suited'
> If there is a way to tell nona to use the other card it would be great.

Doesn't the Nvidia control panel let you specify which GPU an app uses? Assuming the control panel can SEE all installed GPUs.

Although that seems to be for specifying the GPU for *3d graphics*. If an application isn't calling on 3d graphics functions, the application might not be listed.

Maarten Verberne

unread,
Jan 21, 2023, 3:39:44 AM1/21/23
to David W. Jones, hugin and other free panoramic software
> The article at Dell did state that the option to set the primary GPU had to be there in the BIOS for it to be available to the control panel. So apparently your Dell doesn't support it.
>
> I've never checked to see if the option is there in ny Dell laptop's EUFI settings.

I don't have a dell, my bios supports 2 cards (i had a extended screen
with the IGPU over hdmi and the rtx on displayport when i started trying)

>
> Doesn't the Nvidia control panel let you specify which GPU an app uses? Assuming the control panel can SEE all installed GPUs.
>

in windows device manager you see both cards, but in the nvidea control
panel i only have the rtx

> Although that seems to be for specifying the GPU for *3d graphics*. If an application isn't calling on 3d graphics functions, the application might not be listed.
>
>
i can find nona.exe and add it to the 'manage 3d settings' list in the
nvidea control panel, but i can only choose the rtx.

Maarten Verberne

unread,
Jan 21, 2023, 5:07:15 AM1/21/23
to David W. Jones, hugi...@googlegroups.com
just shooting theory, with that dell of yours does it list the igpu as
gpu0 and the rtx as gpu1?
in that case it could be possible that when 2 gpus are in the system
nona -g defaults to gpu0.
hence your dell reverts to the IGPU.

in my setup gpu0 is alas the rtx, so with both active it still goes for
the rtx.
i wouldn't not know how, and if possible, to change the assignment of
the gpu and couldn't find a comprehensive instruction.

plus, if it defaults to the igpu, bios is not visible until i plug in a
hdmi cable...luckely i don't need it that much.
but it is something to keep in mind.


Op 21-Jan-23 om 9:05 schreef Maarten Verberne:

Maarten Verberne

unread,
Jan 21, 2023, 5:17:48 AM1/21/23
to David W. Jones, hugi...@googlegroups.com
And before somebody is wondering, in windows 10 you can under power
settings change graphic settings per app. that makes the nvidea control
panel sort of obsolete.

i added nona.exe and later hugin.exe and hugin_stich_project.exe to use
the 'power saving' igpu, but still when i call nona with -g it goes to
the rtx.

so that does not pursuade it to act like your laptop.



Op 21-Jan-23 om 11:07 schreef Maarten Verberne:

Maarten Verberne

unread,
Jan 21, 2023, 5:55:13 AM1/21/23
to David W. Jones, hugi...@googlegroups.com
the solution i found now is better than before, but still it's not ideal.

i discovered that when i plug in both cards (one with displayport, the
other hdmi) on the SAME monitor.
i can then change the input on the monitor from displayport (rtx) to
hdmi (igpu)
possibly it also works with 2 monitors if you disconnect power from the
external card.
i hope this doesn't lead to feedback loops in the electrical system.

but aside that, if i start my commandline script with nona it defaults
to the active one, either igpu if the monitor is set to hdmi and to the
rtx when the monitor is running displayport.
the disadvantage, i don't have a chance to enter bios anymore until i
unplug the displayport cable....but aside from the past few days i
usually have little need to be there ;)

funny, don't think i would have tried all this without knowing a laptop
could do it, thanks David for that valuable info.

If somebody has a brighter idea, i'm all ears ;)
Maarten
Reply all
Reply to author
Forward
0 new messages