Repository navigation
Run 'emscripten' CI job on presubmit. - #12081
Conversation
This is already covered by the default llvm-cpu suite, when building with Emscripten. Developers won't be able to test the compilation without running under Emscripten though... just the same as they can't test other LLVM target triples.
|
|
||
| # emscripten is not in the test matrix because it is set as | ||
| # postsubmission-only. | ||
| cross_compile_and_test: |
There was a problem hiding this comment.
@pzread commented on #10746 (comment) to put the suffix _test in the name. I am okay either way. Will defer to you can Jerry to decide the name.
There was a problem hiding this comment.
I have a low-priority item to rework the naming of everything. We had a Discord discussion starting here: https://discord.com/channels/689900678990135345/689957613152239638/1054588881045037056. I agree that the length is a problem here. That view being readable is pretty important :-) Maybe we can override name using the matrix? I'm not sure if that's possible. So far we've just used the job id as the name (I think it's simpler that way), but we do have the ability to configure it. Then it could be android_armv8.2-a_arm64-v8a and such (no docker container name either)
There was a problem hiding this comment.
That will be nice. We can also steer towards using job matrices for more configurations (that will improve grouping in the UI and reduce duplication in the .yml).
There was a problem hiding this comment.
This shouldn't block turning on emscripten though. Let's address that later
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.
…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.
Fixes iree-org#12044 This job is fast and stable enough to run on presubmit now. Sample run: https://github.com/iree-org/iree/actions/runs/4107338632/jobs/7086808679 The `xla_ops/check_llvm-cpu-wasm` test suite can also be removed now, as we get similar coverage from the llvm-cpu suite and this code: https://github.com/iree-org/iree/blob/9691c91338feaaac26bdf14356ab7d5b877ce302/build_tools/cmake/iree_macros.cmake#L446-L451 (when compiling for Emscripten)
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.
Fixes #12044 This job is fast and stable enough to run on presubmit now. Sample run: https://github.com/iree-org/iree/actions/runs/4107338632/jobs/7086808679 The `xla_ops/check_llvm-cpu-wasm` test suite can also be removed now, as we get similar coverage from the llvm-cpu suite and this code: https://github.com/iree-org/iree/blob/9691c91338feaaac26bdf14356ab7d5b877ce302/build_tools/cmake/iree_macros.cmake#L446-L451 (when compiling for Emscripten)
…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.
Fixes iree-org#12044 This job is fast and stable enough to run on presubmit now. Sample run: https://github.com/iree-org/iree/actions/runs/4107338632/jobs/7086808679 The `xla_ops/check_llvm-cpu-wasm` test suite can also be removed now, as we get similar coverage from the llvm-cpu suite and this code: https://github.com/iree-org/iree/blob/9691c91338feaaac26bdf14356ab7d5b877ce302/build_tools/cmake/iree_macros.cmake#L446-L451 (when compiling for Emscripten)


Fixes #12044
This job is fast and stable enough to run on presubmit now.
Sample run: https://github.com/iree-org/iree/actions/runs/4107338632/jobs/7086808679
The
xla_ops/check_llvm-cpu-wasmtest suite can also be removed now, as we get similar coverage from the llvm-cpu suite and this code:iree/build_tools/cmake/iree_macros.cmake
Lines 446 to 451 in 9691c91