File tree 1 file changed +0
-8
lines changed
cpp/open3d/t/pipelines/kernel
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -262,18 +262,12 @@ static void ComputePoseDopplerICPKernelCPU(
262
262
// and 28th as inlier_count.
263
263
std::vector<scalar_t > A_1x29 (29 , 0.0 );
264
264
265
- #ifdef _WIN32
266
265
std::vector<scalar_t > zeros_29 (29 , 0.0 );
267
266
A_1x29 = tbb::parallel_reduce (
268
267
tbb::blocked_range<int >(0 , n), zeros_29,
269
268
[&](tbb::blocked_range<int > r, std::vector<scalar_t > A_reduction) {
270
269
for (int workload_idx = r.begin (); workload_idx < r.end ();
271
270
++workload_idx) {
272
- #else
273
- scalar_t *A_reduction = A_1x29.data ();
274
- #pragma omp parallel for reduction(+ : A_reduction[:29]) schedule(static) num_threads(utility::EstimateMaxThreads())
275
- for (int workload_idx = 0 ; workload_idx < n; ++workload_idx) {
276
- #endif
277
271
scalar_t J_G[6 ] = {0 }, J_D[6 ] = {0 };
278
272
scalar_t r_G = 0 , r_D = 0 ;
279
273
@@ -306,7 +300,6 @@ static void ComputePoseDopplerICPKernelCPU(
306
300
A_reduction[28 ] += 1 ;
307
301
}
308
302
}
309
- #ifdef _WIN32
310
303
return A_reduction;
311
304
},
312
305
// TBB: Defining reduction operation.
@@ -317,7 +310,6 @@ static void ComputePoseDopplerICPKernelCPU(
317
310
}
318
311
return result;
319
312
});
320
- #endif
321
313
322
314
for (int i = 0 ; i < 29 ; ++i) {
323
315
global_sum[i] = A_1x29[i];
You can’t perform that action at this time.
0 commit comments