Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/tools/latmeas/catalog.json # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / tools / latmeas / catalog.json` 246 lines · 9365 bytes Raw Blame History 1 { 2 "mesa_commit": "`01bab9302a6bf0a082c7ba8c49d74427cf10b0cf`", 3 "mesa_clock": "nak_private.h:135 NAK_SV_CLOCK_LO = 0x50; from_nir.rs:3522 SM>=50 uses CS2R; sm70_encode.rs:4278 opcode 0x805, index bits 72..80", 4 "rows": [ 5 { 6 "id": "alu_alu", 7 "priority": 1, 8 "pair": "ALU -> ALU (GPR RAW)", 9 "encoder_stall": 5, 10 "encoder": "5 (4 + 1, tightened from the blanket 6)", 11 "encoder_file": "src/omega_gpu_elementwise_api.c", 12 "encoder_line": 811, 13 "encoder_substr": "(5u << 9)", 14 "nak_stall": 5, 15 "nak": "4 + 1 = 5", 16 "nak_where": "latencies/sm100/reg_raw.csv:2 row alu column alu = 4; sm120_instr_latencies.rs:457 GPR raw adds max(adjust, 1); IAdd3 is Alu at line 44", 17 "measure_id": "alu_alu", 18 "kernel": "tests/gpu_latmeas_test.c (alu_alu)", 19 "class_note": "" 20 }, 21 { 22 "id": "fma_fma", 23 "priority": 1, 24 "pair": "FMA -> FMA (GPR RAW)", 25 "encoder_stall": 5, 26 "encoder": "5 (4 + 1, tightened from the blanket 6)", 27 "encoder_file": "src/omega_gpu_elementwise_api.c", 28 "encoder_line": 798, 29 "encoder_substr": "BW_IR_FFMA", 30 "nak_stall": 5, 31 "nak": "4 + 1 = 5", 32 "nak_where": "latencies/sm100/reg_raw.csv:5 row fma column fma = 4; sm120_instr_latencies.rs:59 FFma is Fma; line 457 adds 1", 33 "measure_id": "fma_fma", 34 "kernel": "tests/gpu_latmeas_test.c (fma_fma)", 35 "class_note": "" 36 }, 37 { 38 "id": "mixed", 39 "priority": 1, 40 "pair": "Mixed ALU <-> FMA (GPR RAW)", 41 "encoder_stall": 6, 42 "encoder": "6 (5 + 1; different fixed_pair_class values are left at the blanket 6)", 43 "encoder_file": "src/omega_gpu_elementwise_api.c", 44 "encoder_line": 77, 45 "encoder_substr": "CW(6,", 46 "nak_stall": 6, 47 "nak": "5 + 1 = 6", 48 "nak_where": "latencies/sm100/reg_raw.csv:2 row alu column fma = 5 and line 5 row fma column alu = 5; sm120_instr_latencies.rs:457 adds 1", 49 "measure_id": "mixed", 50 "kernel": "tests/gpu_latmeas_test.c (mixed)", 51 "class_note": "" 52 }, 53 { 54 "id": "pred", 55 "priority": 1, 56 "pair": "Predicate write -> guard", 57 "encoder_stall": 14, 58 "encoder": "14 (elementwise, MoE, and the other emitters)", 59 "encoder_file": "src/omega_gpu_elementwise_api.c", 60 "encoder_line": 78, 61 "encoder_substr": "CW(14,", 62 "nak_stall": 14, 63 "nak": "13 + 1 = 14", 64 "nak_where": "latencies/sm100/pred_raw.csv:11 row redirected_fp64 column dualalu = 13; sm120_instr_latencies.rs:474 predicate raw(write, None) uses reader RedirectedFp64 and adds 1; ISetP is Dualalu at line 49", 65 "measure_id": "pred", 66 "kernel": "tests/gpu_latmeas_test.c (pred)", 67 "class_note": "" 68 }, 69 { 70 "id": "pred_attention", 71 "priority": 2, 72 "pair": "Predicate write -> guard, attention emitter", 73 "encoder_stall": 13, 74 "encoder": "13", 75 "encoder_file": "src/omega_gpu_attention_api.c", 76 "encoder_line": 85, 77 "encoder_substr": "CW(13,", 78 "nak_stall": 14, 79 "nak": "13 + 1 = 14", 80 "nak_where": "same predicate cell as the Priority 1 row; this emitter omits SM120's +1", 81 "measure_id": "pred", 82 "kernel": "tests/gpu_latmeas_test.c (pred)", 83 "class_note": "" 84 }, 85 { 86 "id": "hmma_reader", 87 "priority": 2, 88 "pair": "HMMA -> non-HMMA reader (FADD of d0)", 89 "encoder_stall": 29, 90 "encoder": "15 + NOP 14 = 29", 91 "encoder_file": "om/codegen/cg_tc.om", 92 "encoder_line": 913, 93 "encoder_substr": "put x 7 ulong 14", 94 "nak_stall": 28, 95 "nak": "19 + 9 = 28", 96 "nak_where": "latencies/sm100/reg_raw.csv:2 row alu column hmma = 19; sm120_instr_latencies.rs:431 latency_adjust(Hmma) = 9, added at line 457. HMMA -> HMMA is row hmma column hmma = 20 + 9 = 29, which matches the encoder; the disagreement is the non-HMMA reader", 97 "measure_id": "hmma_reader", 98 "kernel": "tests/gpu_latmeas_test.c (hmma_reader)", 99 "class_note": "" 100 }, 101 { 102 "id": "imad_wide_lo", 103 "priority": 2, 104 "pair": "IMAD.WIDE low half -> IADD3", 105 "encoder_stall": 6, 106 "encoder": "6 (blanket K_FIXED; IMAD.WIDE is not in fixed_pair_class)", 107 "encoder_file": "src/omega_gpu_elementwise_api.c", 108 "encoder_line": 799, 109 "encoder_substr": "default: return 0", 110 "nak_stall": 4, 111 "nak": "3 + 1 = 4", 112 "nak_where": "latencies/sm100/reg_raw.csv:2 row alu column imad_wide_write_dl = 3; sm120_instr_latencies.rs:28 IMad64 write class and line 457 adds 1. The high half column imad_wide_write_dh is 5 + 1 = 6, which matches the blanket", 113 "measure_id": "imad_wide_lo", 114 "kernel": "tests/gpu_latmeas_test.c (imad_wide_lo)", 115 "class_note": "" 116 }, 117 { 118 "id": "fmnmx_alu", 119 "priority": 2, 120 "pair": "FMNMX (dualalu) -> IADD3 (alu)", 121 "encoder_stall": 6, 122 "encoder": "6 (blanket K_FIXED; FMNMX is not in fixed_pair_class)", 123 "encoder_file": "src/omega_gpu_elementwise_api.c", 124 "encoder_line": 799, 125 "encoder_substr": "default: return 0", 126 "nak_stall": 5, 127 "nak": "4 + 1 = 5", 128 "nak_where": "latencies/sm100/reg_raw.csv:2 row alu column dualalu = 4; sm120_instr_latencies.rs:62 FMnMx is Dualalu; line 457 adds 1. dualalu -> dualalu is the same 4 + 1", 129 "measure_id": "fmnmx_alu", 130 "kernel": "tests/gpu_latmeas_test.c (fmnmx_alu)", 131 "class_note": "" 132 }, 133 { 134 "id": "qmma_reader", 135 "priority": 2, 136 "pair": "QMMA (IMMA) -> next reader", 137 "encoder_stall": 30, 138 "encoder": "15 + NOP 15 = 30", 139 "encoder_file": "om/codegen/cg_qmma.om", 140 "encoder_line": 257, 141 "encoder_substr": "put x 7 15", 142 "nak_stall": 26, 143 "nak": "19 + 7 = 26", 144 "nak_where": "latencies/sm100/reg_raw.csv:2 row alu column imma = 19; sm120_instr_latencies.rs:431 latency_adjust(Imma) = 7. IMMA -> IMMA is row imma (line 17) column imma = 20 + 7 = 27", 145 "measure_id": "", 146 "kernel": "not generated (patched QMMA placeholder; see REPRODUCE.md)", 147 "class_note": "" 148 }, 149 { 150 "id": "numeric_min", 151 "priority": 2, 152 "pair": "Fixed-producer minimum in the numeric checker", 153 "encoder_stall": 5, 154 "encoder": "5 (any fixed producer; mixed pairs need 6)", 155 "encoder_file": "src/omega_numeric.c", 156 "encoder_line": 1286, 157 "encoder_substr": "CTRL_STALL(p[t].w[3]) < 5u", 158 "nak_stall": 6, 159 "nak": "5 + 1 = 6 for mixed ALU/FMA", 160 "nak_where": "same mixed cell as Priority 1. The scheduler uses 6 there; this checker still accepts 5", 161 "measure_id": "mixed", 162 "kernel": "tests/gpu_latmeas_test.c (mixed)", 163 "class_note": "" 164 }, 165 { 166 "id": "bssy", 167 "priority": 2, 168 "pair": "BSSY stall", 169 "encoder_stall": 1, 170 "encoder": "1, no scoreboard", 171 "encoder_file": "src/omega_gpu_elementwise_api.c", 172 "encoder_line": 90, 173 "encoder_substr": "CW(1,", 174 "nak_stall": null, 175 "nak": "decoupled (1 & sb)", 176 "nak_where": "sm120_instr_latencies.rs:137 Op::BSSy is Decoupled, which needs a scoreboard (needs_scoreboards)", 177 "measure_id": "", 178 "kernel": "not generated (NAK class is decoupled, not a fixed GPR RAW)", 179 "class_note": "class" 180 }, 181 { 182 "id": "bsync", 183 "priority": 2, 184 "pair": "BSYNC stall", 185 "encoder_stall": 5, 186 "encoder": "5, no scoreboard", 187 "encoder_file": "src/omega_gpu_elementwise_api.c", 188 "encoder_line": 91, 189 "encoder_substr": "CW(5,", 190 "nak_stall": null, 191 "nak": "decoupled (1 & sb)", 192 "nak_where": "sm120_instr_latencies.rs:140 Op::BSync is Decoupled", 193 "measure_id": "", 194 "kernel": "not generated (NAK class is decoupled, not a fixed GPR RAW)", 195 "class_note": "class" 196 }, 197 { 198 "id": "bra", 199 "priority": 2, 200 "pair": "BRA stall", 201 "encoder_stall": 5, 202 "encoder": "5", 203 "encoder_file": "src/omega_gpu_elementwise_api.c", 204 "encoder_line": 85, 205 "encoder_substr": "case K_BRA:", 206 "nak_stall": null, 207 "nak": "decoupled (1 & sb)", 208 "nak_where": "sm120_instr_latencies.rs:136 Op::Bra is Decoupled", 209 "measure_id": "", 210 "kernel": "not generated (NAK class is decoupled, not a fixed GPR RAW)", 211 "class_note": "class" 212 }, 213 { 214 "id": "exit_op", 215 "priority": 2, 216 "pair": "EXIT stall", 217 "encoder_stall": 5, 218 "encoder": "5", 219 "encoder_file": "src/omega_gpu_elementwise_api.c", 220 "encoder_line": 84, 221 "encoder_substr": "case K_EXIT:", 222 "nak_stall": null, 223 "nak": "decoupled (1 & sb)", 224 "nak_where": "sm120_instr_latencies.rs:139 Op::Exit is Decoupled", 225 "measure_id": "", 226 "kernel": "not generated (NAK class is decoupled, not a fixed GPR RAW)", 227 "class_note": "class" 228 }, 229 { 230 "id": "bar", 231 "priority": 2, 232 "pair": "BAR.SYNC stall", 233 "encoder_stall": 6, 234 "encoder": "6", 235 "encoder_file": "src/omega_gpu_elementwise_api.c", 236 "encoder_line": 82, 237 "encoder_substr": "case K_SYNC:", 238 "nak_stall": null, 239 "nak": "decoupled AGU (1 & sb)", 240 "nak_where": "sm120_instr_latencies.rs:132 Op::Bar is DecoupledAgu", 241 "measure_id": "", 242 "kernel": "not generated (NAK class is decoupled, not a fixed GPR RAW)", 243 "class_note": "class" 244 } 245 ] 246 }