9.7.18.12.1. TensorCore 5th Generation Instructions: tcgen05.commit
This instruction is the sole member of section 9.7.18.12, TensorCore 5th Generation Async Synchronization Operations.
tcgen05.commit
Makes the mbarrier object track the completion of all prior async-tcgen05 operations initiated by the executing thread.
Syntax
tcgen05.commit.cta_group.completion_mechanism{.shared::cluster}{.multicast}.b64
[mbar] {, ctaMask};
tcgen05.commit.cta_group.completion_mechanism.sync_restrict::shared::read::mma::a{.shared::cluster}{.multicast}.b64
[mbar] {, ctaMask};
.completion_mechanism = { .mbarrier::arrive::one }
.cta_group = { .cta_group::1, .cta_group::2 }
.multicast = { .multicast::cluster{::16b, ::32b} }Description
The instruction tcgen05.commit is an asynchronous instruction which makes the mbarrier object, specified by the address operand mbar, track the completion of all the prior asynchronous tcgen05 operations, as listed in mbarrier based completion mechanism, initiated by the executing thread. Upon the completion of the tracked asynchronous tcgen05 operations, the signal specified by the .completion_mechanism is triggered by the system on the mbarrier object. This instruction accesses its mbarrier operand using generic-proxy.
The instruction tcgen05.commit.cta_group::1 tracks for the completion of all prior asynchronous tcgen05 operations with .cta_group::1 issued by the current thread. Similarly, the instruction tcgen05.commit.cta_group::2 tracks for the completion of all prior asynchronous tcgen05 operations with .cta_group::2 issued by the current thread.
All tcgen05 instructions within a kernel must specify the same value for the .cta_group qualifier.
The qualifier .mbarrier::arrive::one indicates that upon the completion of the prior asynchronous tcgen05 operation issued by the current thread, an arrive-on operation, with the count argument of 1, is signaled on the mbarrier object. The scope of the arrive-on operation is the cluster scope.
The optional qualifier .multicast::cluster allows signaling on the mbarrier objects of multiple CTAs in the cluster. Operand ctaMask specifies the CTAs in the cluster such that each bit position in the 16-bit or otherwise 32-bit ctaMask operand corresponds to the %cluster_ctarank of the destination CTA. The additional sub-qualifier ::16b or ::32b can be specified to correspond to the width of the ctaMask argument. By default, ctaMask is assumed to be of 16-bit width. The mbarrier signal is multicast to the same offset as mbar in the shared memory of each destination CTA.
If no state space is specified then Generic Addressing is used. If the address specified by mbar does not fall within the address window of .shared::cluster state space then the behavior is undefined.
The tcgen05.commit operation with .sync_restrict::shared::read::mma::a performs an arrive-on operation on the barrier upon completion of read of A matrix from shared memory for all prior tcgen05.mma operations. This does not signal the overall completion of any prior tcgen05.mma operations.
PTX ISA Notes
Introduced in PTX ISA version 8.6.
Qualifier .sync_restrict::shared::read::mma::a introduced in PTX ISA version 9.4.
Support for qualifiers .multicast::cluster::16b and .multicast::cluster::32b introduced in PTX ISA version 9.4.
Target ISA Notes
Supported on following architectures:
sm_100asm_101a(Renamed tosm_110afrom PTX ISA version 9.0)- And is supported on following family-specific architectures from PTX ISA version 8.8:
sm_100for higher in the same familysm_101for higher in the same family (Renamed tosm_110ffrom PTX ISA version 9.0)sm_110for higher in the same family
Qualifier .sync_restrict::shared::read::mma::a supported on following family-specific architectures:
sm_107for higher in the same family
Qualifier .multicast::cluster::32b supported on following family-specific architectures:
sm_107for higher in the same family
Examples
Example 1:
tcgen05.cp.cta_group::1.128x256b [taddr0], sdesc0;
tcgen05.commit.cta_group::1.mbarrier::arrive::one.b64 [mbarObj1];
loop:
mbarrier.try_wait.parity.b64 p, [mbarObj1], 0;
@!p bra loop;
Example 2:
tcgen05.mma.cta_group::2.kind::tf32 [taddr0], adesc, bdesc, idesc, p;
tcgen05.commit.shared::cluster.multicast::cluster::32b.cta_group::2.mbarrier::arrive::one.b64 [mbarObj2];
loop:
mbarrier.try_wait.parity.b64 p, [mbarObj2], 0;
@!p bra loop;
// Example 3:
tcgen05.mma.cta_group::2.kind::tf32 [taddr0], adesc, bdesc, idesc, p;
tcgen05.mma.cta_group::2.kind::tf32 [taddr1], adesc1, bdesc1, idesc1, p1;
tcgen05.commit.cta_group::2.mbarrier::arrive::one.sync_restrict::shared::read::mma::a.b64 [mbarObj2];