From cd6a4295919424506545d1aee1ba6913978424f0 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 c8aa7980f17..687dbd918d9 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -233,7 +233,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 ae7e316dd74..e3a85a10215 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;