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: Hierarchial reduction for + operator on scalars. #3504

Merged
merged 2 commits into from
Oct 23, 2020

Conversation

rgayatri23
Copy link
Contributor

  1. Hierarchical reduction for scalars.
  2. Reorganized the incremental tests 12 and 13 to run the parallel_reduce incremental tests before the scratch memory tests.
  3. Incremental test level increased to 12.


#pragma omp simd reduction(+ : tmp_scratch [1:2])
ValueType vector_reduce = ValueType();
#pragma omp simd reduction(+ : vector_reduce)
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider renaming variable to scalar_reduce as this is for the scalar-type reduction.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it is confusing I guess. The reason I named it as vector_reduce is because the reduction is happening over the ThreadVectorRange. I can rename it if you push me strongly over it :-) .

@crtrott crtrott merged commit 2807359 into kokkos:develop Oct 23, 2020
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

4 participants