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

[HIP] Use shuffle for range reduction #3811

Merged
merged 1 commit into from
Feb 25, 2021
Merged

Conversation

Rombur
Copy link
Member

@Rombur Rombur commented Feb 24, 2021

Looking at our performance unit test, I noticed that Time RangePolicy Reduce is significantly slower than parallel_for. This only happens for RangePolicy, MDRange and Team are fine. Using shuffle for Range reduction when the datatype size is known at compile time, I get a speed up of a factor two. This brings the performance of parallel_reduce Range policy in line with parallel_for. This requires rocm 4.1 because of a register spill bug.

Copy link
Contributor

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@masterleinad
Copy link
Contributor

Retest this please.

1 similar comment
@masterleinad
Copy link
Contributor

Retest this please.

@dalg24
Copy link
Member

dalg24 commented Feb 25, 2021

There was no point in re-running. The failure was clearly unrelated

@dalg24 dalg24 merged commit b450682 into kokkos:develop Feb 25, 2021
@Rombur Rombur deleted the parallel_reduce branch March 2, 2021 19:09
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