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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-06-21 12:29:09 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-06-21 13:32:32 +0300
commita283333cd8eaaa163469ecbc1d878cd4e82217de (patch)
treeae4a08059087345a411aa0b0c8c74415cf418643 /intern/cycles/device
parentd6313f47af8aa0156fa3beffad71cd689eadf397 (diff)
Fix Cycles CUDA render errors with CUDA 9.2.
Work around what might be a compiler bug.
Diffstat (limited to 'intern/cycles/device')
-rw-r--r--intern/cycles/device/device_cuda.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index 9d893ee61ad..bf5a95dd233 100644
--- a/intern/cycles/device/device_cuda.cpp
+++ b/intern/cycles/device/device_cuda.cpp
@@ -385,7 +385,7 @@ public:
VLOG(1) << "Found nvcc " << nvcc
<< ", CUDA version " << cuda_version
<< ".";
- const int major = cuda_version / 10, minor = cuda_version & 10;
+ const int major = cuda_version / 10, minor = cuda_version % 10;
if(cuda_version == 0) {
cuda_error_message("CUDA nvcc compiler version could not be parsed.");
return false;