From 0f2391b255fe66f0c8bdf3249d4698a0fec2b680 Mon Sep 17 00:00:00 2001 From: "y.qiu" Date: Sun, 2 Mar 2025 12:47:11 +0800 Subject: [PATCH] omp optim --- grayMatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grayMatch.cpp b/grayMatch.cpp index 36126d5..85a3cd5 100644 --- a/grayMatch.cpp +++ b/grayMatch.cpp @@ -620,7 +620,7 @@ std::vector matchDownLevel(const std::vector &pyramids, std::vector levelMatched; auto count = static_cast(candidates.size()); -#pragma omp parallel for reduction(combine : levelMatched) +#pragma omp parallel for reduction(combine : levelMatched) schedule(dynamic) for (int index = 0; index < count; index++) { auto pose = candidates[ index ]; bool matched = true;