Cycles: Add option to directly link against CUDA libraries
The main purpose of such linking is to make Blender compatible with NVidia's debuggers and profilers which are doing some LD_PRELOAD magic to intercept some function calls. Such magic conflicts with our CUDA wrangler magic and causes segmentation faults. The option is disabled by default, so there's no affect on any of artists. In order to make Blender linked directly against CUDA library use the WITH_CUDA_DYNLOAD CMake option (it's marked as advanced).
This commit is contained in:
4
extern/CMakeLists.txt
vendored
4
extern/CMakeLists.txt
vendored
@@ -74,7 +74,9 @@ endif()
|
||||
|
||||
if(WITH_CYCLES OR WITH_COMPOSITOR OR WITH_OPENSUBDIV)
|
||||
add_subdirectory(clew)
|
||||
add_subdirectory(cuew)
|
||||
if(WITH_CUDA_DYNLOAD)
|
||||
add_subdirectory(cuew)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(WITH_MOD_BOOLEAN)
|
||||
|
||||
Reference in New Issue
Block a user