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:
Sergey Sharybin 2016-06-03 11:52:08 +02:00
parent f71feb34a3
commit b406b7be00
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}