-
Notifications
You must be signed in to change notification settings - Fork 104
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
base: develop
Are you sure you want to change the base?
Conversation
examples/prefix_sum.cpp
Outdated
//---------------------------------------------------------------------------- | ||
std::cout << "\n Running C-style prefix sum...\n"; | ||
|
||
auto start = std::chrono::high_resolution_clock::now(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a RAJA timer that might be useful here. See example:
https://github.com/LLNL/RAJA/blob/develop/exercises/permuted-layout-batch-matrix-multiply_solution.cpp#L105
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
@artv3 Thanks for your feedback. I've implemented the requested change. Ready for another review. |
Summary