diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-14 10:24:09 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-14 10:27:22 +0300 |
commit | 2af7637f207c420af602f43e514b1b20e7cfc718 (patch) | |
tree | 10508ea78dd73df4625119d29d00d98a81d23030 /extern | |
parent | d67535eea00b2d9f2b75e99d45f7f200bdc642d6 (diff) |
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).
Diffstat (limited to 'extern')
-rw-r--r-- | extern/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt index 632b68ef074..82b13cc114b 100644 --- a/extern/CMakeLists.txt +++ b/extern/CMakeLists.txt @@ -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) |