Skip to content

Added exclusive prefix sum to examples #1825

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

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

Conversation

SavannaSpayd
Copy link

Summary

  • This PR is a new example
  • It does the following (modify list as needed):
    • Adds a new exclusive prefix sum example at the request of Savanna Spayd

//----------------------------------------------------------------------------
std::cout << "\n Running C-style prefix sum...\n";

auto start = std::chrono::high_resolution_clock::now();
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Great idea. I've updated the example to use the RAJA timer instead of chrono.



//----------------------------------------------------------------------------
#if defined(RAJA_ENABLE_CUDA)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add HIP variant as well?

Copy link
Author

Choose a reason for hiding this comment

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

Unfortunately, I don't have a HIP-compatible environment. Since I wouldn’t be able to verify the results or debug any issues, I’ve opted to leave it out to avoid introducing untested code.

@SavannaSpayd
Copy link
Author

@artv3 Thanks for your feedback. I've implemented the requested change. Ready for another review.

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.

2 participants