Skip to content

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