You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+19-16Lines changed: 19 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -108,19 +108,25 @@ if(NOT CMAKE_BUILD_TYPE)
108
108
endif()
109
109
110
110
option(_NBL_MEMORY_CONSUMPTION_CHECK_SKIP_"Turn it ON to bypass memory consumption test given _NBL_JOBS_AMOUNT_. Be aware you are doing it on your own risk of potential build failures!"OFF)
111
+
option(_NBL_JOBS_OVERRIDE_"Override jobs with safe bias if required to respect currently available memory"OFF)
math(EXPR_CI_NBL_JOBS_AMOUNT_"(${_NBL_AVAILABLE_PHYSICAL_MEMORY_} - 512)/(2*1024)") # override with safe bias, respect memory and don't take more then max processors we have
125
131
if(_CI_NBL_JOBS_AMOUNT_LESS_NBL_JOBS_AMOUNT_)
126
132
message(WARNING"Overriding _NBL_JOBS_AMOUNT_: \"${_NBL_JOBS_AMOUNT_}\" with \"${_CI_NBL_JOBS_AMOUNT_}\"")
@@ -129,7 +135,7 @@ if(NBL_CI_MODE)
129
135
endif()
130
136
endif()
131
137
132
-
set(_NBL_JOBS_AMOUNT_"${_NBL_JOBS_AMOUNT_}"CACHESTRING"Max jobs amount for the build to be invoked"FORCE)
option(NBL_UPDATE_GIT_SUBMODULE"Turn this ON to let CMake update all public submodules for you"ON)
341
-
option(NBL_FORCE_ON_UPDATE_GIT_SUBMODULE"Submodules will be updated with --force flag if NBL_FORCE_UPDATE_GIT_SUBMODULE is turned ON, use with caution - if there are any uncommited files in submodules' working tree they will be removed!"OFF)
342
-
option(NBL_SYNC_ON_UPDATE_GIT_SUBMODULE"Sync initialized submodule paths if NBL_FORCE_UPDATE_GIT_SUBMODULE is turned ON, this is useful when any submodule remote path got modified and you want to apply this modification to your local repository. Turning NBL_FORCE_ON_UPDATE_GIT_SUBMODULE implies this option"OFF)
343
-
option(NBL_UPDATE_GIT_SUBMODULE_INCLUDE_PRIVATE"Turn this ON to attempt to update private Nabla submodules"OFF)
0 commit comments