forked from GafferHQ/dependencies
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alex Fuller
committed
Jul 25, 2024
1 parent
f7619b8
commit ad1ce52
Showing
4 changed files
with
48 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -120,7 +120,7 @@ | ||
mark_as_advanced(WITH_CYCLES_DEVICE_CUDA) | ||
|
||
option(WITH_CYCLES_CUDA_BINARIES "Build Cycles NVIDIA CUDA binaries" OFF) | ||
- set(CYCLES_CUDA_BINARIES_ARCH sm_30 sm_35 sm_37 sm_50 sm_52 sm_60 sm_61 sm_70 sm_75 sm_86 sm_89 compute_75 CACHE STRING "CUDA architectures to build binaries for") | ||
+ set(CYCLES_CUDA_BINARIES_ARCH sm_60 sm_61 sm_70 sm_75 sm_86 sm_89 compute_75 CACHE STRING "CUDA architectures to build binaries for") | ||
option(WITH_CYCLES_CUDA_BUILD_SERIAL "Build cubins one after another (useful on machines with limited RAM)" OFF) | ||
option(WITH_CUDA_DYNLOAD "Dynamically load CUDA libraries at runtime (for developers, makes cuda-gdb work)" ON) | ||
@@ -122,7 +122,7 @@ if(NOT APPLE AND NOT (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64")) | ||
|
||
option(WITH_CYCLES_CUDA_BINARIES "Build Cycles NVIDIA CUDA binaries" OFF) | ||
set(CYCLES_CUDA_BINARIES_ARCH | ||
- sm_30 sm_35 sm_37 sm_50 sm_52 sm_60 sm_61 sm_70 sm_75 sm_86 sm_89 compute_75 | ||
+ sm_60 sm_61 sm_70 sm_75 sm_86 sm_89 compute_75 | ||
CACHE STRING "CUDA architectures to build binaries for" | ||
) | ||
option(WITH_CYCLES_CUDA_BUILD_SERIAL "\ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -92,6 +92,9 @@ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS | ||
########################################################################### | ||
# Options. | ||
|
||
+# Use precompiled dependencies | ||
+option(WITH_CYCLES_DEPENDENCIES "Use precompiled dependencies" ON) | ||
+ | ||
# Library dependencies | ||
option(WITH_CYCLES_ALEMBIC "Build with Alembic procedural support" ON) | ||
option(WITH_CYCLES_EMBREE "Build with Embree support" ON) | ||
--- a/src/cmake/external_libs.cmake | ||
+++ b/src/cmake/external_libs.cmake | ||
@@ -67,7 +67,7 @@ else() | ||
endif() | ||
endif() | ||
|
||
-if(EXISTS ${_cycles_lib_dir}) | ||
+if(EXISTS ${_cycles_lib_dir} AND WITH_CYCLES_DEPENDENCIES) | ||
message(STATUS "Using precompiled libraries at ${_cycles_lib_dir}") | ||
|
||
_set_default(ALEMBIC_ROOT_DIR "${_cycles_lib_dir}/alembic") | ||
@@ -118,7 +118,11 @@ if(EXISTS ${_cycles_lib_dir}) | ||
# Ignore system libraries | ||
set(CMAKE_IGNORE_PATH "${CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES};${CMAKE_SYSTEM_INCLUDE_PATH};${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES};${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES}") | ||
else() | ||
- message(STATUS "No precompiled libraries found at ${_cycles_lib_dir}") | ||
+ if(NOT WITH_CYCLES_DEPENDENCIES) | ||
+ message(STATUS "Not using precompiled libraries") | ||
+ else() | ||
+ message(STATUS "No precompiled libraries found at ${_cycles_lib_dir}") | ||
+ endif() | ||
message(STATUS "Attempting to use system libraries instead") | ||
unset(_cycles_lib_dir) | ||
endif() |