Page MenuHome

Cycles commandline rendering quits with CUDA error - when using two graphics cards
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX TITAN X/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.86
Graphics card: GeForce GTX 1080Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.86

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-07-19 00:44, hash: rB5f140e61c28c
Worked: Blender optional

Short description of error
Cycles commandline rendering quits with CUDA error - when using two graphics cards - when disabling the one with (display) next to it in the blender preferences cmd rendering works.

Exact steps for others to reproduce the error
You need a computer with two graphic cards.
You have to setup a commandline rendering, (See attached batchRender__Rechner_Local_280.bat) with the attached scene.



In the blender prefereces both graphic cards have to be enabled in the system cuda section.

Start the batch script.
Commandline starts but crashes after a few seconds.

CUDA error at cuCtxCreate: Unknown error
When I open the above scene in Blender and render within the application, there is no problem.

If you set the above file to CPU rendering and save it, then starting the batch process it renders fine!
I´ve tested a little bit and found out that rendering also works, if you uncheck the graphics card with (display) next to it in the preferences.
With only one GPU and CPU commandline rendering also works. It must have something to do with the GPU which is also feeding the displays.

Event Timeline

It´s very annoying, I can´t commandline render with my computer because commandline rendering quits, when using all graphic cards.
I think there are more people out there who have more than one graphics card?! I bought the second one for faster rendering in blender!
Do you have any ideas how to solve that problem?

I think it must be some CUDA problem, that If the second GPU (in my case the GeForce GTX TITAN X) that is also feeding the displays makes the commadline render to fail.
As mentioned above, If I disable this GPU in the blender preferences from CUDA, commandline rendering works fine.
But if I open Blender and render the same file within the application, I can enable the Titan X and it renders fine.

Marcus Papathoma (machieb) changed the task status from Unknown Status to Resolved.Aug 20 2019, 2:52 PM

I changed the pcie-slots on the motherboard of the graphics cards and installed the graphics driver from scratch. Now command line rendering works with both gpus.