Skip to content

[mlir][tosa] Add more error_if checks for Resize Op #129577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

Jerry-Ge
Copy link
Member

@Jerry-Ge Jerry-Ge commented Mar 3, 2025

Some of the error_if checks were missed in this PR: #124956

Add back those tests to check suitable sizes for Resize

Some of the error_if checks were missed in this PR: llvm#124956

Add back those tests to check suitable sizes for Resize

Signed-off-by: Luke Hutton <[email protected]>
Change-Id: Ic09e0e601b5a110953ae04779ffa4dc6d5476418
@llvmbot
Copy link
Member

llvmbot commented Mar 3, 2025

@llvm/pr-subscribers-mlir-tosa

@llvm/pr-subscribers-mlir

Author: Jerry-Ge (Jerry-Ge)

Changes

Some of the error_if checks were missed in this PR: #124956

Add back those tests to check suitable sizes for Resize


Full diff: https://github.com/llvm/llvm-project/pull/129577.diff

1 Files Affected:

  • (added) mlir/test/Dialect/Tosa/error_if_check.mlir (+85)
diff --git a/mlir/test/Dialect/Tosa/error_if_check.mlir b/mlir/test/Dialect/Tosa/error_if_check.mlir
new file mode 100644
index 0000000000000..267b9c589c5b3
--- /dev/null
+++ b/mlir/test/Dialect/Tosa/error_if_check.mlir
@@ -0,0 +1,85 @@
+// RUN: mlir-opt %s -split-input-file -verify-diagnostics --tosa-validate="profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment"
+
+// -----
+
+// CHECK-LABEL: test_resize_large_image_size
+func.func @test_resize_large_image_size(%arg0: tensor<1x16384x16384x8xf32>) -> tensor<1x32767x32767x8xf32> {
+  %scale = tosa.const_shape { value = dense<[2, 1, 2, 1]> : tensor<4xindex> } : () -> !tosa.shape<4>
+  %offset = tosa.const_shape { value = dense<0> : tensor<2xindex> } : () -> !tosa.shape<2>
+  %border = tosa.const_shape { value = dense<0> : tensor<2xindex> } : () -> !tosa.shape<2>
+  // expected-error@+1 {{'tosa.resize' op expect input/output height/width dims to be < 16384, got [OH, OW, IH, IW] = 32767, 32767, 16384, 16384}}
+  %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x16384x16384x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<1x32767x32767x8xf32>
+  return %1 : tensor<1x32767x32767x8xf32>
+}
+
+// -----
+
+// CHECK-LABEL: test_resize_invalid_scale_numerator
+func.func @test_resize_invalid_scale_numerator(%arg0: tensor<1x9x9x8xf32>) -> tensor<?x?x?x?xf32> {
+  %scale = tosa.const_shape { value = dense<[2049, 8, 1, 2]> : tensor<4xindex> } : () -> !tosa.shape<4>
+  %offset = tosa.const_shape { value = dense<0> : tensor<2xindex> } : () -> !tosa.shape<2>
+  %border = tosa.const_shape { value = dense<0> : tensor<2xindex> } : () -> !tosa.shape<2>
+  // expected-error@+1 {{'tosa.resize' op expect all scale numerator values to be <= (1 << 11), got scale_y_n=2049, scale_x_n=1}}
+  %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x9x9x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
+  return %1 : tensor<?x?x?x?xf32>
+}
+
+// -----
+
+// CHECK-LABEL: test_resize_invalid_downscale
+func.func @test_resize_invalid_downscale(%arg0: tensor<1x37x37x8xf32>) -> tensor<?x?x?x?xf32> {
+  %scale = tosa.const_shape { value = dense<[1, 18, 1, 18]> : tensor<4xindex> } : () -> !tosa.shape<4>
+  %offset = tosa.const_shape { value = dense<0> : tensor<2xindex> } : () -> !tosa.shape<2>
+  %border = tosa.const_shape { value = dense<0> : tensor<2xindex> } : () -> !tosa.shape<2>
+  // expected-error@+1 {{'tosa.resize' op expect a downscale ratio larger than 1/16, got y=1/18, x=1/18}}
+  %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x37x37x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
+  return %1 : tensor<?x?x?x?xf32>
+}
+
+// -----
+
+// CHECK-LABEL: test_resize_invalid_offset_y
+func.func @test_resize_invalid_offset_y(%arg0: tensor<1x8x8x8xf32>) -> tensor<?x?x?x?xf32> {
+  %scale = tosa.const_shape { value = dense<[1, 1, 1, 1]> : tensor<4xindex> } : () -> !tosa.shape<4>
+  %offset = tosa.const_shape { value = dense<[17, 0]> : tensor<2xindex> } : () -> !tosa.shape<2>
+  %border = tosa.const_shape { value = dense<0> : tensor<2xindex> } : () -> !tosa.shape<2>
+  // expected-error@+1 {{'tosa.resize' op expect offsetY / scaleYNumerator to be in range [-1, 16), got 17/1}}
+  %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
+  return %1 : tensor<?x?x?x?xf32>
+}
+
+// -----
+
+// CHECK-LABEL: test_resize_invalid_offset_x
+func.func @test_resize_invalid_offset_x(%arg0: tensor<1x8x8x8xf32>) -> tensor<?x?x?x?xf32> {
+  %scale = tosa.const_shape { value = dense<[1, 1, 1, 1]> : tensor<4xindex> } : () -> !tosa.shape<4>
+  %offset = tosa.const_shape { value = dense<[0, -2]> : tensor<2xindex> } : () -> !tosa.shape<2>
+  %border = tosa.const_shape { value = dense<0> : tensor<2xindex> } : () -> !tosa.shape<2>
+  // expected-error@+1 {{'tosa.resize' op expect offsetX / scaleXNumerator to be in range [-1, 16), got -2/1}}
+  %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
+  return %1 : tensor<?x?x?x?xf32>
+}
+
+// -----
+
+// CHECK-LABEL: test_resize_invalid_border_y
+func.func @test_resize_invalid_boarder_y(%arg0: tensor<1x8x8x8xf32>) -> tensor<?x?x?x?xf32> {
+  %scale = tosa.const_shape { value = dense<[1, 1, 1, 1]> : tensor<4xindex> } : () -> !tosa.shape<4>
+  %offset = tosa.const_shape { value = dense<0> : tensor<2xindex> } : () -> !tosa.shape<2>
+  %border = tosa.const_shape { value = dense<[-17, 0]> : tensor<2xindex> } : () -> !tosa.shape<2>
+  // expected-error@+1 {{'tosa.resize' op expect borderY / scaleYNumerator to be in range [-16, 1), got -17/1}}
+  %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
+  return %1 : tensor<?x?x?x?xf32>
+}
+
+// -----
+
+// CHECK-LABEL: test_resize_invalid_border_x
+func.func @test_resize_invalid_boarder_x(%arg0: tensor<1x8x8x8xf32>) -> tensor<?x?x?x?xf32> {
+  %scale = tosa.const_shape { value = dense<[1, 1, 1, 1]> : tensor<4xindex> } : () -> !tosa.shape<4>
+  %offset = tosa.const_shape { value = dense<0> : tensor<2xindex> } : () -> !tosa.shape<2>
+  %border = tosa.const_shape { value = dense<[0, 2]> : tensor<2xindex> } : () -> !tosa.shape<2>
+  // expected-error@+1 {{'tosa.resize' op expect borderX / scaleXNumerator to be in range [-16, 1), got 2/1}}
+  %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
+  return %1 : tensor<?x?x?x?xf32>
+}

@FranklandJack
Copy link
Contributor

LGTM. Only thing I'd say is that maybe the missing error conditions which the patch fixes could be listed in the commit message, but that's very trivial.

@Jerry-Ge Jerry-Ge merged commit cd3d10c into llvm:main Mar 4, 2025
14 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 4, 2025

LLVM Buildbot has detected a new failure on builder ppc64le-mlir-rhel-clang running on ppc64le-mlir-rhel-test while building mlir at step 6 "test-build-check-mlir-build-only-check-mlir".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/129/builds/16038

Here is the relevant piece of the build log for the reference
Step 6 (test-build-check-mlir-build-only-check-mlir) failure: test (failure)
******************** TEST 'MLIR :: Dialect/Tosa/error_if_check.mlir' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/build/bin/mlir-opt /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics --tosa-validate="profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment"
# executed command: /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/build/bin/mlir-opt /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics '--tosa-validate=profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment'
# .---command stdout------------
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# `-----------------------------
# .---command stderr------------
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:3 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: operand tensor size (in bytes) <= (1 << MAX_LOG2_SIZE - 1)
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x16384x16384x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<1x32767x32767x8xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:15 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x9x9x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:27 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x37x37x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:39 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:51 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:63 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:75 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# `-----------------------------
# error: command failed with exit status: 1

...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 4, 2025

LLVM Buildbot has detected a new failure on builder mlir-rocm-mi200 running on mi200-buildbot while building mlir at step 7 "test-build-check-mlir-build-only-check-mlir".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/177/builds/13988

Here is the relevant piece of the build log for the reference
Step 7 (test-build-check-mlir-build-only-check-mlir) failure: test (failure)
******************** TEST 'MLIR :: Dialect/Tosa/error_if_check.mlir' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/vol/worker/mi200-buildbot/mlir-rocm-mi200/build/bin/mlir-opt /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics --tosa-validate="profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment"
# executed command: /vol/worker/mi200-buildbot/mlir-rocm-mi200/build/bin/mlir-opt /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics '--tosa-validate=profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment'
# .---command stdout------------
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# `-----------------------------
# .---command stderr------------
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:3 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: operand tensor size (in bytes) <= (1 << MAX_LOG2_SIZE - 1)
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x16384x16384x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<1x32767x32767x8xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:15 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x9x9x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:27 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x37x37x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:39 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:51 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:63 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mi200-buildbot/mlir-rocm-mi200/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:75 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# `-----------------------------
# error: command failed with exit status: 1

...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 4, 2025

LLVM Buildbot has detected a new failure on builder mlir-s390x-linux running on systemz-1 while building mlir at step 6 "test-build-unified-tree-check-mlir".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/117/builds/7285

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-mlir) failure: test (failure)
******************** TEST 'MLIR :: Dialect/Tosa/error_if_check.mlir' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/uweigand/sandbox/buildbot/mlir-s390x-linux/build/bin/mlir-opt /home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics --tosa-validate="profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment"
# executed command: /home/uweigand/sandbox/buildbot/mlir-s390x-linux/build/bin/mlir-opt /home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics '--tosa-validate=profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment'
# .---command stdout------------
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# `-----------------------------
# .---command stderr------------
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:3 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: operand tensor size (in bytes) <= (1 << MAX_LOG2_SIZE - 1)
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x16384x16384x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<1x32767x32767x8xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:15 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x9x9x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:27 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x37x37x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:39 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:51 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:63 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:75 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# `-----------------------------
# error: command failed with exit status: 1

...

Jerry-Ge added a commit that referenced this pull request Mar 4, 2025
Jerry-Ge added a commit that referenced this pull request Mar 4, 2025
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 4, 2025

LLVM Buildbot has detected a new failure on builder mlir-nvidia running on mlir-nvidia while building mlir at step 7 "test-build-check-mlir-build-only-check-mlir".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/138/builds/11147

Here is the relevant piece of the build log for the reference
Step 7 (test-build-check-mlir-build-only-check-mlir) failure: test (failure)
******************** TEST 'MLIR :: Dialect/Tosa/error_if_check.mlir' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/bin/mlir-opt /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics --tosa-validate="profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment"
# executed command: /vol/worker/mlir-nvidia/mlir-nvidia/llvm.obj/bin/mlir-opt /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics '--tosa-validate=profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment'
# .---command stdout------------
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# `-----------------------------
# .---command stderr------------
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:3 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: operand tensor size (in bytes) <= (1 << MAX_LOG2_SIZE - 1)
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x16384x16384x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<1x32767x32767x8xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:15 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x9x9x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:27 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x37x37x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:39 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:51 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:63 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:75 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# `-----------------------------
# error: command failed with exit status: 1

...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 4, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building mlir at step 10 "Add check check-mlir".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/18208

Here is the relevant piece of the build log for the reference
Step 10 (Add check check-mlir) failure: test (failure)
******************** TEST 'MLIR :: Dialect/Tosa/error_if_check.mlir' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/mlir-opt /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics --tosa-validate="profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment"
# executed command: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/mlir-opt /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics '--tosa-validate=profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment'
# .---command stdout------------
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# `-----------------------------
# .---command stderr------------
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:3 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: operand tensor size (in bytes) <= (1 << MAX_LOG2_SIZE - 1)
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x16384x16384x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<1x32767x32767x8xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:15 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x9x9x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:27 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x37x37x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:39 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:51 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:63 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:75 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# `-----------------------------
# error: command failed with exit status: 1

...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 4, 2025

LLVM Buildbot has detected a new failure on builder mlir-nvidia-gcc7 running on mlir-nvidia while building mlir at step 7 "test-build-check-mlir-build-only-check-mlir".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/116/builds/11055

Here is the relevant piece of the build log for the reference
Step 7 (test-build-check-mlir-build-only-check-mlir) failure: test (failure)
******************** TEST 'MLIR :: Dialect/Tosa/error_if_check.mlir' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/bin/mlir-opt /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics --tosa-validate="profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment"
# executed command: /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.obj/bin/mlir-opt /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics '--tosa-validate=profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment'
# .---command stdout------------
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# `-----------------------------
# .---command stderr------------
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:3 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: operand tensor size (in bytes) <= (1 << MAX_LOG2_SIZE - 1)
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x16384x16384x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<1x32767x32767x8xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:15 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x9x9x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:27 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x37x37x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:39 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:51 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:63 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /vol/worker/mlir-nvidia/mlir-nvidia-gcc7/llvm.src/mlir/test/Dialect/Tosa/error_if_check.mlir:75 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# `-----------------------------
# error: command failed with exit status: 1

...

llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Mar 4, 2025
@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 4, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-hwasan running on sanitizer-buildbot11 while building mlir at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/7907

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 86872 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90
FAIL: MLIR :: Dialect/Tosa/error_if_check.mlir (81849 of 86872)
******************** TEST 'MLIR :: Dialect/Tosa/error_if_check.mlir' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/mlir-opt /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics --tosa-validate="profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment"
# executed command: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/mlir-opt /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics '--tosa-validate=profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment'
# .---command stdout------------
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# `-----------------------------
# .---command stderr------------
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:3 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: operand tensor size (in bytes) <= (1 << MAX_LOG2_SIZE - 1)
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x16384x16384x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<1x32767x32767x8xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:15 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x9x9x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:27 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x37x37x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:39 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:51 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
Step 11 (stage2/hwasan check) failure: stage2/hwasan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:512: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 86872 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90
FAIL: MLIR :: Dialect/Tosa/error_if_check.mlir (81849 of 86872)
******************** TEST 'MLIR :: Dialect/Tosa/error_if_check.mlir' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/mlir-opt /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics --tosa-validate="profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment"
# executed command: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/mlir-opt /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics '--tosa-validate=profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment'
# .---command stdout------------
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# `-----------------------------
# .---command stderr------------
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:3 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: operand tensor size (in bytes) <= (1 << MAX_LOG2_SIZE - 1)
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x16384x16384x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<1x32767x32767x8xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:15 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x9x9x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:27 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x37x37x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:39 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:51 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>

@llvm-ci
Copy link
Collaborator

llvm-ci commented Mar 4, 2025

LLVM Buildbot has detected a new failure on builder premerge-monolithic-linux running on premerge-linux-1 while building mlir at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/24629

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'MLIR :: Dialect/Tosa/error_if_check.mlir' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/build/buildbot/premerge-monolithic-linux/build/bin/mlir-opt /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics --tosa-validate="profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment"
# executed command: /build/buildbot/premerge-monolithic-linux/build/bin/mlir-opt /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir -split-input-file -verify-diagnostics '--tosa-validate=profile=pro_int,pro_fp extension=int16,int4,bf16,fp8e4m3,fp8e5m2,fft,variable,controlflow,dynamic strict-op-spec-alignment'
# .---command stdout------------
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# | // -----
# `-----------------------------
# .---command stderr------------
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:3 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: operand tensor size (in bytes) <= (1 << MAX_LOG2_SIZE - 1)
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x16384x16384x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<1x32767x32767x8xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:15 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x9x9x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:27 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x37x37x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:39 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:51 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:63 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# | unknown TOSA extension name passed in: dynamic, supported extension are int16, int4, bf16, fp8e4m3, fp8e5m2, fft, variable and controlflow
# | within split at /build/buildbot/premerge-monolithic-linux/llvm-project/mlir/test/Dialect/Tosa/error_if_check.mlir:75 offset :9:8: error: unexpected error: 'tosa.resize' op failed level check: result shape dimension cannot be dynamic
# |   %1 = tosa.resize %arg0, %scale, %offset, %border { mode = "BILINEAR" } : (tensor<1x8x8x8xf32>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<?x?x?x?xf32>
# |        ^
# `-----------------------------
# error: command failed with exit status: 1

...

jph-13 pushed a commit to jph-13/llvm-project that referenced this pull request Mar 21, 2025
Some of the error_if checks were missed in this PR:
llvm#124956

Add back those tests to check suitable sizes for Resize

Signed-off-by: Luke Hutton <[email protected]>
Co-authored-by: Luke Hutton <[email protected]>
jph-13 pushed a commit to jph-13/llvm-project that referenced this pull request Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants