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
+11-5Lines changed: 11 additions & 5 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)
0 commit comments