File size: 11,508 Bytes
75441f6 781ef81 75441f6 b7c227f 75441f6 b7c227f 75441f6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 | {
"cases": [
{
"name": "axis1",
"attrs": { "axis": 1 },
"inputs": {
"data": { "dtype": "float32", "shape": [1024, 768] },
"indices": { "dtype": "int32", "shape": [1024, 128], "min": 0, "max": 768 },
"updates": { "dtype": "float32", "shape": [1024, 128] }
},
"outputs": { "output": { "dtype": "float32", "shape": [1024, 768] } }
},
{
"name": "axis1_reduction_add",
"preset": "smoke",
"attrs": { "axis": 1, "reduction": "add" },
"inputs": {
"data": { "dtype": "float32", "shape": [1024, 768], "dist": "normal", "seed": 1 },
"indices": { "dtype": "int32", "shape": [1024, 128], "dist": "randint", "min": 0, "max": 768, "seed": 3 },
"updates": { "dtype": "float32", "shape": [1024, 128], "dist": "normal", "seed": 2 }
},
"outputs": { "output": { "dtype": "float32", "shape": [1024, 768], "dist": "empty" } },
"bench": {
"primary": true,
"metrics": [
{
"type": "bandwidth",
"value": "4 * (2 * numel(shapes.data) + 3 * numel(shapes.updates)) + 4 * numel(shapes.indices)"
}
]
}
},
{
"name": "axis0_reduction_add_contended",
"preset": "smoke",
"attrs": { "axis": 0, "reduction": "add" },
"inputs": {
"data": { "dtype": "float32", "shape": [64, 1024], "dist": "normal", "seed": 1 },
"indices": { "dtype": "int32", "shape": [4096, 1024], "dist": "randint", "min": 0, "max": 64, "seed": 3 },
"updates": { "dtype": "float32", "shape": [4096, 1024], "dist": "normal", "seed": 2 }
},
"outputs": { "output": { "dtype": "float32", "shape": [64, 1024], "dist": "empty" } }
},
{
"name": "axis0_reduction_add_single_row",
"preset": "smoke",
"attrs": { "axis": 0, "reduction": "add" },
"inputs": {
"data": { "dtype": "float32", "shape": [64, 1024], "dist": "normal", "seed": 1 },
"indices": { "dtype": "int32", "shape": [4096, 1024], "dist": "constant", "value": 0 },
"updates": { "dtype": "float32", "shape": [4096, 1024], "dist": "normal", "seed": 2 }
},
"outputs": { "output": { "dtype": "float32", "shape": [64, 1024], "dist": "empty" } }
},
{
"name": "axis1_reduction_add_f16_slice",
"preset": "smoke",
"attrs": { "axis": 1, "reduction": "add" },
"inputs": {
"data": { "dtype": "float16", "shape": [1024, 768], "dist": "normal", "seed": 1 },
"indices": { "dtype": "int32", "shape": [1024, 128], "dist": "randint", "min": 0, "max": 768, "seed": 3 },
"updates": { "dtype": "float16", "shape": [1024, 128], "dist": "normal", "seed": 2 }
},
"outputs": { "output": { "dtype": "float16", "shape": [1024, 768], "dist": "empty" } },
"bench": {
"metrics": [
{
"type": "bandwidth",
"value": "2 * (2 * numel(shapes.data) + 3 * numel(shapes.updates)) + 4 * numel(shapes.indices)"
}
]
}
},
{
"name": "axis1_reduction_add_f16_tall_axis_few_columns_single_lane",
"preset": "smoke",
"attrs": { "axis": 1, "reduction": "add" },
"inputs": {
"data": { "dtype": "float16", "shape": [8, 16384], "dist": "normal", "seed": 1 },
"indices": { "dtype": "int32", "shape": [8, 16384], "dist": "randint", "min": 0, "max": 16384, "seed": 3 },
"updates": { "dtype": "float16", "shape": [8, 16384], "dist": "normal", "seed": 2 }
},
"outputs": { "output": { "dtype": "float16", "shape": [8, 16384], "dist": "empty" } },
"bench": {
"metrics": [
{
"type": "bandwidth",
"value": "2 * (2 * numel(shapes.data) + 3 * numel(shapes.updates)) + 4 * numel(shapes.indices)"
}
]
}
},
{
"name": "axis0_reduction_mul_contended_cas_spin",
"preset": "smoke",
"attrs": { "axis": 0, "reduction": "mul" },
"inputs": {
"data": { "dtype": "float32", "shape": [64, 1024], "dist": "constant", "value": 1 },
"indices": { "dtype": "int32", "shape": [4096, 1024], "dist": "randint", "min": 0, "max": 64, "seed": 3 },
"updates": { "dtype": "float32", "shape": [4096, 1024], "dist": "constant", "value": 1 }
},
"outputs": { "output": { "dtype": "float32", "shape": [64, 1024], "dist": "empty" } },
"bench": {
"metrics": [
{
"type": "bandwidth",
"value": "4 * (2 * numel(shapes.data) + 3 * numel(shapes.updates)) + 4 * numel(shapes.indices)"
}
]
}
},
{
"name": "axis0_reduction_add_contended_int32_native_atomic",
"preset": "smoke",
"attrs": { "axis": 0, "reduction": "add" },
"inputs": {
"data": { "dtype": "int32", "shape": [64, 1024], "dist": "constant", "value": 0 },
"indices": { "dtype": "int32", "shape": [4096, 1024], "dist": "randint", "min": 0, "max": 64, "seed": 3 },
"updates": { "dtype": "int32", "shape": [4096, 1024], "dist": "constant", "value": 1 }
},
"outputs": { "output": { "dtype": "int32", "shape": [64, 1024], "dist": "empty" } },
"bench": {
"metrics": [
{
"type": "bandwidth",
"value": "4 * (2 * numel(shapes.data) + 3 * numel(shapes.updates)) + 4 * numel(shapes.indices)"
}
]
}
},
{
"name": "f16_reduction_add_rank1_single_column_serial",
"preset": "stress",
"attrs": { "axis": 0, "reduction": "add" },
"inputs": {
"data": { "dtype": "float16", "shape": [32768], "dist": "normal", "seed": 10 },
"indices": { "dtype": "int32", "shape": [32768], "dist": "randint", "min": 0, "max": 32768, "seed": 11 },
"updates": { "dtype": "float16", "shape": [32768], "dist": "normal", "seed": 12 }
},
"outputs": { "output": { "dtype": "float16", "shape": [32768], "dist": "empty" } },
"bench": {
"metrics": [
{
"type": "bandwidth",
"value": "2 * (2 * numel(shapes.data) + 3 * numel(shapes.updates)) + 4 * numel(shapes.indices)"
}
]
}
},
{
"name": "embedding-gradient-f16-axis0-vocab4096-hidden128-tokens65536",
"preset": "stress",
"attrs": { "axis": 0, "reduction": "add" },
"inputs": {
"data": { "dtype": "float16", "shape": [4096, 128], "dist": "constant", "value": 0 },
"indices": { "dtype": "int32", "shape": [65536, 128], "dist": "randint", "min": 0, "max": 4096, "seed": 21 },
"updates": { "dtype": "float16", "shape": [65536, 128], "dist": "normal", "seed": 22, "scale": 0.01 }
},
"outputs": { "output": { "dtype": "float16", "shape": [4096, 128], "dist": "empty" } },
"bench": {
"primary": true,
"metrics": [
{
"type": "bandwidth",
"value": "2 * (2 * numel(shapes.data) + 3 * numel(shapes.updates)) + 4 * numel(shapes.indices)"
}
]
}
},
{
"name": "f16-add-outer257-atomic-guard-cliff-pathology",
"preset": "stress",
"provenance": {
"source": "repository-authored",
"notes": "One column above reduction_f16_add_atomic_f32's non-axis-column <= 256 guard, so reduction_slice assigns 16384 updates to each of 257 invocations; the outer=256 control isolates the guard boundary."
},
"attrs": { "axis": 1, "reduction": "add" },
"inputs": {
"data": { "dtype": "float16", "shape": [257, 16384], "dist": "constant", "value": 0 },
"indices": { "dtype": "int32", "shape": [257, 16384], "dist": "randint", "min": 0, "max": 16384, "seed": 23 },
"updates": { "dtype": "float16", "shape": [257, 16384], "dist": "normal", "seed": 24, "scale": 0.01 }
},
"outputs": { "output": { "dtype": "float16", "shape": [257, 16384], "dist": "empty" } },
"bench": {
"metrics": [
{
"type": "bandwidth",
"value": "2 * (2 * numel(shapes.data) + 3 * numel(shapes.updates)) + 4 * numel(shapes.indices)"
}
]
}
},
{
"name": "f16-add-wide-slices-65536x4-short-axis",
"preset": "smoke",
"attrs": { "axis": 1, "reduction": "add" },
"inputs": {
"data": { "dtype": "float16", "shape": [65536, 16], "dist": "normal", "seed": 11 },
"indices": { "dtype": "int32", "shape": [65536, 4], "dist": "randint", "min": 0, "max": 16, "seed": 13 },
"updates": { "dtype": "float16", "shape": [65536, 4], "dist": "normal", "seed": 12 }
},
"outputs": { "output": { "dtype": "float16", "shape": [65536, 16], "dist": "empty" } },
"bench": {
"metrics": [
{
"type": "bandwidth",
"value": "2 * (2 * numel(shapes.data) + 3 * numel(shapes.updates)) + 4 * numel(shapes.indices)"
}
]
}
},
{
"name": "f16-add-slices2048-axis128-just-above-gate",
"preset": "smoke",
"attrs": { "axis": 1, "reduction": "add" },
"inputs": {
"data": { "dtype": "float16", "shape": [2048, 768], "dist": "normal", "seed": 11 },
"indices": { "dtype": "int32", "shape": [2048, 128], "dist": "randint", "min": 0, "max": 768, "seed": 13 },
"updates": { "dtype": "float16", "shape": [2048, 128], "dist": "normal", "seed": 12 }
},
"outputs": { "output": { "dtype": "float16", "shape": [2048, 768], "dist": "empty" } },
"bench": {
"metrics": [
{
"type": "bandwidth",
"value": "2 * (2 * numel(shapes.data) + 3 * numel(shapes.updates)) + 4 * numel(shapes.indices)"
}
]
}
},
{
"name": "f16-add-slices2048-axis4096-long-walk-needs-atomic",
"preset": "stress",
"attrs": { "axis": 1, "reduction": "add" },
"inputs": {
"data": { "dtype": "float16", "shape": [2048, 8192], "dist": "normal", "seed": 11 },
"indices": { "dtype": "int32", "shape": [2048, 4096], "dist": "randint", "min": 0, "max": 8192, "seed": 13 },
"updates": { "dtype": "float16", "shape": [2048, 4096], "dist": "normal", "seed": 12 }
},
"outputs": { "output": { "dtype": "float16", "shape": [2048, 8192], "dist": "empty" } },
"bench": {
"metrics": [
{
"type": "bandwidth",
"value": "2 * (2 * numel(shapes.data) + 3 * numel(shapes.updates)) + 4 * numel(shapes.indices)"
}
]
}
},
{
"name": "int8_reduction_add_rank1_single_column_serial",
"preset": "stress",
"provenance": {
"notes": "A rank-1 narrow-integer scatter has one non-axis column, so serial slice reduction assigns every update to one lane."
},
"attrs": { "axis": 0, "reduction": "add" },
"inputs": {
"data": { "dtype": "int8", "shape": [32768], "dist": "constant", "value": 0 },
"indices": { "dtype": "int32", "shape": [32768], "dist": "randint", "min": 0, "max": 32768, "seed": 21 },
"updates": { "dtype": "int8", "shape": [32768], "dist": "constant", "value": 1 }
},
"outputs": { "output": { "dtype": "int8", "shape": [32768], "dist": "empty" } },
"bench": {
"metrics": [
{
"type": "bandwidth",
"value": "2 * numel(shapes.data) + 3 * numel(shapes.updates) + 4 * numel(shapes.indices)"
}
]
}
}
]
}
|