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

Fix header order issue with hip and vectorization #1815

Merged
merged 10 commits into from
Apr 8, 2025

Conversation

MrBurmark
Copy link
Member

Summary

Explicitly use RAJA_HIP_WAVESIZE in the tensor arch hip files to avoid a header order issue.

Design review (for API changes or additions---delete if unneeded)

On (date), we reviewed this PR. We discussed the design ideas:

  1. First idea or goal
  2. Second idea
  3. Third idea

This PR implements 1. and 3. It leaves out 2. for the following reasons

  • (impractical)
  • (too big)
  • (not a good idea anyway)

@MrBurmark MrBurmark requested a review from a team April 3, 2025 00:14
MrBurmark and others added 6 commits April 4, 2025 11:07
this file requires shfl_sync calls
This makes more sense as intrinsics depend on the device and not
on any of the policies.
Also fix the order of guards again multiple inclusion
@adayton1 adayton1 self-requested a review April 4, 2025 19:53
@MrBurmark
Copy link
Member Author

MrBurmark commented Apr 4, 2025

Manually testing my hacky way of building as CXX seems to build them as CXX and link them as HIP but then the executable can't find the hip runtime unless I load the module. So I'll probably take those tests out and make an issue for us to try to test them some other way.

@MrBurmark MrBurmark requested review from rhornung67 and a team April 8, 2025 16:13
@adayton1 adayton1 self-requested a review April 8, 2025 16:31
@MrBurmark MrBurmark merged commit 0d6634c into develop Apr 8, 2025
27 checks passed
@MrBurmark MrBurmark deleted the bugfix/burmark1/hip_warp_size_tensor branch April 8, 2025 21:27
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.

Header include order bug with hip+vectorization when compiling with hip inactive
3 participants