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

OpenMPTarget team_policy reduce fixes for init/join reductions #4521

Merged
merged 4 commits into from
Nov 18, 2021

Conversation

rgayatri23
Copy link
Contributor

@rgayatri23 rgayatri23 commented Nov 10, 2021

The PR fixes the compile time issues arising in kokkos-kernels with OpenMPTarget backend. #4500

Copy link
Contributor

@lucbv lucbv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks good to me but I would clean it up a little.

core/src/OpenMPTarget/Kokkos_OpenMPTarget_Parallel.hpp Outdated Show resolved Hide resolved
core/src/OpenMPTarget/Kokkos_OpenMPTarget_Parallel.hpp Outdated Show resolved Hide resolved
core/src/OpenMPTarget/Kokkos_OpenMPTarget_Parallel.hpp Outdated Show resolved Hide resolved
core/src/OpenMPTarget/Kokkos_OpenMPTarget_Parallel.hpp Outdated Show resolved Hide resolved
core/src/OpenMPTarget/Kokkos_OpenMPTarget_Parallel.hpp Outdated Show resolved Hide resolved
core/src/OpenMPTarget/Kokkos_OpenMPTarget_Parallel.hpp Outdated Show resolved Hide resolved
int max_active_teams = OpenMPTargetExec::MAX_ACTIVE_THREADS / team_size;
const auto nteams =
league_size < max_active_teams ? league_size : max_active_teams;
const auto nteams = league_size;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to change this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes the nteams should be equal to league_size . No need to include the max_active_teams in this case.

@dalg24 dalg24 merged commit 121fc7a into kokkos:develop Nov 18, 2021
@rgayatri23 rgayatri23 deleted the OpenMPTarget_TeamPolicyReduce branch March 24, 2023 22:03
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.

None yet

3 participants