Skip to content

Commit

Permalink
Bump IREE to 05bbcf1385146d075829cd940a52bf06961614d0
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhang93 committed Oct 17, 2024
1 parent 79e5983 commit 7402884
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module attributes { transform.with_named_sequence } {
%padded, %pad, %__ = transform.structured.pad %tiled_matmul {
padding_values=[0 : i32, 0 : i32, 0 : i32],
padding_dimensions=[0, 1, 2],
pack_paddings=[1, 1, 1],
nofold_flags=[1, 1, 1],
copy_back_op="linalg.copy"
} : (!transform.any_op) -> (!transform.any_op, !transform.any_op, !transform.any_op)
%pad_dps = transform.structured.rewrite_in_destination_passing_style %pad : (!transform.any_op) -> !transform.any_op
Expand Down Expand Up @@ -89,7 +89,7 @@ module attributes { transform.with_named_sequence } {
%padded_1, %pad_1, %_ = transform.structured.pad %tiled_matmul_1 {
padding_values=[0 : i32, 0 : i32, 0 : i32],
padding_dimensions=[0, 1, 2],
pack_paddings=[0, 0, 1],
nofold_flags=[0, 0, 1],
copy_back_op="linalg.copy"
} : (!transform.any_op) -> (!transform.any_op, !transform.any_op, !transform.any_op)
%pad_1_dps = transform.structured.rewrite_in_destination_passing_style %pad_1 : (!transform.any_op) -> !transform.any_op
Expand All @@ -114,7 +114,7 @@ module attributes { transform.with_named_sequence } {
%padded_reduction, %pad_reduction, %___ = transform.structured.pad %tiled_reduction {
padding_values=[0 : i32, 0 : i32, 0 : i32],
padding_dimensions=[0, 1, 2],
pack_paddings=[1, 1, 0],
nofold_flags=[1, 1, 0],
copy_back_op="linalg.copy"
} : (!transform.any_op) -> (!transform.any_op, !transform.any_op, !transform.any_op)
%pad_2_dps = transform.structured.rewrite_in_destination_passing_style %pad_reduction : (!transform.any_op) -> !transform.any_op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module attributes { transform.with_named_sequence } {
%padded, %pad, %__ = transform.structured.pad %tiled_matmul {
padding_values=[0 : i32, 0 : i32, 0 : i32],
padding_dimensions=[0, 1, 2],
pack_paddings=[1, 1, 1],
nofold_flags=[1, 1, 1],
copy_back_op="linalg.copy"
} : (!transform.any_op) -> (!transform.any_op, !transform.any_op, !transform.any_op)
%pad_dps = transform.structured.rewrite_in_destination_passing_style %pad : (!transform.any_op) -> !transform.any_op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module attributes { transform.with_named_sequence } {
padding_values=[0 : i32, 0 : i32, 0 : i32],
padding_dimensions=[0, 1, 2],
pad_to_multiple_of=[64, 64, 64],
pack_paddings=[1, 1, 1],
nofold_flags=[1, 1, 1],
copy_back_op="linalg.copy"
} : (!transform.any_op) -> (!transform.any_op, !transform.any_op, !transform.any_op)
%pad_dps = transform.structured.rewrite_in_destination_passing_style %pad : (!transform.any_op) -> !transform.any_op
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ getFirstLevelLinalgPaddingOptions(IRRewriter &rewriter,
// For the operations with 2 input and 1 output operands, the packPadding
// option should be [1, 1, 1]. For `linalg.conv_2d_nhwc_hwcf_q` op, there are
// 5 operands, and the packPadding options should be [1, 1, 0, 0, 1].
SmallVector<bool> packPaddings(linalgOp->getNumOperands(), false);
packPaddings[0] = true;
packPaddings[1] = true;
packPaddings.back() = true;
options.packPaddings = packPaddings;
SmallVector<bool> nofoldFlags(linalgOp->getNumOperands(), false);
nofoldFlags[0] = true;
nofoldFlags[1] = true;
nofoldFlags.back() = true;
options.nofoldFlags = nofoldFlags;

options.paddingDimensions = getPaddingDimensions(linalgOp);
SmallVector<int64_t> padToMultipleOf(options.paddingDimensions.size(), 1);
Expand All @@ -87,9 +87,9 @@ getSecondLevelLinalgPaddingOptions(IRRewriter &rewriter,
options.paddingValues = paddingValues;

// In the second level, we only pad the output operand.
SmallVector<bool> packPaddings(linalgOp->getNumOperands(), false);
packPaddings.back() = true;
options.packPaddings = packPaddings;
SmallVector<bool> nofoldFlags(linalgOp->getNumOperands(), false);
nofoldFlags.back() = true;
options.nofoldFlags = nofoldFlags;

options.paddingDimensions = getPaddingDimensions(linalgOp);
SmallVector<int64_t> padToMultipleOf(options.paddingDimensions.size(), 1);
Expand All @@ -110,10 +110,10 @@ getThirdLevelLinalgPaddingOptions(IRRewriter &rewriter,
options.paddingValues = paddingValues;

// In the third level, we only pad the input operands.
SmallVector<bool> packPaddings(linalgOp->getNumOperands(), false);
packPaddings[0] = true;
packPaddings[1] = true;
options.packPaddings = packPaddings;
SmallVector<bool> nofoldFlags(linalgOp->getNumOperands(), false);
nofoldFlags[0] = true;
nofoldFlags[1] = true;
options.nofoldFlags = nofoldFlags;

options.paddingDimensions = getPaddingDimensions(linalgOp);
SmallVector<int64_t> padToMultipleOf(options.paddingDimensions.size(), 1);
Expand Down
2 changes: 1 addition & 1 deletion third_party/iree
Submodule iree updated 79 files
+8 −5 .github/workflows/build_package.yml
+2 −2 .github/workflows/pkgci_build_packages.yml
+2 −2 .github/workflows/pkgci_regression_test.yml
+55 −2 .github/workflows/pkgci_test_onnx.yml
+1 −1 build_tools/pkgci/build_linux_packages.sh
+3 −3 build_tools/python_deploy/build_linux_packages.sh
+6 −3 build_tools/python_deploy/install_macos_deps.sh
+8 −1 build_tools/python_deploy/install_windows_deps.ps1
+13 −11 compiler/plugins/input/Torch/InputConversion/BindSymbolicShapes.cpp
+9 −0 compiler/plugins/input/Torch/InputConversion/ConvertTMTensorToLinalgExt.cpp
+16 −4 compiler/plugins/input/Torch/InputConversion/test/attention.mlir
+4 −2 compiler/plugins/input/Torch/InputConversion/test/bind_symbolic_shapes.mlir
+28 −2 compiler/plugins/target/ROCM/ROCMTarget.cpp
+28 −0 compiler/plugins/target/ROCM/test/opt_pass_plugin/CMakeLists.txt
+82 −0 compiler/plugins/target/ROCM/test/opt_pass_plugin/GPUHello.cpp
+39 −0 compiler/plugins/target/ROCM/test/opt_pass_plugin/gpu_hello.mlir
+4 −1 compiler/src/iree/compiler/Codegen/Common/GPU/test/gpu_tensor_alloc.mlir
+4 −1 compiler/src/iree/compiler/Codegen/LLVMCPU/test/select_x86_64_lowering_strategy.mlir
+2 −2 compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUPromoteMatmulToFitMMA.cpp
+8 −2 compiler/src/iree/compiler/Codegen/LLVMGPU/test/ROCDL/config_vector_distribute_gfx940.mlir
+12 −3 compiler/src/iree/compiler/Codegen/LLVMGPU/test/ROCDL/pipeline_vector_distribute_gfx940.mlir
+1 −1 compiler/src/iree/compiler/Codegen/LLVMGPU/test/set_transform_strategy_batch_matmul.mlir
+2 −2 compiler/src/iree/compiler/Codegen/LLVMGPU/test/set_transform_strategy_convolution.mlir
+4 −4 compiler/src/iree/compiler/Codegen/LLVMGPU/test/set_transform_strategy_matmul.mlir
+0 −5 compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/Patterns.cpp
+0 −4 compiler/src/iree/compiler/Dialect/Flow/Conversion/TensorToFlow/Patterns.h
+0 −7 compiler/src/iree/compiler/Dialect/Flow/Transforms/Canonicalizer.cpp
+2 −2 compiler/src/iree/compiler/Dialect/Flow/Transforms/RegionOpUtils.cpp
+0 −24 compiler/src/iree/compiler/Dialect/Flow/Transforms/test/flow_canonicalize.mlir
+26 −0 compiler/src/iree/compiler/Dialect/LinalgExt/IR/AggregatedOpInterfaceImpl.cpp
+33 −0 compiler/src/iree/compiler/Dialect/LinalgExt/IR/LinalgExtOps.cpp
+6 −0 compiler/src/iree/compiler/Dialect/LinalgExt/IR/LinalgExtOps.td
+20 −5 compiler/src/iree/compiler/Dialect/LinalgExt/IR/test/invalid.mlir
+35 −8 compiler/src/iree/compiler/Dialect/LinalgExt/IR/test/roundtrip.mlir
+1 −0 compiler/src/iree/compiler/Dialect/LinalgExt/Transforms/DecomposeAttention.cpp
+3 −0 compiler/src/iree/compiler/Dialect/LinalgExt/Transforms/ReshapeFusion.cpp
+3 −0 compiler/src/iree/compiler/Dialect/LinalgExt/Transforms/TileAttention.cpp
+7 −1 compiler/src/iree/compiler/Dialect/LinalgExt/Transforms/test/convert_to_online_attention.mlir
+12 −3 compiler/src/iree/compiler/Dialect/LinalgExt/Transforms/test/decompose_online_attention.mlir
+46 −11 compiler/src/iree/compiler/Dialect/LinalgExt/Transforms/test/tiling.mlir
+5 −0 compiler/src/iree/compiler/Dialect/Stream/Transforms/Passes.cpp
+110 −1 compiler/src/iree/compiler/Dialect/Util/IR/UtilOpFolders.cpp
+65 −14 compiler/src/iree/compiler/Dialect/Util/IR/UtilOps.cpp
+8 −4 compiler/src/iree/compiler/Dialect/Util/IR/UtilOps.td
+1 −0 compiler/src/iree/compiler/Dialect/Util/IR/test/BUILD.bazel
+1 −0 compiler/src/iree/compiler/Dialect/Util/IR/test/CMakeLists.txt
+50 −0 compiler/src/iree/compiler/Dialect/Util/IR/test/assume_folding.mlir
+9 −1 compiler/src/iree/compiler/Dialect/Util/IR/test/op_verification.mlir
+2 −0 compiler/src/iree/compiler/Dialect/Util/Transforms/BUILD.bazel
+2 −0 compiler/src/iree/compiler/Dialect/Util/Transforms/CMakeLists.txt
+88 −12 compiler/src/iree/compiler/Dialect/Util/Transforms/OptimizeIntArithmetic.cpp
+11 −0 compiler/src/iree/compiler/Dialect/Util/Transforms/test/integer_divisibility.mlir
+122 −0 compiler/src/iree/compiler/Dialect/Util/Transforms/test/optimize_int_arithmetic.mlir
+5 −56 compiler/src/iree/compiler/DispatchCreation/FuseHorizontalContractions.cpp
+60 −16 compiler/src/iree/compiler/DispatchCreation/FuseMultiUseElementwiseProducer.cpp
+33 −0 compiler/src/iree/compiler/DispatchCreation/FusionUtils.cpp
+44 −0 compiler/src/iree/compiler/DispatchCreation/FusionUtils.h
+40 −10 compiler/src/iree/compiler/DispatchCreation/test/attention_fuse_by_expansion.mlir
+12 −3 compiler/src/iree/compiler/DispatchCreation/test/clone_producers_into_dispatch_regions.mlir
+8 −2 compiler/src/iree/compiler/DispatchCreation/test/dispatch_linalg_ext_fusion.mlir
+6 −50 compiler/src/iree/compiler/DispatchCreation/test/dispatch_linalg_on_tensors.mlir
+8 −2 compiler/src/iree/compiler/DispatchCreation/test/fold_transpose.mlir
+25 −0 compiler/src/iree/compiler/DispatchCreation/test/fuse_multiuse_elementwise_producer.mlir
+8 −2 compiler/src/iree/compiler/Preprocessing/Common/test/fold_attention_with_transpose.mlir
+12 −36 docs/website/docs/guides/deployment-configurations/cpu.md
+24 −29 docs/website/docs/guides/deployment-configurations/gpu-cuda.md
+29 −1 docs/website/docs/guides/deployment-configurations/gpu-rocm.md
+12 −36 docs/website/docs/guides/deployment-configurations/gpu-vulkan.md
+29 −0 docs/website/docs/guides/deployment-configurations/snippets/_iree-compiler-from-release.md
+7 −0 docs/website/docs/guides/deployment-configurations/snippets/_iree-run-module-driver-list.md
+19 −0 docs/website/docs/guides/deployment-configurations/snippets/_iree-runtime-from-release.md
+1 −0 docs/website/mkdocs.yml
+1 −1 experimental/regression_suite/shark-test-suite-models/sdxl/test_unet.py
+4 −1 tests/e2e/attention/generate_e2e_attention_tests.py
+84 −3 tests/e2e/linalg_ext_ops/attention.mlir
+3 −54 tests/e2e/regression/BUILD.bazel
+3 −39 tests/e2e/regression/CMakeLists.txt
+1 −1 third_party/llvm-project
+1 −1 third_party/stablehlo

0 comments on commit 7402884

Please sign in to comment.