Skip to content

Commit

Permalink
Set omp to use dynamic chunks of fixed size
Browse files Browse the repository at this point in the history
  • Loading branch information
haider8645 committed Dec 14, 2024
1 parent 286e555 commit 49e82f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/EnvironmentXYZTheta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,7 @@ void EnvironmentXYZTheta::GetSuccs(int SourceStateID, vector< int >* SuccIDV, ve
//due to the different sanity checks
//the chunk size (5) was chosen to reduce dynamic scheduling overhead.
//**No** tests have been done to verify whether 5 is a good value or not!
//#pragma omp parallel for schedule(dynamic, 5)
#pragma omp parallel for schedule(auto)
#pragma omp parallel for schedule(dynamic, 5)
for(size_t i = 0; i < motions.size(); ++i)
{
//check that the motion is traversable (without collision checks) and find the goal node of the motion
Expand Down

0 comments on commit 49e82f4

Please sign in to comment.