Conversation
Formerly know as CUDAKernels.jl
Member
Author
|
References:
Notes:
|
Member
Author
|
@tkf if you have some time/interest in looking over my implementation. I intend to replace AtomicxCuda. |
Member
Author
|
So a significant difference between whereas Base agrees with Atomix. |
1f8cfa3 to
419ff9b
Compare
This was referenced Jun 26, 2023
Member
Author
|
I won't get to this soon, but we need to look at the impact of JuliaLang/julia#54707 |
5d585c4 to
c850163
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Just blindly using UnsafeAtomicsLLVM sadly doesn't work
since LLVM doesn't understand CUDA atomics...
Uses most of #1644 to implement Atomicx.jl properly.
casforsize(T) < 4Atomix.swap!by usingatomic_exchangeAtomix.modify!by using hardware implementation of common functionsld.volatile.global.u16 %rs1, [%rd2];take AS into account, needed for shmem correctness.