From 350ff7c3e7a0a4b40de672f32c2ae477894c58ed Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 26 Jan 2019 16:19:56 -0500 Subject: [PATCH] Use guided scheduling mode in openmp for. Seems to be 5% better in my tests. --- src/engine/Engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/Engine.cpp b/src/engine/Engine.cpp index 7e3b32e3..666bcb7d 100644 --- a/src/engine/Engine.cpp +++ b/src/engine/Engine.cpp @@ -121,7 +121,7 @@ static void Engine_step(Engine *engine) { // Iterate modules int modulesLen = engine->modules.size(); - #pragma omp parallel for num_threads(engine->threadCount) schedule(dynamic) + #pragma omp parallel for num_threads(engine->threadCount) schedule(guided, 1) for (int i = 0; i < modulesLen; i++) { Module *module = engine->modules[i]; if (!module->bypass) {