Skip to content

Enable IREE_TARGET_BACKEND_WEBGPU in build scripts for CI coverage. - #10627

Merged
ScottTodd merged 7 commits into
iree-org:mainfrom
ScottTodd:webgpu-compiler-tests
Oct 25, 2022
Merged

ScottTodd merged 7 commits into
iree-org:mainfrom
ScottTodd:webgpu-compiler-tests

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

Split from #10134 - this starts building the WebGPU compiler target backend and runs the tests added in that PR.

@ScottTodd ScottTodd added infrastructure Relating to build systems, CI, or testing codegen/spirv SPIR-V code generation compiler backend platform/web 🌐 Web-specific build, execution, benchmarking, and deployment labels Oct 3, 2022
@ScottTodd

Copy link
Copy Markdown
Member Author

Besides an ASan flake, this seems to be working (not running out of disk space) now, probably thanks to the stop-gap in #10754.

@ScottTodd
ScottTodd marked this pull request as ready for review October 24, 2022 21:25
ScottTodd added a commit that referenced this pull request Oct 25, 2022
Fixes #10145 (thanks to
https://bugs.chromium.org/p/tint/issues/detail?id=1041 being fixed)

I can also successfully compile a tflite posenet program now (will
continue testing with others).

These tests are not yet running on our CI - see
#10627 for that.

# Enable WebGPU compiler builds and tests. All deps get fetched as needed,
# but some of the deps are too large to enable by default for all developers.
"-DIREE_TARGET_BACKEND_WEBGPU=ON"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we want to also enable this in build_and_test_asan.sh and build_and_test_tsan.sh?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oo I think that's a good idea. I'll try it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Hmm... the ASan build (not even getting to tests) fails with

_deps/tint-build/src/tint/libtint_diagnostic_utils.a(source.cc.o): In function `tint::(anonymous namespace)::ParseLineBreak(std::basic_string_view<char, std::char_traits<char> >, unsigned long, bool*, unsigned long*)':
/work/build-asan/_deps/tint-src/src/tint/source.cc:31: undefined reference to `tint::text::utf8::Decode(unsigned char const*, unsigned long)'
/work/build-asan/_deps/tint-src/src/tint/source.cc:58: undefined reference to `tint::text::utf8::Decode(unsigned char const*, unsigned long)'

that happens even when I set -DTINT_ENABLE_ASAN=ON, and I'm not sure how much it's worth debugging further.

@ScottTodd
ScottTodd enabled auto-merge (squash) October 25, 2022 20:29
@ScottTodd
ScottTodd merged commit 29b1e88 into iree-org:main Oct 25, 2022
@ScottTodd
ScottTodd deleted the webgpu-compiler-tests branch October 25, 2022 21:37
PhaneeshB pushed a commit to PhaneeshB/iree that referenced this pull request Oct 31, 2022
…org#10888)

Fixes iree-org#10145 (thanks to
https://bugs.chromium.org/p/tint/issues/detail?id=1041 being fixed)

I can also successfully compile a tflite posenet program now (will
continue testing with others).

These tests are not yet running on our CI - see
iree-org#10627 for that.
PhaneeshB pushed a commit to PhaneeshB/iree that referenced this pull request Oct 31, 2022
…ree-org#10627)

Split from iree-org#10134 - this starts
building the WebGPU compiler target backend and runs the tests added in
that PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codegen/spirv SPIR-V code generation compiler backend infrastructure Relating to build systems, CI, or testing platform/web 🌐 Web-specific build, execution, benchmarking, and deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants