diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-06-21 12:29:09 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-06-21 13:32:32 +0300 |
commit | a283333cd8eaaa163469ecbc1d878cd4e82217de (patch) | |
tree | ae4a08059087345a411aa0b0c8c74415cf418643 /intern/cycles/device/device_cuda.cpp | |
parent | d6313f47af8aa0156fa3beffad71cd689eadf397 (diff) |
Fix Cycles CUDA render errors with CUDA 9.2.
Work around what might be a compiler bug.
Diffstat (limited to 'intern/cycles/device/device_cuda.cpp')
-rw-r--r-- | intern/cycles/device/device_cuda.cpp | 2 |
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; |