9.7.15.16.15. Parallel Synchronization and Communication Instructions: mbarrier.complete_tx
mbarrier.complete_tx
Performs complete-tx operation on the mbarrier object.
Syntax
mbarrier.complete_tx{.sem.scope}{.space}.b64 [addr], txCount;
.sem = { .relaxed }
.scope = { .cta, .cluster }
.space = { .shared{::cta} }
mbarrier.complete_tx{.sem.scope}{.space}{.multicast}.b64 [addr], txCount {, ctaMask};
.sem = { .relaxed }
.scope = { .cta, .cluster }
.space = { .shared::cluster }
.multicast = { .multicast::cluster::32b }Description
A thread executing mbarrier.complete_tx performs a complete-tx operation on the mbarrier object at the location specified by the address operand addr. The 32-bit unsigned integer operand txCount specifies the completeCount argument to the complete-tx operation.
mbarrier.complete_tx does not involve any asynchronous memory operations and only simulates the completion of an asynchronous memory operation and its side effect of signaling to the mbarrier object.
If no state space is specified then Generic Addressing is used. If the address specified by addr does not fall within the address window of .shared::cta or .shared::cluster state space then the behavior is undefined.
Supported addressing modes for operand addr are as described in Addresses as Operands. Alignment for operand addr is as described in the Size and alignment of mbarrier object.
The optional .sem qualifier specifies a memory synchronizing effect as described in the Memory Consistency Model. The .relaxed qualifier does not provide any memory ordering semantics and visibility guarantees.
The optional .scope qualifier indicates the set of threads that directly observe the memory synchronizing effect of this operation, as described in the Memory Consistency Model.
Qualifiers .sem and .scope must be specified together.
The optional qualifier .multicast::cluster::32b allows performing the complete-tx operation on the mbarrier object from shared memory of multiple CTAs in the cluster. The operand txCount specifies the completeCount argument for the complete-tx operation. Operand ctaMask specifies the intended target CTAs in the cluster; each bit position in the 32-bit ctaMask operand corresponds to the %cluster_ctarank of the target CTA. For example, ctaMask with value 0x1 performs the operation on CTA with rank 0, whereas ctaMask with value 0x3 performs the operation on CTAs with rank 0 and 1. The complete-tx operation is multicast to the same CTA-relative offset as addr in the shared memory of each target CTA.
PTX ISA Notes
Introduced in PTX ISA version 8.0.
Support for .multicast::cluster::32b qualifier introduced in PTX ISA version 9.4.
Target ISA Notes
Requires sm_90 or higher.
Qualifier .multicast::cluster::32b is supported on the following family-specific architectures:
sm_107for higher in the same family
Examples
mbarrier.complete_tx.b64 [addr], 32;
mbarrier.complete_tx.shared.b64 [mbarObj1], 512;
mbarrier.complete_tx.relaxed.cta.b64 [addr2], 32;
mbarrier.complete_tx.relaxed.cta.shared::cluster.multicast::cluster::32b.b64 [addr3], 512, mask;