mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cycles: Mark which CUDA device is used for display
It is really handy to know which one is display when having two cards of same type in the machine.
This commit is contained in:
parent
f71feb34a3
commit
b406b7be00
1 changed files with 1 additions and 0 deletions
|
|
@ -1368,6 +1368,7 @@ void device_cuda_info(vector<DeviceInfo>& devices)
|
|||
|
||||
/* if device has a kernel timeout, assume it is used for display */
|
||||
if(cuDeviceGetAttribute(&attr, CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT, num) == CUDA_SUCCESS && attr == 1) {
|
||||
info.description += " (Display)";
|
||||
info.display_device = true;
|
||||
display_devices.push_back(info);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue