Page 1 of 1

Select gpu for rendering?

PostPosted: Sun Feb 02, 2020 3:07 pm
by ginodauri
Hi
Is it possible to select gpu that will be used based on scene?
When i change octane settings , and select particular gpu , it look like this is global parameter "per machine".
Because i have 2 gpu in machine , i want one gpu to do rendering in background , and to use other gpu that is display gpu , so i can work in houdini , and to do ipr rendering in other scene.
Maybe this is not possible , because i will need 2 licences to be able to separate jobs in that way?
Thanks

Re: Select gpu for rendering?

PostPosted: Sun Feb 02, 2020 5:42 pm
by juanjgon
You should be able to render using two or more Octane instances in the same machine with only one license. The GPU settings are set for the current rendering, so you could for example open one Houdini session and render from it using one GPU, and later open another Houdini, select other GPU and also render from it without problems.

You can even configure the GPUs to be used for the current rendering from hython or a script using the "Octane_setGPU" hscript command.

Hope it helps,
-Juanjo

Re: Select gpu for rendering?

PostPosted: Sun Feb 02, 2020 8:18 pm
by ginodauri
Aha nice...

So can this be like pre-render script in octane rop?

Also can this be render command thought hbatch?

I'm having job on deadline that renders frames , it is like this:

hbatch.exe" -c "render -f 155.0 155.0 1 /out/Octane_ROP_ground;quit" "Y:\projects\file.hip"

So i'm asuming command should be something like this:

hbatch.exe" -c "Octane_setGPU -g 0;render -f 155.0 155.0 1 /out/Octane_ROP_ground;quit" "Y:\projects\file.hip"

Thanks

Re: Select gpu for rendering?

PostPosted: Mon Feb 03, 2020 1:06 pm
by juanjgon
Yes, the command should work in any case if the rendering has not started yet.

Thanks,
-Juanjo