Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-06-03 12:52:08 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-06-03 12:52:08 +0300
commitb406b7be00ceeaa5910ff87a50c1dea11cd4e9d8 (patch)
tree37873b585f2298447d7a578003d2d96f4b816b1e
parentf71feb34a3d9c0bafb2249d78f66e945ec2378a7 (diff)
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.
-rw-r--r--intern/cycles/device/device_cuda.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index d7ed7b4f853..2d404918a38 100644
--- a/intern/cycles/device/device_cuda.cpp
+++ b/intern/cycles/device/device_cuda.cpp
@@ -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);
}