Skip to content

Add cp.async.bulk multi-direction support to cuda::memcpy_async - #502

Closed
ahendriksen wants to merge 3 commits into
NVIDIA:mainfrom
ahendriksen:add-memcpy_async-cp-async-bulk-remaining-directions
Closed

ahendriksen wants to merge 3 commits into
NVIDIA:mainfrom
ahendriksen:add-memcpy_async-cp-async-bulk-remaining-directions

Conversation

@ahendriksen

Copy link
Copy Markdown
Contributor

Description

Partially resolves #38 , #58

This PR adds support for 1D bulk TMA in memcpy_async for the directions

  • shared to global memory
  • shared to remote cluster shared memory

This PR adds:

  • A mechanism to dispatch to cp.async.bulk instructions for afore-mentioned copy directions.

What is not yet added:

  • a cluster-scope barrier that can be used with shared -> remote shared memory transfers.
  • async_bulk_group support in cuda::pipeline to support shared -> global transfers.

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@ahendriksen

Copy link
Copy Markdown
Contributor Author

Closing for now.

@bernhardmgruber

Copy link
Copy Markdown
Contributor

Closing for now.

@ahendriksen what was the reason this work was abandoned?

@ahendriksen

Copy link
Copy Markdown
Contributor Author

@ahendriksen what was the reason this work was abandoned?

IIRC, there were bugs and or performance downsides to checking if an address was distributed shared memory. Adding this feature would either break when the pointer was pointing to remote shared memory and/or it would add runtime dispatching to code that only used local shared memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[EPIC]: 1D TMA/BULK exposure via memcpy_async

2 participants