Skip to content

Commit 3001297

Browse files
committed
keep the original way
1 parent 8e68a0a commit 3001297

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

third_party/intel/backend/compiler.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,8 @@ def make_ttgir(mod, metadata, opt, properties):
233233
pm = ir.pass_manager(mod.context)
234234
pm.enable_debug()
235235

236-
if (os.getenv("TRITON_INTEL_ADVANCED_PATH", "0") == "1" or opt.advanced_path):
237-
if not (properties["has_subgroup_2d_block_io"] and properties["has_subgroup_matrix_multiply_accumulate"]):
238-
raise AssertionError("Target do not support blocked load/mma")
236+
if (properties["has_subgroup_2d_block_io"] and properties["has_subgroup_matrix_multiply_accumulate"]
237+
and (os.getenv("TRITON_INTEL_ADVANCED_PATH", "0") == "1" or opt.advanced_path)):
239238
return XPUBackend.AdvancedPath.make_ttgir(mod, metadata, opt)
240239

241240
passes.ttir.add_convert_to_ttgpuir(pm, "xpu", opt.num_warps, opt.threads_per_warp, opt.num_ctas)

0 commit comments

Comments
 (0)