Repository navigation
Conversation
miscco
reviewed
Sep 28, 2023
miscco
left a comment
Contributor
There was a problem hiding this comment.
This already looks great I have some general comments
- we should add nodiscard almost everywhere
- I would prefer if we used switches for the completion mechanisms
- Yoda conditions should be avoided
ahendriksen
commented
Sep 28, 2023
ahendriksen
left a comment
Contributor
Author
There was a problem hiding this comment.
Thanks for the comments. I have applied all but one suggested change. See unresolved below.
ahendriksen
commented
Sep 28, 2023
griwes
reviewed
Oct 13, 2023
ahendriksen
force-pushed
the
add-memcpy-async-cp-async-bulk-global-to-shared-support
branch
from
October 16, 2023 10:16
0e3676c to
df07787
Compare
ahendriksen
marked this pull request as ready for review
October 16, 2023 10:20
ahendriksen
requested review from
alliepiper and
ericniebler
and removed request for
a team
October 16, 2023 10:20
ahendriksen
commented
Oct 16, 2023
ahendriksen
left a comment
Contributor
Author
There was a problem hiding this comment.
Thanks for the comments. I have addressed them in follow-up commits. In addition, I found out that I dropped a __group argument in the pipeline interface as well. Fixed this.
Co-authored-by: Michael Schellenberger Costa <[email protected]>
Co-authored-by: Michael Schellenberger Costa <[email protected]>
Co-authored-by: Michael Schellenberger Costa <[email protected]>
And move variable declarations to device path.
It ignored the passed group parameter previously. Now it works correctly.
ahendriksen
force-pushed
the
add-memcpy-async-cp-async-bulk-global-to-shared-support
branch
from
October 17, 2023 10:02
df07787 to
3506ca5
Compare
It is now done in the memcpy_async_barrier and memcpy_async_pipeline function. This made the memcpy_async_dispatch function so empty, that I moved the mempcy_async_dispatch_device function body into it.
miscco
reviewed
Oct 17, 2023
miscco
approved these changes
Oct 19, 2023
1 of 2 tasks
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.
Description
Partially resolves #38 , #58
This PR adds support for 1D bulk TMA from global to shared memory in
memcpy_async.This PR adds:
memcpy_asyncfrom global to shared memory with 16-byte aligned pointers that synchronizes with a block-scoped shared memory barrier now makes use of TMA, i.e., thecp.async.bulkPTX instruction.This PR changes:
memcpy_asyncwith athread_scope_blockbarrier in remote cluster memory does not trap anymore, but falls back to synchronous copy mechanism.memcpy_asyncfrom global to shared memory with 16-byte aligned pointers that synchronizes with a block-scoped shared memory barrier used to issuecp.async.cgand now issuescp.async.bulkPTX instructions.Checklist