Repository navigation
Avoid running slow benchmarks as part of testing - #4364
Conversation
|
|
|
Argh crosscompiling :-/ |
Well it's a bit difficult for me to debug this, since I can't get cross-compiling to work for me locally at all... |
|
The issue isn't even with
|
|
Blargh IDK what's going on here |
|
@antiagainst can you offer any insight on what might be going on with the cross compiling? I can't get a successful local build, so a bit hard for me to debug, but it at least seems to be dependent on which target depends on |
|
So yes, the issue appears to be that during cross compilation, we can't find the |
It's that I didn't mark it |
|
Nice catch! My goal (after this HAL rewrite) is to stamp out the last few (reasonable) files that don't bazel-to-cmake - will be much nice when able to be consistently relied upon. |
7163f1b to
2111841
Compare
|
Ok that's working now. I got a successful run on the android build, but force pushed over all my debugging and reverting since I figured no one had been looking at the commit history yet. I'll trigger another one. Sending this for review as a first step. This handles the worst offenders. I think we could actually wrap this in a macro that creates a binary and a test for it. Could either be specialized to benchmarks and automatically pass |
It's good to test that these benchmarks run. It's really annoying to run a billion iterations of them every time you try to run tests. This literally takes longer than all the other tests combined. Instead, make these binaries and invoke them for testing with `--min_benchmark_time=0`. This introduces CMake and Bazel -> CMake support for `run_binary_test`, which runs the specified executable target with the specified args. Punted on support for data dependencies, since these are not required for this use case and I think we still haven't figured out how to do that for CMake tests.
|
Sorry just noticed this.. Looks like it's already resolved? Do you still need my help? |
|
No worries. Yeah I figured out this issue, thanks. Of course now running the tests on android is failing (I only tested the build, whoops...) |
These tests were broken by #4364 (https://buildkite.com/iree/iree-android-arm64-v8a/builds/3408#2703aa49-1075-4199-96bb-233f94d8727b). Temporarily disabling to get things green so we avoid regressions while I test out the fix.
* bb0f95e Enable all packages on all every OS. * 7cf454d Add dependencies properly for python install targets. * 827eccf Third attempt: Rename packages to not collide on 'compiler' term. * a3145cb Second attempt: fix some target names and change the docker image. * 763fc1b First attempt: enable all python packages as experimental on linux. * 9364f0f Add install targets for all python packages and configure in CI. * 6fe74ac Correctly get binary name in android run_binary_test (#4403) * b1bc038 Remove special handling for runtime -> compiler dep (#4396) * 38d3c14 Disable run_binary_test on Android (#4402) * 35d4b32 Build an e2e path for linalg on tensors. (#4368) * c0e362c Merge google -> main (#4401) * 7aecc34 Merge branch 'main' into google-to-main * 7dc756b Attempt to appease linter on SUBMODULE_VERSIONS for mlir-emitc * c83f594 Use backward buffer allocation in HLOToLinalgOnBuffers (#4318) * 4889612 Avoid running slow benchmarks as part of testing (#4364) * 9b72435 Default to quoting strings in Bazel -> CMake (#4394) * 2a52c0f Fix m1 builds (#4361) * 30f67df Update cross-compilation for changed experimental flag names (#4365) * dc7d633 Merge pull request #4386 from google/benvanik-hal-pre * 3d577af Move macos out of experimental now that it builds. * 1c2a4bf Note that iree_task_list_discard leaves the list in a usable state. * dcd1b53 Adding utils for common string view and allocator operations. * d2af7f3 Adding iree_atomic_thread_fence (like (std::)atomic_thread_fence). * c691e23 Bazel -> CMake cleanup (#4362) * e002f99 Attempt to pin the python executable more robustly for macos. * eb184f9 Link Foundation and Metal frameworks on macos. * cc8c1b2 Turn -Wunused-variable back on (#4360) * 52ebf7b Use existing script in submodule synchronize action (#4358) * 0f0fffd Get remote name in a more portable way in gh scripting (#4357) * 4868a49 Add one-shot runtime MacOS sanity check workflow. * 44ca211 Actually use the platlib install command for linux wheels. * fd36682 [spirv] Replace SPIRVOpLowering with a local class (#4383) * cf10473 Fix macos matrix spec. * 197f33b Enable windows build as non experimental. * 05190e1 Make pyiree compiler package compatible with manylinux2014. * 626d45a Add missing dep on HLOToLinalg (#4377) * b0e8243 Integrate MLIR-EmitC at iml130/mlir-emitc@a438d3b (#4375) * f0514e4 NFC: Fix some pre-existing yaml lint. * bb1de96 Plumb package suffix, version, and revision info to release packages. * 995d0b7 Moved iree-check-module-main.cc to iree/tools (#4312) * 56e40ac Remove suspected merge conflict in darwin_threading.c. * 938875f Enable macos and windows builds. * 921b46d Rename cmake_configure_ci.py -> cmake_ci.py. * 57435cd Fix typo build_iree -> iree_build. * fd1d06c Fix typo in install-iree -> iree-install. * 2ab4dfc Update workflow dispatch token. * 29f1596 Re-enable tag fetching * f8f4031 Fix issues in snapshot schedule. * bd6cf1f Add scheduled workflow to trigger snapshot releases. * 442b35e Fix typo in runtime matrix check. * b4981b2 Configure pipeline to build IREE runtime wheels. * 77a63cd Make the main python packages cmake installable. * 4e1602a Add cmake_configure_ci.py. * 723ff37 Remove typo from GCC iree_atomic_load_auto macro. * 847ac69 Disable workflow on push to cidev * e666fbf Fixing the casting behavior of atomic compare exchange on windows. * 25c4cb3 Adding merge_from support for IntrusiveList unique_ptr/ref_ptr. * 334d3e2 Update getting_started_linux_cmake.md (#4367) * c9687d4 Update bazel_to_cmake to support testonly for iree_bytecode_module (#4337) * 0657be2 Fix mlir-hlo path in Submodule update scripting (#4356) * d146a3d Add scripting to update mlir-hlo to match LLVM commit (#4348) * 3010d3c Clean up naming in LLVM sync script (#4346) * af6c2d4 Merge pull request #4227 from google/benvanik-tasks-core * 01600a5 Adding an entire RTOS-scale task scheduling system. * b47e6f0 Clarifying note on iree_wait_set_erase. * a60332c Tweaking thread affinity groups to have an SMT flag. This allows us to keep th.. * c5b440d Adding tracing to thread name setters. Turns out, setting the thread name can .. * b544ef6 Allowing threads to be created running (not always suspended). Though creating.. * c3af92e Adding IREE_TRACE_ZONE_SET_COLOR macro. * ed727e2 Plumbing tracy mutex support into iree_slim_mutex_t. * 122d6b8 Adding benoit's MiniLcg pseudo-random number generator. * 142bc6a Adding and/or/xor atomic operations. * 9853806 Adding IREE_ASSERT macros. COPYBARA_INTEGRATE_REVIEW=#4413 from KoolJBlack:main-to-google 594e06c PiperOrigin-RevId: 350634605
* bb0f95e Enable all packages on all every OS. * 7cf454d Add dependencies properly for python install targets. * 827eccf Third attempt: Rename packages to not collide on 'compiler' term. * a3145cb Second attempt: fix some target names and change the docker image. * 763fc1b First attempt: enable all python packages as experimental on linux. * 9364f0f Add install targets for all python packages and configure in CI. * 6fe74ac Correctly get binary name in android run_binary_test (#4403) * b1bc038 Remove special handling for runtime -> compiler dep (#4396) * 38d3c14 Disable run_binary_test on Android (#4402) * 35d4b32 Build an e2e path for linalg on tensors. (#4368) * c0e362c Merge google -> main (#4401) * 7aecc34 Merge branch 'main' into google-to-main * 7dc756b Attempt to appease linter on SUBMODULE_VERSIONS for mlir-emitc * c83f594 Use backward buffer allocation in HLOToLinalgOnBuffers (#4318) * 4889612 Avoid running slow benchmarks as part of testing (#4364) * 9b72435 Default to quoting strings in Bazel -> CMake (#4394) * 2a52c0f Fix m1 builds (#4361) * 30f67df Update cross-compilation for changed experimental flag names (#4365) * dc7d633 Merge pull request #4386 from google/benvanik-hal-pre * 3d577af Move macos out of experimental now that it builds. * 1c2a4bf Note that iree_task_list_discard leaves the list in a usable state. * dcd1b53 Adding utils for common string view and allocator operations. * d2af7f3 Adding iree_atomic_thread_fence (like (std::)atomic_thread_fence). * c691e23 Bazel -> CMake cleanup (#4362) * e002f99 Attempt to pin the python executable more robustly for macos. * eb184f9 Link Foundation and Metal frameworks on macos. * cc8c1b2 Turn -Wunused-variable back on (#4360) * 52ebf7b Use existing script in submodule synchronize action (#4358) * 0f0fffd Get remote name in a more portable way in gh scripting (#4357) * 4868a49 Add one-shot runtime MacOS sanity check workflow. * 44ca211 Actually use the platlib install command for linux wheels. * fd36682 [spirv] Replace SPIRVOpLowering with a local class (#4383) * cf10473 Fix macos matrix spec. * 197f33b Enable windows build as non experimental. * 05190e1 Make pyiree compiler package compatible with manylinux2014. * 626d45a Add missing dep on HLOToLinalg (#4377) * b0e8243 Integrate MLIR-EmitC at iml130/mlir-emitc@a438d3b (#4375) * f0514e4 NFC: Fix some pre-existing yaml lint. * bb1de96 Plumb package suffix, version, and revision info to release packages. * 995d0b7 Moved iree-check-module-main.cc to iree/tools (#4312) * 56e40ac Remove suspected merge conflict in darwin_threading.c. * 938875f Enable macos and windows builds. * 921b46d Rename cmake_configure_ci.py -> cmake_ci.py. * 57435cd Fix typo build_iree -> iree_build. * fd1d06c Fix typo in install-iree -> iree-install. * 2ab4dfc Update workflow dispatch token. * 29f1596 Re-enable tag fetching * f8f4031 Fix issues in snapshot schedule. * bd6cf1f Add scheduled workflow to trigger snapshot releases. * 442b35e Fix typo in runtime matrix check. * b4981b2 Configure pipeline to build IREE runtime wheels. * 77a63cd Make the main python packages cmake installable. * 4e1602a Add cmake_configure_ci.py. * 723ff37 Remove typo from GCC iree_atomic_load_auto macro. * 847ac69 Disable workflow on push to cidev * e666fbf Fixing the casting behavior of atomic compare exchange on windows. * 25c4cb3 Adding merge_from support for IntrusiveList unique_ptr/ref_ptr. * 334d3e2 Update getting_started_linux_cmake.md (#4367) * c9687d4 Update bazel_to_cmake to support testonly for iree_bytecode_module (#4337) * 0657be2 Fix mlir-hlo path in Submodule update scripting (#4356) * d146a3d Add scripting to update mlir-hlo to match LLVM commit (#4348) * 3010d3c Clean up naming in LLVM sync script (#4346) * af6c2d4 Merge pull request #4227 from google/benvanik-tasks-core * 01600a5 Adding an entire RTOS-scale task scheduling system. * b47e6f0 Clarifying note on iree_wait_set_erase. * a60332c Tweaking thread affinity groups to have an SMT flag. This allows us to keep th.. * c5b440d Adding tracing to thread name setters. Turns out, setting the thread name can .. * b544ef6 Allowing threads to be created running (not always suspended). Though creating.. * c3af92e Adding IREE_TRACE_ZONE_SET_COLOR macro. * ed727e2 Plumbing tracy mutex support into iree_slim_mutex_t. * 122d6b8 Adding benoit's MiniLcg pseudo-random number generator. * 142bc6a Adding and/or/xor atomic operations. * 9853806 Adding IREE_ASSERT macros. COPYBARA_INTEGRATE_REVIEW=#4413 from KoolJBlack:main-to-google 594e06c PiperOrigin-RevId: 350634605
It's good to test that these benchmarks run. It's really annoying to run
a billion iterations of them every time you try to run tests. This
literally takes longer than all the other tests combined. Instead, make
these binaries and invoke them for testing with
--min_benchmark_time=0.This introduces CMake and Bazel -> CMake support for
run_binary_test,which runs the specified executable target with the specified args.
Punted on support for data dependencies, since these are not required
for this use case and I think we still haven't figured out how to do
that for CMake tests.