Control Flow Instructions Instructions
5 PTX instructions in this category - click any row for encoding, pseudocode, and full documentation.
| Mnemonic | Syntax | PTX Version | Summary |
|---|---|---|---|
| bra | @p bra{.uni} tgt; // tgt is a label | PTX ISA 1.0 | Continue execution at the target. |
| brx.idx | @p brx.idx{.uni} index, tlist; | PTX ISA 6.0 | Index into a list of possible destination labels, and continue execution from the chosen label. |
| call | // direct call to named function, func is a symbol call{.uni} (ret-param), func, (param-list); |
PTX ISA 1.0 | The call instruction stores the address of the next instruction, so execution can resume at that point after executing a ret instruction. |
| exit | exit; | PTX ISA 1.0 | Ends execution of a thread. Barriers exclusively waiting on arrivals from exited threads are always released. |
| ret | ret{.uni}; | PTX ISA 1.0 | Return execution to caller’s environment. |