forked from bartvdbraak/blender
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
@ -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…
Reference in New Issue
Block a user