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
path: root/intern
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-10-05 06:13:40 +0400
committerThomas Dinges <blender@dingto.org>2014-10-05 06:13:40 +0400
commita613290775c8571cb1d352256c65e95a50321000 (patch)
treefbe08a7c89a58c3d61690ee8deae7ac3817ee3a6 /intern
parentdde740bcd723f3fc149b44d06155396fb425ce4a (diff)
Cycles / CUDA: Workaround to make sm_52 (Maxwell) cards work.
* sm_52 can run a sm_50 kernel, so tell runtime detection to use that until we build a dedicated sm_52 kernel.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/device/device_cuda.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index 5de2efab8be..bd265f0fdad 100644
--- a/intern/cycles/device/device_cuda.cpp
+++ b/intern/cycles/device/device_cuda.cpp
@@ -202,6 +202,10 @@ public:
/* compute cubin name */
int major, minor;
cuDeviceComputeCapability(&major, &minor, cuDevId);
+
+ /* workaround to make sm_52 cards work, until we bundle kernel */
+ if(major == 5 && minor == 2)
+ minor = 0;
/* attempt to use kernel provided with blender */
string cubin;