fix(omp): upped CppAD max num threads to 512

Also added more explicit error handeling to ensure that users know what to do when the thread count exceeds the compiled maximum
This commit is contained in:
2026-06-13 07:16:50 -04:00
parent 5ea884897d
commit 6bad4415b9
5 changed files with 160 additions and 25 deletions

View File

@@ -2,7 +2,7 @@ cppad_cmake_options = cmake.subproject_options()
cppad_cmake_options.add_cmake_defines({
'cppad_static_lib': 'true',
'cpp_mas_num_threads': '10',
'cppad_max_num_threads': '512',
'cppad_debug_and_release': 'false',
'include_doc': 'false',
'CMAKE_POSITION_INDEPENDENT_CODE': true