Skip to content

Disable some linalg_ext_ops tests on Emscripten while failing. - #12127

Merged
ScottTodd merged 2 commits into
iree-org:mainfrom
ScottTodd:emscripten-linalgext
Feb 9, 2023
Merged

ScottTodd merged 2 commits into
iree-org:mainfrom
ScottTodd:emscripten-linalgext

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

Least-hacky way I could think of to disable building the iree_tests_e2e_linalg_ext_ops_check_llvm-cpu_local-task_attention.mlir target on Emscripten while we work on a fix.

See #12041 (comment) and https://github.com/iree-org/iree/actions/runs/4130706149/jobs/7137719751

[14/350] Generating check_llvm-cpu_local-task_attention.mlir_module.vmfb from attention.mlir
FAILED: tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb /work/build-emscripten/tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb 
cd /work/build-emscripten/tests/e2e/linalg_ext_ops && /work/full-build-dir/install/bin/iree-compile --output-format=vm-bytecode --mlir-print-op-on-diagnostic=false --iree-hal-target-backends=llvm-cpu /work/tests/e2e/linalg_ext_ops/attention.mlir -o check_llvm-cpu_local-task_attention.mlir_module.vmfb --iree-hal-executable-object-search-path=\"/work/build-emscripten\" --iree-llvm-target-triple=wasm32-unknown-emscripten
/work/tests/e2e/linalg_ext_ops/attention.mlir:6:8: error: 'linalg.generic' op inferred input/output operand #3 has shape's dimension #0 to be 2, but found 4
  %1 = iree_linalg_ext.attention ins(%query, %key, %value : tensor<1x4x4xf32>,
       ^

#12081 will run the Emscripten CI on presubmit to catch errors like this sooner.

@GMNGeoffrey GMNGeoffrey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh this is rather hacky. Could we list the excluded tests in the emscripten build script instead?

Comment thread tests/e2e/linalg_ext_ops/BUILD Resolved
@ScottTodd

Copy link
Copy Markdown
Member Author

Ugh this is rather hacky. Could we list the excluded tests in the emscripten build script instead?

No, it's not a test :/ it's a build target that iree-test-deps depends on. I tried adding EXCLUDE_FROM_ALL, and I don't see a way to remove_dependencies() (inverse of add_dependencies()).

@GMNGeoffrey GMNGeoffrey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, ok

@ScottTodd
ScottTodd enabled auto-merge (squash) February 9, 2023 19:00
@ScottTodd
ScottTodd merged commit c691b20 into iree-org:main Feb 9, 2023
@ScottTodd
ScottTodd deleted the emscripten-linalgext branch February 9, 2023 19:43
qedawkins pushed a commit to qedawkins/iree that referenced this pull request Apr 2, 2023
…org#12127)

Least-hacky way I could think of to disable building the
`iree_tests_e2e_linalg_ext_ops_check_llvm-cpu_local-task_attention.mlir`
target on Emscripten while we work on a fix.

See iree-org#12041 (comment)
and
https://github.com/iree-org/iree/actions/runs/4130706149/jobs/7137719751

```
[14/350] Generating check_llvm-cpu_local-task_attention.mlir_module.vmfb from attention.mlir
FAILED: tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb /work/build-emscripten/tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb 
cd /work/build-emscripten/tests/e2e/linalg_ext_ops && /work/full-build-dir/install/bin/iree-compile --output-format=vm-bytecode --mlir-print-op-on-diagnostic=false --iree-hal-target-backends=llvm-cpu /work/tests/e2e/linalg_ext_ops/attention.mlir -o check_llvm-cpu_local-task_attention.mlir_module.vmfb --iree-hal-executable-object-search-path=\"/work/build-emscripten\" --iree-llvm-target-triple=wasm32-unknown-emscripten
/work/tests/e2e/linalg_ext_ops/attention.mlir:6:8: error: 'linalg.generic' op inferred input/output operand iree-org#3 has shape's dimension #0 to be 2, but found 4
  %1 = iree_linalg_ext.attention ins(%query, %key, %value : tensor<1x4x4xf32>,
       ^
```

iree-org#12081 will run the Emscripten CI
on presubmit to catch errors like this sooner.
jpienaar pushed a commit that referenced this pull request May 1, 2023
Least-hacky way I could think of to disable building the
`iree_tests_e2e_linalg_ext_ops_check_llvm-cpu_local-task_attention.mlir`
target on Emscripten while we work on a fix.

See #12041 (comment)
and
https://github.com/iree-org/iree/actions/runs/4130706149/jobs/7137719751

```
[14/350] Generating check_llvm-cpu_local-task_attention.mlir_module.vmfb from attention.mlir
FAILED: tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb /work/build-emscripten/tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb 
cd /work/build-emscripten/tests/e2e/linalg_ext_ops && /work/full-build-dir/install/bin/iree-compile --output-format=vm-bytecode --mlir-print-op-on-diagnostic=false --iree-hal-target-backends=llvm-cpu /work/tests/e2e/linalg_ext_ops/attention.mlir -o check_llvm-cpu_local-task_attention.mlir_module.vmfb --iree-hal-executable-object-search-path=\"/work/build-emscripten\" --iree-llvm-target-triple=wasm32-unknown-emscripten
/work/tests/e2e/linalg_ext_ops/attention.mlir:6:8: error: 'linalg.generic' op inferred input/output operand #3 has shape's dimension #0 to be 2, but found 4
  %1 = iree_linalg_ext.attention ins(%query, %key, %value : tensor<1x4x4xf32>,
       ^
```

#12081 will run the Emscripten CI
on presubmit to catch errors like this sooner.
rengolin pushed a commit to plaidml/iree that referenced this pull request May 2, 2023
…org#12127)

Least-hacky way I could think of to disable building the
`iree_tests_e2e_linalg_ext_ops_check_llvm-cpu_local-task_attention.mlir`
target on Emscripten while we work on a fix.

See iree-org#12041 (comment)
and
https://github.com/iree-org/iree/actions/runs/4130706149/jobs/7137719751

```
[14/350] Generating check_llvm-cpu_local-task_attention.mlir_module.vmfb from attention.mlir
FAILED: tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb /work/build-emscripten/tests/e2e/linalg_ext_ops/check_llvm-cpu_local-task_attention.mlir_module.vmfb 
cd /work/build-emscripten/tests/e2e/linalg_ext_ops && /work/full-build-dir/install/bin/iree-compile --output-format=vm-bytecode --mlir-print-op-on-diagnostic=false --iree-hal-target-backends=llvm-cpu /work/tests/e2e/linalg_ext_ops/attention.mlir -o check_llvm-cpu_local-task_attention.mlir_module.vmfb --iree-hal-executable-object-search-path=\"/work/build-emscripten\" --iree-llvm-target-triple=wasm32-unknown-emscripten
/work/tests/e2e/linalg_ext_ops/attention.mlir:6:8: error: 'linalg.generic' op inferred input/output operand iree-org#3 has shape's dimension #0 to be 2, but found 4
  %1 = iree_linalg_ext.attention ins(%query, %key, %value : tensor<1x4x4xf32>,
       ^
```

iree-org#12081 will run the Emscripten CI
on presubmit to catch errors like this sooner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants