ID 474950 - [PUBLIC] AIR nodes render on GPU from command line, regardless of whether --gpu was used or not

Follow

Problem summary
AIR nodes render on GPU from command line, regardless of whether --gpu was used or not.
This was originally found with the Upscaler node, but has also been reported with the Deblur node.

Customer reported version
N/A

Customer reported platform
N/A

Steps to reproduce

1) Render the attached script, using the following command: 

Nuke13.0.exe -X Write1 airUpscale.nk 1-10

2) Open Task manager on Windows, or run nvidia-smi -l1 in a terminal on Linux, and watch the GPU utilisation.

3) You should notice that the GPU is being utilised.
 

Expected behaviour
The AIR nodes should respect the command line options of Nuke and not use the GPU if the --gpu option is not passed.
 

Actual behaviour
AIR nodes render on GPU from command line, regardless of whether --gpu was used or not.
 

Workaround
Disable the Use GPU If Available knob on the node, before rendering the script.

You could disable this knob automatically, by using a addBeforeRender callback. For example:

import nukeAIRnodes = ["Deblur", "Upscale", "Inference"]def disable_AIR_GPU():	for node in nuke.allNodes():		if node.Class() in AIRnodes:			node["useGPUIfAvailable"].setValue(False)nuke.addBeforeRender(disable_AIR_GPU)


Reproduced by support
This bug has been reproduced in:
Nuke 13.1v3 - Windows 10 - Linux CentOS 7
Nuke 13.0v1 - Windows 10 - Linux CentOS 7


Earliest version tested
Nuke 13.0v1 
- This feature did not exist before this version

    We're sorry to hear that

    Please tell us why