Skip to content

Commit 7e43601

Browse files
Fix error reporting
1 parent 2bd9069 commit 7e43601

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

projects/eudsl-python-extras/mlir/extras/testing/testing.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ def filecheck(correct: str, module):
8787
p = Popen([filecheck_path, tmp.name], stdout=PIPE, stdin=PIPE, stderr=PIPE)
8888
out, err = map(lambda o: o.decode(), p.communicate(input=op.encode()))
8989
if p.returncode:
90-
if "error: " in err:
91-
raise RuntimeError(err)
9290
diff = list(
9391
difflib.unified_diff(
9492
op.splitlines(), # to this

projects/eudsl-python-extras/tests/dialect/test_gpu.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def _():
563563
"""\
564564
module attributes {gpu.container_module} {
565565
gpu.module @naive [#nvvm.target] {
566-
gpu.func @mat_product_kernel(%arg0: memref<32x32xf32>, %arg1: memref<32x32xf32>, %arg2: memref<32x32xf32>) kernel {
566+
gpu.func @mat_product_kernel_int_32_int_32_int_32_type_f32(%arg0: memref<32x32xf32>, %arg1: memref<32x32xf32>, %arg2: memref<32x32xf32>) kernel {
567567
%block_dim_x = gpu.block_dim x
568568
%block_id_x = gpu.block_id x
569569
%0 = arith.muli %block_dim_x, %block_id_x : index
@@ -594,6 +594,7 @@ def _():
594594
}
595595
"""
596596
)
597+
print(ctx.module)
597598

598599
filecheck(correct, ctx.module)
599600

0 commit comments

Comments
 (0)