10.5. Special Registers: %nwarpid
%nwarpid
Number of warp identifiers.
Syntax (predefined)
ptx
.sreg .u32 %nwarpid;Description
A predefined, read-only special register that returns the maximum number of warp identifiers.
PTX ISA Notes
Introduced in PTX ISA version 2.0.
Target ISA Notes
%nwarpid requires sm_20 or higher.
Examples
ptx
mov.u32 %r, %nwarpid;