Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

PTX Lexer Token Table (178 entries)

Addresses apply to ptxas v13.0.88 (CUDA 13.0). VA base 0x400000 (non-PIE).

The PTX front-end token identifiers. token_id is the lexer's internal token value (decimal and hex). kind distinguishes a single keyword/symbol (single) from a modifier-group(N) — a token id that the grammar accepts as any of N spellings (e.g. the integer-literal group). Angle-bracket entries (<identifier>, <int-literal>) are token classes, not literal keywords.

token_id (dec)token_id (hex)keyword(s) / group memberskind
2580x102<identifier>single
2590x103<dotted-identifier>single
2600x104callsingle
2610x105``single
2620x106<int-literal>|<hex-int-literal>|<bin-int-literal>|<int-literal>modifier-group(4)
2640x108WARP_SZsingle
2650x109<<single
2660x10a>>single
2670x10b==single
2680x10c!=single
2690x10d<=single
2700x10e>=single
2710x10f.externsingle
2720x110.visiblesingle
2730x111.weaksingle
2740x112.commonsingle
2750x113.s8|.s16|.s32|.s64|.s16x2|.u8|.u16|.u32|.u64|.u16x2|.e4m3|.e5m2|.e4m3x2|.e5m2x2|.e4m3x4|.e5m2x4|.e2m1x2|.e2m1x4|.e2m3x2|.e3m2x2|.e2m3x4|.e3m2x4|.ue8m0x2|.ue8m0x4|.f16|.f16x2|.f32|.f32x2|.f64|.b8|.b16|.b32|.b64|.b128|.pred|.texref|.samplerref|.surfrefmodifier-group(38)
2760x114.entrysingle
2770x115.FORCE_INLINEsingle
2780x116.protosingle
2790x117.maxnregsingle
2800x118.maxntidsingle
2810x119.maxnctapersmsingle
2820x11a.minnctapersmsingle
2830x11b.reqntidsingle
2840x11c.reqnctaperclustersingle
2850x11d.explicitclustersingle
2860x11e.maxclusterranksingle
2870x11f.blocksareclusterssingle
2880x120.rn|.rna|.rm|.rp|.rz|.rs|.rni|.rmi|.rpi|.rzimodifier-group(10)
2890x121.finite|.infinite|.number|.notanumber|.normal|.subnormalmodifier-group(6)
2900x122.ca|.cg|.cs|.lu|.cv|.wb|.wt|.inv|.invallmodifier-group(9)
2910x123.L1|.L2|.tensormapmodifier-group(3)
2920x124.clamp|.wrap|.trap|.zeromodifier-group(4)
2930x125.shr7|.shr15modifier-group(2)
2940x126.posingle
2950x127.f4e|.b4e|.rc8|.ecl|.ecr|.rc16modifier-group(6)
2960x128.up|.bfly|.idxmodifier-group(3)
2970x129.en|.dismodifier-group(2)
2980x12a.randsingle
2990x12b.footprintsingle
3000x12c.coarsesingle
3010x12d.regsingle
3020x12e.const|.const[0]|.const[1]|.const[10]modifier-group(3)
3030x12f.globalsingle
3040x130.localsingle
3050x131.paramsingle
3060x132.sharedsingle
3070x133.texsingle
3080x134.1d_buffer|.a1d|.a2d|.cube|.acube|.2dms|.a2dmsmodifier-group(7)
3090x135.width|.height|.depth|.channel_data_type|.channel_order|.normalized_coords|.filter_mode|.addr_mode_0|.addr_mode_1|.addr_mode_2|.force_unnormalized_coords|.array_size|.num_mipmap_levels|.num_samples|.memory_layoutmodifier-group(15)
3100x136.1d|.2d|.3d|.4d|.5dmodifier-group(5)
3110x137.shared::ctasingle
3120x138.shared::clustersingle
3130x139.param::entrysingle
3140x13a.param::funcsingle
3150x13b0F00000000single
3160x13c<float-literal>|<float-literal>|<float-literal>|0D0000000000000000modifier-group(4)
3170x13d&&single
3180x13e||single(indexed/multi-literal)
3190x13f.ptrsingle
3200x140.eq|.ne|.lt|.le|.gt|.ge|.lo|.ls|.hi|.hs|.num|.nan|.equ|.neu|.ltu|.leu|.gtu|.geumodifier-group(18)
3220x142.and|.or|.xormodifier-group(3)
3230x143.cas|.exch|.inc|.dec|.safeaddmodifier-group(5)
3240x144.add|.min|.max|.maxabs|.popcmodifier-group(5)
3250x145.unisingle
3260x146.unanimous|.conv|.divmodifier-group(3)
3270x147.syncsingle
3280x148.alignedsingle
3290x149.all|.anymodifier-group(2)
3300x14a.dualsingle
3310x14b.closesingle
3320x14c_single
3330x14d.funcsingle
3340x14e.alignsingle
3350x14f.allocnosingle
3360x150.retaddr_allocnosingle
3370x151.cta|.cluster|.gl|.gpu|.sysmodifier-group(5)
3380x152.v2|.v4modifier-group(2)
3390x153.version0.0
3400x154.targetsingle
3410x155.address_sizesingle
3420x156.scratchsingle
3430x157@@DWARFsingle
3440x158.sectionsingle
3450x159.filesingle
3460x15a.locsingle
3470x15b.pragmasingle
3480x15c@progbitssingle
3490x15d.aliassingle
3500x15einlined_atsingle
3510x15ffunction_namesingle
3520x160.ballotsingle
3530x161.approxsingle
3540x162.relusingle
3550x163.ftzsingle
3560x164.noftzsingle
3570x165.satsingle
3580x166.satfinitesingle
3590x167.ccsingle
3600x168.shiftamtsingle
3610x169.volatile|.relaxed|.acquire|.release|.acq_rel|.scmodifier-group(6)
3620x16a.mmiosingle
3630x16b.ncsingle
3640x16c.MACROsingle
3650x16d.NaNsingle
3660x16e.bulk_group|.mbarrier|.mbarrier::arrive::one|.mbarrier::complete_tx::bytes|.mbarrier::meet_tx::bytesmodifier-group(5)
3670x16f.downsingle
3680x170.no_membermask_overlapsingle
3690x171.branchtargetssingle
3700x172.calltargetssingle
3710x173.callprototypesingle
3720x174.attributesingle
3730x175.managedsingle
3740x176.noreturnsingle
3750x177.uniquesingle
3760x178.local_maxnregsingle
3770x179.hiddensingle
3780x17a.abi_preservesingle
3790x17b.abi_preserve_controlsingle
3800x17c.abi_preserve_aftersingle
3810x17d.unifiedsingle
3820x17e.reservedsingle
3830x17f.metadata_sectionsingle
3840x180.metadatasingle
3850x181.metadata_indexsingle
3860x182.m8n8k4|.m8n8k16|.m8n8k32|.m16n16k8|.m16n16k16|.m32n8k16|.m8n32k16|.m16n8k8|.m16n8k16|.m16n8k32|.m16n8k4|.m16n8k64|.m16n8k128|.m16n8k256|.m8n8k128|.m8n8|.m8n16|.m8n32|.m8n64|.m16n8|.m16n16|.m8n8k64|.m64n8k32|.m64n16k32|.m64n24k32|.m64n32k32|.m64n40k32|.m64n48k32|.m64n56k32|.m64n64k32|.m64n72k32|.m64n80k32|.m64n88k32|.m64n96k32|.m64n104k32|.m64n112k32|.m64n120k32|.m64n128k32|.m64n136k32|.m64n144k32|.m64n152k32|.m64n160k32|.m64n168k32|.m64n176k32|.m64n184k32|.m64n192k32|.m64n200k32|.m64n208k32|.m64n216k32|.m64n224k32|.m64n232k32|.m64n240k32|.m64n248k32|.m64n256k32|.m64n8k16|.m64n16k16|.m64n24k16|.m64n32k16|.m64n40k16|.m64n48k16|.m64n56k16|.m64n64k16|.m64n72k16|.m64n80k16|.m64n88k16|.m64n96k16|.m64n104k16|.m64n112k16|.m64n120k16|.m64n128k16|.m64n136k16|.m64n144k16|.m64n152k16|.m64n160k16|.m64n168k16|.m64n176k16|.m64n184k16|.m64n192k16|.m64n200k16|.m64n208k16|.m64n216k16|.m64n224k16|.m64n232k16|.m64n240k16|.m64n248k16|.m64n256k16|.m64n8k8|.m64n16k8|.m64n24k8|.m64n32k8|.m64n40k8|.m64n48k8|.m64n56k8|.m64n64k8|.m64n72k8|.m64n80k8|.m64n88k8|.m64n96k8|.m64n104k8|.m64n112k8|.m64n120k8|.m64n128k8|.m64n136k8|.m64n144k8|.m64n152k8|.m64n160k8|.m64n168k8|.m64n176k8|.m64n184k8|.m64n192k8|.m64n200k8|.m64n208k8|.m64n216k8|.m64n224k8|.m64n232k8|.m64n240k8|.m64n248k8|.m64n256k8|.m64n8k64|.m64n16k64|.m64n24k64|.m64n32k64|.m64n40k64|.m64n48k64|.m64n56k64|.m64n64k64|.m64n72k64|.m64n80k64|.m64n88k64|.m64n96k64|.m64n104k64|.m64n112k64|.m64n120k64|.m64n128k64|.m64n136k64|.m64n144k64|.m64n152k64|.m64n160k64|.m64n168k64|.m64n176k64|.m64n184k64|.m64n192k64|.m64n200k64|.m64n208k64|.m64n216k64|.m64n224k64|.m64n232k64|.m64n240k64|.m64n248k64|.m64n256k64|.m64n8k256|.m64n16k256|.m64n24k256|.m64n32k256|.m64n48k256|.m64n64k256|.m64n80k256|.m64n96k256|.m64n112k256|.m64n128k256|.m64n144k256|.m64n160k256|.m64n176k256|.m64n192k256|.m64n208k256|.m64n224k256|.m64n240k256|.m64n256k256|.4x256b|.16x32bx2|.16x64b|.16x128b|.16x256b|.32x32b|.32x128b|.64x128b|.128x128b|.128x256bmodifier-group(178)
3870x183.row|.colmodifier-group(2)
3880x184.L2::64B|.L2::128B|.L2::256Bmodifier-group(3)
3890x185.64B|.128B|.256Bmodifier-group(3)
3900x186.exclusivesingle
3910x187.transAsingle
3920x188.negAsingle
3930x189.transBsingle
3940x18a.negBsingle
3950x18b.ignoreCsingle
3960x18c.ignoreC_predsingle
3970x18d.L2::evict_first|.L2::evict_last|.L2::evict_unchanged|.L2::evict_normal|.L2::no_allocate|.L1::evict_first|.L1::evict_last|.L1::evict_unchanged|.L1::evict_normal|.L1::no_allocatemodifier-group(10)
3990x18f.mbarrier_initsingle
4000x190.sync_restrict::shared::cluster|.sync_restrict::shared::ctamodifier-group(2)
4010x191.x1|.x2|.x4|.x8|.x16|.x32|.x64|.x128modifier-group(8)
4020x192.transsingle
4030x193.thread|.pair|.quadmodifier-group(3)
4040x194.s2|.s4|.u2|.u4|.bf16|.bf16x2modifier-group(6)
4050x195.lower::16bsingle
4060x196.expandsingle
4070x197.sp|.sp::ordered_metadatamodifier-group(2)
4080x198.seqsingle
4090x199.1g|.2g|.4gmodifier-group(3)
4100x19a.noCompletesingle
4110x19b.noincsingle
4120x19c.abssingle
4130x19d.L2::cache_hintsingle
4140x19e.multicast::cluster|.multicast::cluster::allmodifier-group(2)
4150x19f.asc::b32|.asc::b64modifier-group(2)
4160x1a0.acc::f16|.acc::f32modifier-group(2)
4170x1a1.global_address|.rank|.box_dim|.global_dim|.global_stride|.element_stride|.elemtype|.interleave_layout|.swizzle_mode|.swizzle_atomicity|.fill_modemodifier-group(11)
4180x1a2.b1024single
4190x1a3.async::generic|.tensormap::genericmodifier-group(2)
4200x1a4::before_thread_sync|::after_thread_syncmodifier-group(2)
4210x1a5::ld|::stmodifier-group(2)
4220x1a6.block16|.block32modifier-group(2)
``no-token-rule(action 0)
.DEFINEA
.IFno-token-rule(action 3)
.byteno-token-rule(action 287)
.4byteno-token-rule(action 288)
<#line-marker>no-token-rule(action 540)
``
/*no-token-rule(action 544)
//no-token-rule(action 545)
``
no-token-rule(action 546)``
``no-token-rule(action 547)
<single-char-punct>no-token-rule(action 548)
``no-token-rule(action 549)
``no-token-rule(action 550)
``no-token-rule(action 551)