Skip to content

Instantly share code, notes, and snippets.

@AmosLewis
Created April 24, 2025 21:20
Show Gist options
  • Save AmosLewis/f272b4cab9a23a8deb6d83856c80eac5 to your computer and use it in GitHub Desktop.
Save AmosLewis/f272b4cab9a23a8deb6d83856c80eac5 to your computer and use it in GitHub Desktop.
(bisect.venv) ➜ bisect python /home/chi/src/iree/build_tools/pkgci/bisect/bisect_packages.py \
--good-ref=9e494bccb5472c5cc8f0910cbc339db8a2ea9aa7 \
--bad-ref=b4e3694a31a92a814a7b127f288e5928705fb3c4 \
--test-script=/sharedfile/attn/bisect/issue1.sh
Welcome to bisect_packages.py!
------------------------------------------------------------------
--------- Configuration ------------------------------------------
------------------------------------------------------------------
Searching range : '9e494bccb5472c5cc8f0910cbc339db8a2ea9aa7' - 'b4e3694a31a92a814a7b127f288e5928705fb3c4'
Using working directory : '/home/chi/.iree/bisect'
Using test script : '/sharedfile/attn/bisect/issue1.sh'
Current platform is 'Linux-6.8.0-52-generic-x86_64-with-glibc2.35', platform.system is 'Linux'.
Current Python version is '3.11.1 (main, Oct 7 2024, 06:16:08) [GCC 11.4.0]'. This script requires 3.11.
Found gh at '/usr/bin/gh'.
------------------------------------------------------------------
------------------------------------------------------------------
--------- Running git bisect -------------------------------------
------------------------------------------------------------------
Bisecting: 1 revision left to test after this (roughly 1 step)
[8069d7b1f47c73d997c54c8a179cbd60f4ca23da] Regenerate API exports after `iree_input` removal (#20590)
running '/home/chi/.iree/bisect/bisect_run_script.sh'
++ git rev-parse BISECT_HEAD
+ REF_HASH=8069d7b1f47c73d997c54c8a179cbd60f4ca23da
+ python /home/chi/src/iree/build_tools/pkgci/bisect/../setup_venv.py /home/chi/.iree/bisect/8069d7b1f47c73d997c54c8a179cbd60f4ca23da/.venv --artifact-path=/home/chi/.iree/bisect/8069d7b1f47c73d997c54c8a179cbd60f4ca23da --fetch-git-ref=8069d7b1f47c73d997c54c8a179cbd60f4ca23da
Finding workflow run for ref: 8069d7b1f47c73d997c54c8a179cbd60f4ca23da
Using normalized ref: 8069d7b1f47c73d997c54c8a179cbd60f4ca23da
Running command to list workflow runs:
gh api -H Accept: application/vnd.github+json -H X-GitHub-Api-Version: 2022-11-28 /repos/iree-org/iree/actions/workflows/pkgci.yml/runs?head_sha=8069d7b1f47c73d997c54c8a179cbd60f4ca23da
Found workflow run: https://github.com/iree-org/iree/actions/runs/14636457142
Installing wheels: [(PosixPath('/home/chi/.iree/bisect/8069d7b1f47c73d997c54c8a179cbd60f4ca23da'), 'iree-base-compiler'), (PosixPath('/home/chi/.iree/bisect/8069d7b1f47c73d997c54c8a179cbd60f4ca23da'), 'iree-base-runtime')]
Running command: /home/chi/.iree/bisect/8069d7b1f47c73d997c54c8a179cbd60f4ca23da/.venv/bin/python -m pip install --no-deps --no-index -f /home/chi/.iree/bisect/8069d7b1f47c73d997c54c8a179cbd60f4ca23da --force-reinstall iree-base-compiler
Looking in links: /home/chi/.iree/bisect/8069d7b1f47c73d997c54c8a179cbd60f4ca23da
ERROR: Could not find a version that satisfies the requirement iree-base-compiler (from versions: none)
ERROR: No matching distribution found for iree-base-compiler
Traceback (most recent call last):
File "/home/chi/src/iree/build_tools/pkgci/bisect/../setup_venv.py", line 351, in <module>
sys.exit(main(parse_arguments()))
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/chi/src/iree/build_tools/pkgci/bisect/../setup_venv.py", line 295, in main
return main(args)
^^^^^^^^^^
File "/home/chi/src/iree/build_tools/pkgci/bisect/../setup_venv.py", line 342, in main
subprocess.check_call(cmd)
File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/chi/.iree/bisect/8069d7b1f47c73d997c54c8a179cbd60f4ca23da/.venv/bin/python', '-m', 'pip', 'install', '--no-deps', '--no-index', '-f', '/home/chi/.iree/bisect/8069d7b1f47c73d997c54c8a179cbd60f4ca23da', '--force-reinstall', 'iree-base-compiler']' returned non-zero exit status 1.
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[64671fd96d96d6ed2ec974f006c0f4b8ce039165] [Codegen] Remove dependencies on Flow (#20615)
running '/home/chi/.iree/bisect/bisect_run_script.sh'
++ git rev-parse BISECT_HEAD
+ REF_HASH=64671fd96d96d6ed2ec974f006c0f4b8ce039165
+ python /home/chi/src/iree/build_tools/pkgci/bisect/../setup_venv.py /home/chi/.iree/bisect/64671fd96d96d6ed2ec974f006c0f4b8ce039165/.venv --artifact-path=/home/chi/.iree/bisect/64671fd96d96d6ed2ec974f006c0f4b8ce039165 --fetch-git-ref=64671fd96d96d6ed2ec974f006c0f4b8ce039165
Finding workflow run for ref: 64671fd96d96d6ed2ec974f006c0f4b8ce039165
Using normalized ref: 64671fd96d96d6ed2ec974f006c0f4b8ce039165
Running command to list workflow runs:
gh api -H Accept: application/vnd.github+json -H X-GitHub-Api-Version: 2022-11-28 /repos/iree-org/iree/actions/workflows/pkgci.yml/runs?head_sha=64671fd96d96d6ed2ec974f006c0f4b8ce039165
Found workflow run: https://github.com/iree-org/iree/actions/runs/14635785999
Installing wheels: [(PosixPath('/home/chi/.iree/bisect/64671fd96d96d6ed2ec974f006c0f4b8ce039165'), 'iree-base-compiler'), (PosixPath('/home/chi/.iree/bisect/64671fd96d96d6ed2ec974f006c0f4b8ce039165'), 'iree-base-runtime')]
Running command: /home/chi/.iree/bisect/64671fd96d96d6ed2ec974f006c0f4b8ce039165/.venv/bin/python -m pip install --no-deps --no-index -f /home/chi/.iree/bisect/64671fd96d96d6ed2ec974f006c0f4b8ce039165 --force-reinstall iree-base-compiler
Looking in links: /home/chi/.iree/bisect/64671fd96d96d6ed2ec974f006c0f4b8ce039165
ERROR: Could not find a version that satisfies the requirement iree-base-compiler (from versions: none)
ERROR: No matching distribution found for iree-base-compiler
Traceback (most recent call last):
File "/home/chi/src/iree/build_tools/pkgci/bisect/../setup_venv.py", line 351, in <module>
sys.exit(main(parse_arguments()))
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/chi/src/iree/build_tools/pkgci/bisect/../setup_venv.py", line 295, in main
return main(args)
^^^^^^^^^^
File "/home/chi/src/iree/build_tools/pkgci/bisect/../setup_venv.py", line 342, in main
subprocess.check_call(cmd)
File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/chi/.iree/bisect/64671fd96d96d6ed2ec974f006c0f4b8ce039165/.venv/bin/python', '-m', 'pip', 'install', '--no-deps', '--no-index', '-f', '/home/chi/.iree/bisect/64671fd96d96d6ed2ec974f006c0f4b8ce039165', '--force-reinstall', 'iree-base-compiler']' returned non-zero exit status 1.
64671fd96d96d6ed2ec974f006c0f4b8ce039165 is the first bad commit
commit 64671fd96d96d6ed2ec974f006c0f4b8ce039165
Author: Jorn Tuyls <[email protected]>
Date: Thu Apr 24 09:21:02 2025 +0200
[Codegen] Remove dependencies on Flow (#20615)
Removes the remaining Flow dependencies in Codegen.
Signed-off-by: Jorn Tuyls <[email protected]>
.../src/iree/compiler/Codegen/Common/BUILD.bazel | 4 +-
.../Codegen/Common/BufferizationAnalysis.cpp | 2 -
.../iree/compiler/Codegen/Common/CMakeLists.txt | 4 +-
.../Codegen/Common/CleanupBufferAllocViewPass.cpp | 1 -
.../Codegen/Common/CommonDialectRegistration.cpp | 4 -
.../ConvertToDestinationPassingStylePass.cpp | 2 -
.../Codegen/Common/DecomposePackUnPackOps.cpp | 1 -
.../Common/IREEComprehensiveBufferizePass.cpp | 4 +-
.../Common/MaterializeEncodingIntoPadding.cpp | 4 +-
.../Codegen/Common/TransformExtensions/BUILD.bazel | 1 -
.../Common/TransformExtensions/CMakeLists.txt | 1 -
.../TransformExtensions/CommonExtensions.cpp | 1 -
.../iree/compiler/Codegen/Interfaces/BUILD.bazel | 2 -
.../compiler/Codegen/Interfaces/CMakeLists.txt | 2 -
.../compiler/Codegen/Interfaces/Interfaces.cpp | 2 -
.../src/iree/compiler/Codegen/LLVMCPU/BUILD.bazel | 1 -
.../iree/compiler/Codegen/LLVMCPU/CMakeLists.txt | 1 -
.../src/iree/compiler/Codegen/LLVMGPU/BUILD.bazel | 2 -
.../iree/compiler/Codegen/LLVMGPU/CMakeLists.txt | 2 -
.../LLVMGPU/LLVMGPUPromoteMatmulToFitMMA.cpp | 1 -
.../src/iree/compiler/Codegen/LLVMGPU/Passes.cpp | 1 -
.../src/iree/compiler/Codegen/SPIRV/BUILD.bazel | 1 -
.../src/iree/compiler/Codegen/SPIRV/CMakeLists.txt | 1 -
.../iree/compiler/Codegen/Transforms/BUILD.bazel | 1 -
.../compiler/Codegen/Transforms/CMakeLists.txt | 1 -
.../iree/compiler/Codegen/Transforms/Transforms.h | 1 -
.../src/iree/compiler/Codegen/VMVX/BUILD.bazel | 1 -
.../src/iree/compiler/Codegen/VMVX/CMakeLists.txt | 1 -
.../src/iree/compiler/Codegen/WGSL/BUILD.bazel | 1 -
.../src/iree/compiler/Codegen/WGSL/CMakeLists.txt | 1 -
.../src/iree/compiler/Dialect/Flow/IR/FlowOps.cpp | 104 ---------------------
.../src/iree/compiler/Dialect/Flow/IR/FlowOps.h | 7 --
.../Dialect/TensorExt/Transforms/BUILD.bazel | 31 ++++++
.../Dialect/TensorExt/Transforms/CMakeLists.txt | 29 ++++++
.../Dialect/TensorExt/Transforms/Folders.cpp | 87 +++++++++++++++++
.../Dialect/TensorExt/Transforms/Transforms.h | 23 +++++
.../src/iree/compiler/DispatchCreation/BUILD.bazel | 1 +
.../iree/compiler/DispatchCreation/CMakeLists.txt | 1 +
.../DispatchCreation/ConvertTensorToFlow.cpp | 3 +-
39 files changed, 179 insertions(+), 159 deletions(-)
create mode 100644 compiler/src/iree/compiler/Dialect/TensorExt/Transforms/BUILD.bazel
create mode 100644 compiler/src/iree/compiler/Dialect/TensorExt/Transforms/CMakeLists.txt
create mode 100644 compiler/src/iree/compiler/Dialect/TensorExt/Transforms/Folders.cpp
create mode 100644 compiler/src/iree/compiler/Dialect/TensorExt/Transforms/Transforms.h
bisect found first bad commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment