IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo module

cp_async

Defines the B200 bulk transfer atom: cp.async.bulk from global to shared memory, completing on an mbarrier.

CpAsyncBulk wraps cp.async.bulk.shared::cta.global.mbarrier::complete_tx::bytes: one thread copies a contiguous run of bytes, and the copy completes on the mbarrier the atom is built with, as transaction bytes the caller expects on it.

You can import these APIs from the layout.atoms.b200.cp_async module:

from layout.atoms.b200.cp_async import CpAsyncBulk, MBarrierTransactions

Structsโ€‹

  • โ€‹CpAsyncBulk: cp.async.bulk.shared::cta.global.mbarrier::complete_tx::bytes: one thread copies bytes contiguous bytes from global to shared memory, completing on barrier.
  • โ€‹MBarrierTransactions: An mbarrier counting transaction bytes: a copy completes when its bytes have arrived on the barrier the atom was built with.

Was this page helpful?