Skip to content

Commit 1b383d9

Browse files
authored
Merge pull request #5903 from mvieth/clang17_default_none
Remove default(none) clause in some OpenMP for-loops
2 parents 95f8d3e + c1c907f commit 1b383d9

File tree

10 files changed

+2
-9
lines changed

10 files changed

+2
-9
lines changed

.ci/azure-pipelines/ubuntu-variety.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
POSSIBLE_VTK_VERSION=("9") \
3333
POSSIBLE_CMAKE_CXX_STANDARD=("14" "17" "20") \
3434
POSSIBLE_CMAKE_BUILD_TYPE=("None" "Debug" "Release" "RelWithDebInfo" "MinSizeRel") \
35-
POSSIBLE_COMPILER_PACKAGE=("g++" "g++-10" "g++-11" "g++-12" "g++-13" "clang" "clang-13" "clang-14" "clang-15" "clang-16" "clang-17") \
35+
POSSIBLE_COMPILER_PACKAGE=("g++" "g++-10" "g++-11" "g++-12" "g++-13" "clang libomp-dev" "clang-13 libomp-13-dev" "clang-14 libomp-14-dev" "clang-15 libomp-15-dev" "clang-16 libomp-16-dev" "clang-17 libomp-17-dev") \
3636
POSSIBLE_CMAKE_C_COMPILER=("gcc" "gcc-10" "gcc-11" "gcc-12" "gcc-13" "clang" "clang-13" "clang-14" "clang-15" "clang-16" "clang-17") \
3737
POSSIBLE_CMAKE_CXX_COMPILER=("g++" "g++-10" "g++-11" "g++-12" "g++-13" "clang++" "clang++-13" "clang++-14" "clang++-15" "clang++-16" "clang++-17") \
3838
CHOSEN_COMPILER=$[RANDOM%${#POSSIBLE_COMPILER_PACKAGE[@]}] \

.dev/docker/env/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ RUN apt-get update \
3737
libflann-dev \
3838
libglew-dev \
3939
libgtest-dev \
40+
libomp-dev \
4041
libopenni-dev \
4142
libopenni2-dev \
4243
libpcap-dev \

apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pipeline/impl/global_nn_recognizer_crh.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ pcl::rec_3d_framework::GlobalNNCRHRecognizer<Distance, PointInT, FeatureT>::reco
297297

298298
// clang-format off
299299
#pragma omp parallel for \
300-
default(none) \
301300
shared(VOXEL_SIZE_ICP_, cloud_voxelized_icp) \
302301
num_threads(omp_get_num_procs())
303302
// clang-format on

apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pipeline/impl/global_nn_recognizer_cvfh.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ pcl::rec_3d_framework::GlobalNNCVFHRecognizer<Distance, PointInT, FeatureT>::rec
456456

457457
// clang-format off
458458
#pragma omp parallel for \
459-
default(none) \
460459
shared(cloud_voxelized_icp, VOXEL_SIZE_ICP_) \
461460
num_threads(omp_get_num_procs())
462461
// clang-format on

apps/3d_rec_framework/include/pcl/apps/3d_rec_framework/pipeline/impl/local_recognizer.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ pcl::rec_3d_framework::LocalRecognitionPipeline<Distance, PointInT, FeatureT>::
371371

372372
// clang-format off
373373
#pragma omp parallel for \
374-
default(none) \
375374
shared(cloud_voxelized_icp) \
376375
schedule(dynamic,1) \
377376
num_threads(omp_get_num_procs())

common/src/range_image.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,6 @@ RangeImage::getOverlap (const RangeImage& other_range_image, const Eigen::Affine
865865
float max_distance_squared = max_distance*max_distance;
866866

867867
#pragma omp parallel for \
868-
default(none) \
869868
shared(max_distance_squared, other_range_image, pixel_step, relative_transformation, search_radius) \
870869
schedule(dynamic, 1) \
871870
reduction(+ : valid_points_counter) \

keypoints/include/pcl/keypoints/impl/harris_3d.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,6 @@ pcl::HarrisKeypoint3D<PointInT, PointOutT, NormalT>::refineCorners (PointCloudOu
506506
Eigen::Vector3f NNTp;
507507
constexpr unsigned max_iterations = 10;
508508
#pragma omp parallel for \
509-
default(none) \
510509
shared(corners) \
511510
firstprivate(nnT, NNT, NNTp) \
512511
num_threads(threads_)

keypoints/src/narf_keypoint.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ NarfKeypoint::calculateSparseInterestImage ()
478478

479479
//double interest_value_calculation_start_time = getTime ();
480480
#pragma omp parallel for \
481-
default(none) \
482481
shared(array_size, border_descriptions, increased_radius_squared, radius_reciprocal, radius_overhead_squared, range_image, search_radius, \
483482
surface_change_directions, surface_change_scores) \
484483
num_threads(parameters_.max_no_of_threads) \

tools/fast_bilateral_filter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ int
114114
batchProcess (const std::vector<std::string> &pcd_files, std::string &output_dir, float sigma_s, float sigma_r)
115115
{
116116
#pragma omp parallel for \
117-
default(none) \
118117
shared(output_dir, pcd_files, sigma_r, sigma_s)
119118
// Disable lint since this 'for' is part of the pragma
120119
// NOLINTNEXTLINE(modernize-loop-convert)

tools/normal_estimation.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ int
133133
batchProcess (const std::vector<std::string> &pcd_files, std::string &output_dir, int k, double radius)
134134
{
135135
#pragma omp parallel for \
136-
default(none) \
137136
shared(k, output_dir, pcd_files, radius)
138137
// Disable lint since this 'for' is part of the pragma
139138
// NOLINTNEXTLINE(modernize-loop-convert)

0 commit comments

Comments
 (0)