-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL][HIP] Add basic HIP atomics #8003
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
Conversation
/verify with intel/llvm-test-suite#1510 |
Co-authored-by: Steffen Larsen <[email protected]>
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.
Good stuff! 🚀
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.
A couple of comments needed, but otherwise FE changes LGTM.
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.
Clang changes look ok to me.
/verify with intel/llvm-test-suite#1510 |
Faster than hipcc ... SYCL ================================================= |
@zjin-lcf wow nice. Note that AtomicFMin and AtomicFMax are not included in this PR, which is why the tests are failing. |
@bader the LLVM test suite failures are all XPASSes, so I think this can be merged |
Is there something missing in ROCm for not including FMin/FMax ? |
No it is just lower priority than the FAdd etc. I will be adding FMin, FMax as well as some other atomics as soon as I have finished some other stuff I am working on |
I see these failures: Failed Tests (4): lld: error: undefined hidden symbol: __spirv_AtomicFMaxEXT(float AS1*, __spv::Scope::Flag, __spv::MemorySemanticsMask::Flag, float)
error: command failed with exit status: 1 These seem to be related to the change. NOTE: Unfortunately, "/verify with" doesn't cover AMDGPU, so there is no safe way to test both changes (compiler + test) in CI. |
I tried to run atomic tests. Can you please run them again ? Thanks. https://github.com/zjin-lcf/HeCBench/tree/master/atomicCAS-sycl |
|
@hdelan I tried to run the benchmark The option |
One more thing. We need to merge these changes together with test changes, but the test PR is not reviewed yet. |
@zjin-lcf So the fast gfx90a+ atomics are not part of this PR. They will be enabled in a future PR, will keep you posted Also |
I see. I am also puzzled by the issue (#7252). |
@bader Can we get the test suite changes reviewed? |
@bader the test suite changes have been reviewed so I think this is safe to merge |
Adding support for basic atomic operations for HIP AMD backend.