Cycles: add initial CUDA 10.0 support, but only recommend use for Turing cards.
[blender.git] / intern / cycles / CMakeLists.txt
index 3028b7c67d318a71427456432304d907c9404b4a..8f0d838e881aa910af49c08b3d3d03f2f96f053f 100644 (file)
@@ -315,6 +315,13 @@ if(WITH_CYCLES_CUDA_BINARIES AND (NOT WITH_CYCLES_CUBIN_COMPILER))
        endif()
 endif()
 
+# NVRTC gives wrong rendering result in CUDA 10.0, so we must use NVCC.
+if(WITH_CYCLES_CUDA_BINARIES AND WITH_CYCLES_CUBIN_COMPILER)
+       if(${CUDA_VERSION} VERSION_GREATER_EQUAL 10.0)
+               message(STATUS "cycles_cubin_cc not supported for CUDA 10.0+, using nvcc instead.")
+               set(WITH_CYCLES_CUBIN_COMPILER OFF)
+       endif()
+endif()
 
 # Subdirectories