-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ParallelUnbalancedWork for efficient unbalanced parallel loops #7787
Merged
+546
−113
Commits on Nov 28, 2024
-
Create method for processing efficient unbalanced parallel loops
- Introduced the `ParallelUnbalancedWork` class to efficiently execute parallel loops over a range of integers, handling unbalanced workloads. - Added static `For` methods to support parallel execution with and without thread-local data, including initialization and finalization functions. - Utilized thread pooling and a shared counter (`SharedCounter`) to distribute iterations among threads dynamically. - Implemented internal classes (`BaseData`, `Data`, and `InitProcessor<TLocal>`) to manage shared state and thread synchronization. - Aimed to optimize performance in scenarios where the workload per iteration is uneven, ensuring better resource utilization and reduced execution time.
Configuration menu - View commit details
-
Copy full SHA for 03ddd2b - Browse repository at this point
Copy the full SHA 03ddd2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b691f1 - Browse repository at this point
Copy the full SHA 2b691f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 942a2a5 - Browse repository at this point
Copy the full SHA 942a2a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7f169a - Browse repository at this point
Copy the full SHA c7f169aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58fbcf6 - Browse repository at this point
Copy the full SHA 58fbcf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6224dc9 - Browse repository at this point
Copy the full SHA 6224dc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f5f328 - Browse repository at this point
Copy the full SHA 8f5f328View commit details -
Configuration menu - View commit details
-
Copy full SHA for 061956a - Browse repository at this point
Copy the full SHA 061956aView commit details
Commits on Dec 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 842a82b - Browse repository at this point
Copy the full SHA 842a82bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a3b349 - Browse repository at this point
Copy the full SHA 0a3b349View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84aec6b - Browse repository at this point
Copy the full SHA 84aec6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f18e10b - Browse repository at this point
Copy the full SHA f18e10bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bff372 - Browse repository at this point
Copy the full SHA 7bff372View commit details -
Configuration menu - View commit details
-
Copy full SHA for b84d6e7 - Browse repository at this point
Copy the full SHA b84d6e7View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.