Skip to content
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

Fix issue with OMP threading #1188

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Fix issue with OMP threading #1188

wants to merge 5 commits into from

Conversation

victorapm
Copy link
Contributor

This pull request improves the threading mechanism in hypre, with a focus on optimizing thread utilization for functions where the workload varies based on the problem size. A specific example is the hypre_BoomerAMGBuildExtPIInterpHost function, which now uses an optimized approach for determining the number of threads when the number of rows is small.

Key changes:

  • Added hypre_NumOptimalThreads for calculating the optimal number of threads based on the problem size.
  • Updated OpenMP parallel directives to use num_threads, ensuring efficient thread allocation.
  • Added detailed documentation for the threading utility functions.

Closes #1182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race condition in par_lr_interp.c if matrix is too small?
1 participant