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

Add MULTI_REDUCE and HISTOGRAM Kernels #419

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

MrBurmark
Copy link
Member

@MrBurmark MrBurmark commented Feb 17, 2024

Add MULTI_REDUCE and HISTOGRAM Kernels

Add the MULTI_REDUCE and HISTOGRAM kernels which look at the performance for reducing into a runtime number of bins. In MULTI_REDUCE each iterate contributes to a single bin in the output like a histogram. HISTOGRAM allows us to have a comparison point with GPU performance libraries like cub and rocprim.

Which iterate maps to which bin is currently random, but this is not really a realistic use case. More realistic use cases are contiguous chunks of the domain mapping to the same bin, or even the entire domain mapping to a single bin.
The CPU parallel implementations are not optimized and simple use atomics into an array with no replication.

  • This PR is a feature
  • It does the following (modify list as needed):
    • Adds Multi-Reduce example at the request of me

@MrBurmark MrBurmark marked this pull request as draft February 17, 2024 00:29
@MrBurmark MrBurmark changed the title Draft: Add MULTI_REDUCE Kernel Add MULTI_REDUCE Kernel Feb 17, 2024
@MrBurmark MrBurmark force-pushed the feature/burmark1/multireduce branch 2 times, most recently from 0cccafc to 64a9461 Compare February 20, 2024 17:00
@MrBurmark MrBurmark changed the title Add MULTI_REDUCE Kernel Add MULTI_REDUCE and HISTOGRAM Kernel Feb 20, 2024
@MrBurmark MrBurmark changed the title Add MULTI_REDUCE and HISTOGRAM Kernel Add MULTI_REDUCE and HISTOGRAM Kernels Feb 20, 2024
This makes it easier to implement reproduction
with reducers
Add the MULTI_REDUCE kernel which looks at performance
for reducing into a runtime number of bins. In this
case each iterate contributes to a single bin.
This is meant to be in some ways a simplification
of the MULTI_REDUCE kernel and a way to compare
with the performance of histogram implemenations
in performance libraries like cub and rocprim
Base automatically changed from feature/burmark1/scan to develop March 29, 2024 20:29
@MrBurmark MrBurmark marked this pull request as ready for review March 29, 2024 20:36
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

2 participants