diff options
author | Thomas Dinges <blender@dingto.org> | 2014-10-05 06:13:40 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-10-05 06:13:40 +0400 |
commit | a613290775c8571cb1d352256c65e95a50321000 (patch) | |
tree | fbe08a7c89a58c3d61690ee8deae7ac3817ee3a6 | |
parent | dde740bcd723f3fc149b44d06155396fb425ce4a (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.
-rw-r--r-- | intern/cycles/device/device_cuda.cpp | 4 |
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; |