Maniphest T53242

GPU devices not reported correctly
Closed, Archived

Assigned To
Brecht Van Lommel (brecht)
Authored By
Sebastian Koenig (sebastian_k)
Nov 3 2017, 11:37 AM
Tags
  • BF Blender
Subscribers
Brecht Van Lommel (brecht)
Dmytro Kharchenko (unclenorton)
Sebastian Koenig (sebastian_k)

Description

System Information
elementaryOS 0.4.1, GTX 1080

Blender Version
Broken: 2.79 e32c1bd)
Worked: (2.79)

Short description of error
The CUDA devices are not reported properly by C.user_preferences.addons['cycles'].preferences.devices. It labels the wrong card as display. I guess it happened when GPU+CPU was introduced recently.

Exact steps for others to reproduce the error
Probably you need a multiGPU setup. If you compare the settings in user-preferences with what the python console is reporting, there seems to be a mismatch.
The display in my computer is only connected to the GTX980 Ti, correctly reported by user-prefs, but not py Python.
See screenshot:

Event Timeline

Sebastian Koenig (sebastian_k) assigned this task to Brecht Van Lommel (brecht).Nov 3 2017, 11:37 AM
Sebastian Koenig (sebastian_k) created this task.
Sebastian Koenig (sebastian_k) updated the task description.Nov 3 2017, 11:43 AM
Brecht Van Lommel (brecht) lowered the priority of this task from 90 to Normal.EditedNov 3 2017, 1:14 PM

C.user_preferences.addons['cycles'].preferences.devices is not a list of currently connected devices. Rather it contains settings for all devices that have ever been encountered, even if they are not currently connected. We can't always distinguish between devices if the system setup changes, so there could be some hidden duplicates in that list that are never shown in the user preferences.

You could use this instead:

cuda_devices, opencl_devices = C.user_preferences.addons['cycles'].preferences.get_devices()

Maybe we can improve something in the API here, though likely we want to preserve settings for all encountered devices.

Sebastian Koenig (sebastian_k) added a comment.Nov 3 2017, 1:34 PM

Oh alright, sorry. Thanks a lot for the answer! :)

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Unknown Status.Nov 23 2017, 6:48 PM

I'll treat this as a to do item, we'll likely do some API changes for D2894.

Brecht Van Lommel (brecht) added subscribers: Dmytro Kharchenko (unclenorton), Brecht Van Lommel (brecht).