cp.async.mbarrier.arrive GPU Virtual ISA NVIDIA
cp.async.mbarrier.arrive Parallel Synchronization and Communication Instructions
cp.async.mbarrier.arrive{.noinc}{.shared{::cta}}.b64 [addr];
Causes an arrive-on operation to be triggered by the system on the mbarrier object upon the completion of all prior cp.async operations initiated by the executing thread.
Encoding
PTX is a virtual instruction set. It has no single, stable native
binary encoding - the compiler lowers this instruction to different native machine
code depending on the selected NVIDIA target architecture (compute capability).
This page intentionally shows no bit-diagram; see the target/version requirements
below for what governs how this instruction compiles.
Syntax Forms
One mnemonic covers many type / state-space / scope / modifier combinations - each row below is an independently valid form.
| Syntax | Data Types | State Space(s) | Modifiers | Min. Target | Description |
|---|---|---|---|---|---|
| cp.async.mbarrier.arrive{.noinc}{.shared{::cta}}.b64 [addr]; | sm_80 | Causes an arrive-on operation to be triggered by the system on the mbarrier object upon the completion of all prior cp.async operations initiated by the executing thread. (see the official PTX ISA docs for the full description) |
Operands
At a Glance
Related
More in Parallel Synchronization and Communication Instructions
Reference
NVIDIA PTX ISA
Description
Causes an arrive-on operation to be
triggered by the system on the mbarrier object upon the completion of all prior cp.async operations initiated by the
executing thread. The mbarrier object is at the location specified by the operand addr. The arrive-on operation is
asynchronous to execution of cp.async.mbarrier.arrive.
When.noinc modifier is not specified, the pending count of the mbarrier object is incremented
by 1 prior to the asynchronous arrive-on operation. This
results in a zero-net change for the pending count from the asynchronous arrive-on operation
during the current phase. (see the official PTX ISA docs for the full description)
Examples
// Example 1: no .noinc
mbarrier.init.shared.b64 [shMem], threadCount;
....
cp.async.ca.shared.global [shard1], [gbl1], 4;
cp.async.cg.shared.global [shard2], [gbl2], 16;
....
// (truncated - see the official PTX ISA docs for the full example)Reproduced from NVIDIA's official PTX ISA documentation for technical accuracy.
Sources
-
Parallel Thread Execution ISA ↗
- NVIDIA Corporation, Chapter 9 - Instruction Set
Deep-linked directly to this instruction's section.