-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[mlir][linalg] Simplify runtime op verification test case #141454
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
[mlir][linalg] Simplify runtime op verification test case #141454
Conversation
@llvm/pr-subscribers-mlir Author: Matthias Springer (matthias-springer) ChangesSimplify one of the test cases to make it easier to understand what is being verified. Full diff: https://github.com/llvm/llvm-project/pull/141454.diff 1 Files Affected:
diff --git a/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir b/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir
index 5a1bcc7d893bc..dc56a3c52baad 100644
--- a/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir
+++ b/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir
@@ -109,15 +109,12 @@ func.func @main() {
#identity1D = affine_map<(d0) -> (d0)>
func.func @simple_add(%arg0: tensor<?xf32>, %arg1: tensor<?xf32>) -> (tensor<?xf32>) {
- %c0 = arith.constant 0 : index
- %dim = tensor.dim %arg0, %c0 : tensor<?xf32>
- %result = tensor.empty(%dim) : tensor<?xf32>
%0 = linalg.generic {
- indexing_maps = [#identity1D, #identity1D, #identity1D],
+ indexing_maps = [#identity1D, #identity1D],
iterator_types = ["parallel"]
- } ins(%arg0, %arg1 : tensor<?xf32>, tensor<?xf32>)
- outs(%result : tensor<?xf32>) {
- ^bb0(%gen_arg1: f32, %gen_arg2: f32, %out: f32) :
+ } ins(%arg0 : tensor<?xf32>)
+ outs(%arg1 : tensor<?xf32>) {
+ ^bb0(%gen_arg1: f32, %gen_arg2: f32) :
%tmp1 = arith.addf %gen_arg1, %gen_arg2 : f32
linalg.yield %tmp1 : f32
} -> tensor<?xf32>
|
@llvm/pr-subscribers-mlir-linalg Author: Matthias Springer (matthias-springer) ChangesSimplify one of the test cases to make it easier to understand what is being verified. Full diff: https://github.com/llvm/llvm-project/pull/141454.diff 1 Files Affected:
diff --git a/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir b/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir
index 5a1bcc7d893bc..dc56a3c52baad 100644
--- a/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir
+++ b/mlir/test/Integration/Dialect/Linalg/CPU/runtime-verification.mlir
@@ -109,15 +109,12 @@ func.func @main() {
#identity1D = affine_map<(d0) -> (d0)>
func.func @simple_add(%arg0: tensor<?xf32>, %arg1: tensor<?xf32>) -> (tensor<?xf32>) {
- %c0 = arith.constant 0 : index
- %dim = tensor.dim %arg0, %c0 : tensor<?xf32>
- %result = tensor.empty(%dim) : tensor<?xf32>
%0 = linalg.generic {
- indexing_maps = [#identity1D, #identity1D, #identity1D],
+ indexing_maps = [#identity1D, #identity1D],
iterator_types = ["parallel"]
- } ins(%arg0, %arg1 : tensor<?xf32>, tensor<?xf32>)
- outs(%result : tensor<?xf32>) {
- ^bb0(%gen_arg1: f32, %gen_arg2: f32, %out: f32) :
+ } ins(%arg0 : tensor<?xf32>)
+ outs(%arg1 : tensor<?xf32>) {
+ ^bb0(%gen_arg1: f32, %gen_arg2: f32) :
%tmp1 = arith.addf %gen_arg1, %gen_arg2 : f32
linalg.yield %tmp1 : f32
} -> tensor<?xf32>
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/116/builds/13321 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/138/builds/13672 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/41/builds/6908 Here is the relevant piece of the build log for the reference
|
Simplify one of the test cases to make it easier to understand what is being verified.
Simplify one of the test cases to make it easier to understand what is being verified.