Improvements to Deadline for Houdini + Arnold GPU

I have figured out solutions to 2 functions I found lacking in Deadline.
There was no way to use Arnold GPU on Deadline.
If rendering with chunk size > 1 the Deadline progress report would show frame progress, not task progress. Therefore the progress percentage would be no indication of total task progress.

  1. The following code to on line 623 will enable Arnold GPU on Deadline. It will actually set the rop parameters that make Arnold run on the GPU. Note these parameters will need to be editable.
if gpus is not None and sys.platform is not "darwin":
    gpu_string = " ".join(list("gpu%s" % gpu for gpu in gpus.split(",")))
  1. The following code to will make it so that the stdout handler for done will only be invoked if the chunk size (frame list length) is 1. This way if the chunk size is > 1 only the ALFRED progress handler will be used.

The following lines need to be removed from the function InitializeProcess

self.AddStdoutHandlerCallback(".?(\d+)% done.").HandleCallback += self.HandleStdoutFrameProgress

And the following should be added to PreRenderTasks

if len(self.GetCurrentTask().TaskFrameList) <= 1:
       ".*?(\d+)% done.*").HandleCallback += self.HandleStdoutFrameProgress

Sure hope this helps anyone else out there facing these issues.

1 Like
Privacy | Site terms | Cookie preferences