[Bf-blender-cvs] [3cdfe83] compositor-2016: Cycles: Mark which CUDA device is used for display

Sergey Sharybin noreply at git.blender.org
Wed Jun 8 21:52:45 CEST 2016


Commit: 3cdfe8310e6991d140c8c538c42fdf769c7e5bd4
Author: Sergey Sharybin
Date:   Fri Jun 3 11:52:08 2016 +0200
Branches: compositor-2016
https://developer.blender.org/rB3cdfe8310e6991d140c8c538c42fdf769c7e5bd4

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.

===================================================================

M	intern/cycles/device/device_cuda.cpp

===================================================================

diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index d7ed7b4..2d40491 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);
 		}




More information about the Bf-blender-cvs mailing list