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
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,7 @@ 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
130
131
if(_CI_NBL_JOBS_AMOUNT_LESS_NBL_JOBS_AMOUNT_)
131
132
message(WARNING"Overriding _NBL_JOBS_AMOUNT_: \"${_NBL_JOBS_AMOUNT_}\" with \"${_CI_NBL_JOBS_AMOUNT_}\"")
0 commit comments