diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-02-03 15:14:05 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-02-03 15:36:38 +0300 |
commit | 7ea7ce970c711da1916833a29314c6edfa085ea3 (patch) | |
tree | 471a17d98413f56593e92f6ef8952f0a25353892 /intern/cycles | |
parent | bb6f1d159acc0fa8f5df838e6d9bbff425781a9d (diff) |
Fix build error with CUDA 9.1 and compute capability 2.x.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/CMakeLists.txt b/intern/cycles/kernel/CMakeLists.txt index 5f10bdf2041..8f7bc7996a4 100644 --- a/intern/cycles/kernel/CMakeLists.txt +++ b/intern/cycles/kernel/CMakeLists.txt @@ -408,7 +408,7 @@ if(WITH_CYCLES_CUDA_BINARIES) endmacro() foreach(arch ${CYCLES_CUDA_BINARIES_ARCH}) - if(CUDA_VERSION MATCHES "90" AND ${arch} MATCHES "sm_2.") + if(CUDA_VERSION GREATER "89" AND ${arch} MATCHES "sm_2.") message(STATUS "CUDA binaries for ${arch} disabled, not supported by CUDA 9.") else() # Compile regular kernel |