Skip to content

Commit 2d9c504

Browse files
[AMD] Disable True16 for assembler on gfx11 (triton-lang#9447)
We already disable True16 on gfx11 in make_amdgcn, but since a recent LLVM bump the assembler rejects Fake16 instructions by default, requiring us to disable True16 here as well. Co-authored-by: Paul Trojahn <paul.trojahn@amd.com>
1 parent 5483c9b commit 2d9c504

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

third_party/amd/backend/compiler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,8 @@ def make_hsaco(src, metadata, options):
490490
target_features = ''
491491
if knobs.compilation.enable_asan:
492492
target_features = '+xnack'
493+
if 'gfx11' in options.arch:
494+
target_features += ',-real-true16'
493495
hsaco = amd.assemble_amdgcn(src, options.arch, target_features)
494496
with tempfile.NamedTemporaryFile() as tmp_out:
495497
with tempfile.NamedTemporaryFile() as tmp_in:

0 commit comments

Comments
 (0)