9.7.14. Control Flow Instructions
The following PTX instructions and syntax are for controlling execution in a PTX program:
{}@bracallretexit
Pages
- 9.7.14.1. Control Flow Instructions: {} — Curly braces group instructions and delimit variable scope.
- 9.7.14.2. Control Flow Instructions: @ — Guard predicate for predicated execution of an instruction.
- 9.7.14.3. Control Flow Instructions: bra — Branch to a label, optionally conditional and optionally uniform.
- 9.7.14.4. Control Flow Instructions: brx.idx — Branch to a label selected by index from a
.branchtargetslist. - 9.7.14.5. Control Flow Instructions: call — Direct and indirect function calls, recording the return location.
- 9.7.14.6. Control Flow Instructions: ret — Return from a function to the instruction after the call.
- 9.7.14.7. Control Flow Instructions: exit — Terminate the executing thread.