fabric.wait GPU Virtual ISA NVIDIA
Fabric Instructions
fabric.wait.sync_restrict::read N;
fabric.wait.sync_restrict::read causes the executing thread to wait until only N or fewer of the most recent fabric submit groups are pending and all the prior fabric submit groups committed by the executing thread are complete.
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. A row marked deprecated is a spelling NVIDIA's document still lists but marks deprecated.
| Syntax | Data Types | State Space(s) | Modifiers | Min. Target | Description |
|---|---|---|---|---|---|
| fabric.wait.sync_restrict::read N; | sm_100 | fabric.wait.sync_restrict::read causes the executing thread to wait until only N or fewer of the most recent fabric submit groups are pending and all the prior fabric submit groups committed by the… (see the official PTX ISA docs for the full description) | |||
| fabric.wait.sync_restrict::reads; deprecated | sm_100 | Fabric-read completion mechanism instruction fabric.wait waits on the local shared memory (.shared::cta) reads of submitted fabric operations. (see the official PTX ISA docs for the full description) |
Operands
At a Glance
Related
More in Fabric Instructions
Reference
NVIDIA PTX ISA
Description
fabric.wait.sync_restrict::read causes the executing thread to wait until only N or fewer of
the most recent fabric submit groups are pending and all the prior fabric submit groups committed
by the executing thread are complete. For example, when N is 0, the executing thread waits on all
the prior fabric submit groups to complete. Operand N is an integer constant.
Instruction fabric.submit.commit_group creates a fabric submit group. Waiting on a fabric submit
group enables overwriting the local shared memory (.shared::cta) that the fabric operations in
that group read, before the fabric operations complete.
Examples
// Two fabric.try_put operations, reading from buf0 and buf1, are issued, each in its own
// fabric submit group.
fabric.try_put.async.shared::cta.mbarrier::complete_tx::16B.mbarrier::report::fabric.relaxed.sys.b128 [dstLeId, dstLeOffData0], [buf0], 0x100, [mbar];
fabric.submit.commit_group;
fabric.try_put.async.shared::cta.mbarrier::complete_tx::16B.mbarrier::report::fabric.relaxed.sys.b128 [dstLeId, dstLeOffData1], [buf1], 0x100, [mbar];
fabric.submit.commit_group;
// (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.