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
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.