Skip to content

Commit 3c83e0b

Browse files
SamGinzburgfacebook-github-bot
authored andcommitted
AMD changed the default pipeliner behavior in OSS Triton so num_stages=0 triggers an assert.
Reviewed By: bertmaher Differential Revision: D65695544 fbshipit-source-id: 95988b90debba743f90bfca3a63fa9f34df5e492
1 parent 359dfb4 commit 3c83e0b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tritonbench/operators/bf16xint16_gemm/kernel.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def get_hip_autotune_config():
194194
"waves_per_eu": 2,
195195
},
196196
num_warps=4,
197-
num_stages=0,
197+
num_stages=2,
198198
),
199199
triton.Config(
200200
{
@@ -205,7 +205,7 @@ def get_hip_autotune_config():
205205
"waves_per_eu": 2,
206206
},
207207
num_warps=8,
208-
num_stages=0,
208+
num_stages=2,
209209
),
210210
triton.Config(
211211
{
@@ -216,7 +216,7 @@ def get_hip_autotune_config():
216216
"waves_per_eu": 2,
217217
},
218218
num_warps=8,
219-
num_stages=0,
219+
num_stages=2,
220220
),
221221
triton.Config(
222222
{
@@ -227,7 +227,7 @@ def get_hip_autotune_config():
227227
"waves_per_eu": 3,
228228
},
229229
num_warps=4,
230-
num_stages=0,
230+
num_stages=2,
231231
),
232232
triton.Config(
233233
{
@@ -238,7 +238,7 @@ def get_hip_autotune_config():
238238
"waves_per_eu": 8,
239239
},
240240
num_warps=4,
241-
num_stages=0,
241+
num_stages=2,
242242
),
243243
]
244244

tritonbench/operators/fp8_gemm/tutorial.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def get_hip_autotune_config():
341341
"waves_per_eu": 2,
342342
},
343343
num_warps=4,
344-
num_stages=0,
344+
num_stages=2,
345345
),
346346
triton.Config(
347347
{
@@ -352,7 +352,7 @@ def get_hip_autotune_config():
352352
"waves_per_eu": 2,
353353
},
354354
num_warps=8,
355-
num_stages=0,
355+
num_stages=2,
356356
),
357357
triton.Config(
358358
{
@@ -363,7 +363,7 @@ def get_hip_autotune_config():
363363
"waves_per_eu": 2,
364364
},
365365
num_warps=8,
366-
num_stages=0,
366+
num_stages=2,
367367
),
368368
triton.Config(
369369
{
@@ -374,7 +374,7 @@ def get_hip_autotune_config():
374374
"waves_per_eu": 3,
375375
},
376376
num_warps=4,
377-
num_stages=0,
377+
num_stages=2,
378378
),
379379
triton.Config(
380380
{
@@ -385,7 +385,7 @@ def get_hip_autotune_config():
385385
"waves_per_eu": 8,
386386
},
387387
num_warps=4,
388-
num_stages=0,
388+
num_stages=2,
389389
),
390390
]
391391

0 commit comments

Comments
 (0)