AWS Thinkbox Discussion Forums

Cinema 4D, octane and GPU affinity

I’ve actually been testing this recently with Octane 3.08 w/ C4D R19 and due to some issues with our multi-gpu machine we haven’t gotten around to testing if it’s actually respecting what gpus are being set on the command-line.

If anyone’s down for a quick test or two, I’d appreciate it if they could run similar command-line options and try turning on/off gpus the way that’s suggested and post their results here.

Example:

"C:\Program Files\MAXON\CINEMA 4D R19\Commandline.exe" -noopengl -render "C:\Users\morgane\Documents\C4D\octaneTest.c4d" -frame 1 1 -take "Main" -oresolution 800 600 -octaneGPU "0:true 1:false"

Update: I had posted about some command-line issues but after a re-install they disappeared. I’m working on getting this machine fixed.

Cheers

I’ve made the changes to the plugin and submission files for C4D (for recent versions of Deadline 10). If you get a chance to test it out, please let us know your results here! Would be greatly appreciated!

Instructions:

  • Download and un-zip the contents of the attached file
  • Back-up your existing cinema 4d files that you’re about to overwrite
  • Copy “Cinema4DSubmission.py” to “DeadlineRepository10/scripts/Submission”
  • Copy “SubmitC4DToDeadline.py” to “DeadlineRepository10/submission/Cinema4D/Main”
  • Copy “Cinema4D.py” to “DeadlineRepository10/plugins/Cinema4D”
  • Copy “Cinema4DBatch.py” to “DeadlineRepository10/plugins/Cinema4DBatch”

From here the Cinema 4D plugins will attempt to set the gpu affinity for Octane. Let me know if you run into any issues!

Cheers

Will tests and get back to you

sorry, still uses all 4 GPUs.
I also disabled Use all GPUs inside C4D scene and submitted as 1 concurrent task 2 GPUs, and it is rendering with all 4 again.

It does send those flags as I can see in log:
2018-07-07 15:44:21: 0: INFO: Executable: “C:\Program Files\MAXON\CINEMA 4D R19\Commandline.exe”
2018-07-07 15:44:21: 0: INFO: Argument: -nogui -noopengl “-redshift-gpu 0” “-redshift-gpu 1” -octaneGPU “0:true 1:true 2:false 3:false 4:false 5:false 6:false 7:false 8:false 9:false 10:false 11:false 12:false 13:false 14:false 15:false” “-DeadlineConnect 50889 566615288143 ‘C:\Users\mirkoj\AppData\Local\Thinkbox\Deadline10\slave\mirkoj-i\jobsData\5b40710b08122d22dca8dac9\importTest_tempBdApI0\importCheck.txt’” -redshift-log-console Debug
2018-07-07 15:44:21: 0: INFO: Full Command: “C:\Program Files\MAXON\CINEMA 4D R19\Commandline.exe” -nogui -noopengl “-redshift-gpu 0” “-redshift-gpu 1” -octaneGPU “0:true 1:true 2:false 3:false 4:false 5:false 6:false 7:false 8:false 9:false 10:false 11:false 12:false 13:false 14:false 15:false” “-DeadlineConnect 50889 566615288143 ‘C:\Users\mirkoj\AppData\Local\Thinkbox\Deadline10\slave\mirkoj-i\jobsData\5b40710b08122d22dca8dac9\importTest_tempBdApI0\importCheck.txt’” -redshift-log-console Debug

But it still uses all of them

Thanks for taking a look. From what we can tell over here, we’re following what they say to use. :cry: Unfortunately, it doesn’t look like they’ve added support for the -help flag, so we can’t see if this format is actually what they expect.

I’ll post or send a message asking about them this.

Would it be possible for you to also do a test render with Cinema4D non-batch? I expect the results to be the same, but I’d definitely appreciate having that datapoint available.

Cheers

non-batch same thing, all 4 GPUs used

Gah! Forgot to ask. Which Octane version are you using? I believe this was added in 3.0.5? Might be 3.0.6?

Other way to check, do the logs mention octanegpu as an unknown argument or parameter? Feel free to post the logs and I can take a look for it.

Cheers

It is 3.07
Sorry was cleaning up deadline tasks and remove d this one but will add it again a bit later and submit log here. no problem.
Just have to clean active tasks a bit :slight_smile:

I contacted them last week, but am currently waiting for a response on this. Hopefully we get a response soon.

Cheers.

Is there any update on this? Would be great to get affinity working in C4D. Currently C4D just remembers the GPU select from last time it was open.

Standalone respects slave GPU selection, but has issue with multiple slaves authenticating at the same time when the job first starts.

Hmm. It looks like we never heard back.

Can you test as per @mepp’s test code from June? We need to make sure this -octaneGPU "0:true 1:false" actually works.

This doesn’t work.

Also “use ALL GPU” is not checked in C4D.

“C:\Program Files\MAXON\CINEMA 4D R19\Commandline.exe” -noopengl -render “Z:\octaneTest.c4d” -frame 1 1 -take “Main” -oresolution 800 600 -octaneGPU “0:true 1:false”

What I’ve found is that the Octane command-line flags for C4D (ie. exporting orbx files) don’t appear to work as expected with the commandline.exe executable or with the -nogui option. I’ve brought this up with the Octane developers but there doesn’t appear to be movement on the issue.

Can you set Cinema4D.exe as the executable in the plugin configuration and see if that works for gpu affinity? I believe it’ll spawn a UI, but confirmation would be good to have.

Cheers
Morgan

I tested:

“C:\Program Files\MAXON\CINEMA 4D R19\Cinema4D.exe” -noopengl -render “Z:\octaneTest.c4d” -frame 1 1 -take “Main” -oresolution 800 600 -octaneGPU “0:true 1:true 2:false 3:false”

But it didnt work.

Deadline still set -nogui even with plugin configuration set to Cinema4D.exe, and didn’t work either.

Weirdly the next time I opened C4D it had set 2 out the 4 GPU active? I will try and test some more.

So after running

It renders using all GPUs but the once finished rendering it sets 2 GPUs to active. I also tried putting the -octaneGPU before -render but still the same result.

Hope this helps.

greetings colleagues!
did somehow solve this problem?

This should be resolved as of 10.1.16, are you having issues with your farm, or just checking to see how things are going? :slight_smile:

Yes, I have the same problem!

I contacted OTOY support and they confirmed the problem:

We are also having issues with our deadline test machines and currently investigating.
Please do let us know if you receive any guidance from the AWS team.

I would be very grateful for experience how to solve this problem and ready to conduct tests on my equipment according to your instructions

1 Like

I just have same issue, it seems like octane use all GPUs regardles worker GPU affinity settings (to be correct you need to use octane 2021.1.7 and higher - older versions has 2GPUs limitation).

Due my research, one worker with multiple GPUs has some benefits:

  • you need one license per worker (octane/ C4D/ you name it)
  • its easier to manage/ update
  • you can build cheaper and more poverful setup with multi GPUs setup vs one latest GPU

I also run some test, but somehow its seems like 2 workers with 2GPUs are faster then 1 worker with 4GPUs (RTX 3070 to be exact)

1 Like

otoy technical support writes that this problem has not been solved

'in short, they have answered from a C4D point of view, but c4doctane is different, and you cannot control GPU assignment via commandline.exe, or cinema4d.exe, indifferently.

To add specific command-line Octane commands/arguments, the only way is to use Octane Standalone workflow."

1 Like
Privacy | Site terms | Cookie preferences