Skip to content

Commit

Permalink
Merge pull request #6197 from larshg/FixROROpenMP
Browse files Browse the repository at this point in the history
Fix Radius Outlier Removal Openmp predetermined shared variables.
  • Loading branch information
larshg authored Dec 10, 2024
2 parents 7a0c740 + 020b7fc commit 3fcf65e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions filters/include/pcl/filters/impl/radius_outlier_removal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ pcl::RadiusOutlierRemoval<PointT>::applyFilterIndices (Indices &indices)
if (input_->is_dense)
{
#pragma omp parallel for \
default(none) \
schedule(dynamic,64) \
firstprivate(nn_indices, nn_dists) \
shared(nn_dists_max, mean_k, to_keep) \
shared(to_keep) \
num_threads(num_threads_)
for (ptrdiff_t i = 0; i < static_cast<ptrdiff_t>(indices_->size()); i++)
{
Expand Down Expand Up @@ -130,7 +129,6 @@ pcl::RadiusOutlierRemoval<PointT>::applyFilterIndices (Indices &indices)
else
{
#pragma omp parallel for \
default(none) \
schedule(dynamic, 64) \
firstprivate(nn_indices, nn_dists) \
shared(to_keep) \
Expand Down

0 comments on commit 3fcf65e

Please sign in to comment.