From e85d1aa797e8a73620afc0aed1d8fa36eeabaa6b Mon Sep 17 00:00:00 2001 From: Shaun Edwards Date: Fri, 9 Feb 2018 21:37:30 -0600 Subject: [PATCH] Changed for scheduling to static and fixed the number of threads for color conversion --- src/image.cpp | 2 +- src/proc/align.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/image.cpp b/src/image.cpp index fd17b14ef91..389789688f1 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -234,7 +234,7 @@ namespace librealsense #ifdef __SSSE3__ auto src = reinterpret_cast(s); auto dst = reinterpret_cast<__m128i *>(d[0]); - #pragma omp parallel for + #pragma omp parallel for num_threads(4) for(int i = 0; i < n/16; i++) { const __m128i zero = _mm_set1_epi8(0); diff --git a/src/proc/align.cpp b/src/proc/align.cpp index d5ca98e14ce..a44c7d7c3ee 100644 --- a/src/proc/align.cpp +++ b/src/proc/align.cpp @@ -17,7 +17,7 @@ namespace librealsense const rs2_intrinsics& other_intrin, GET_DEPTH get_depth, TRANSFER_PIXEL transfer_pixel) { // Iterate over the pixels of the depth image -#pragma omp parallel for schedule(dynamic) +#pragma omp parallel for schedule(static) for (int depth_y = 0; depth_y < depth_intrin.height; ++depth_y) { int depth_pixel_index = depth_y * depth_intrin.width;