forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GPU][DT] Add support for GPU data-tiling E2E tests. (iree-org#18591)
The revision introduces GPUMaterializeHostEncodingPass for early materialization. It is mainly for testing purpose while the codegen for encodings is still in progress. A experimental flag (i.e., `iree-global-opt-experimental-rocm-data-tiling`) is introduced to provide a path for GPU data-tiling e2e tests. In the tests, a `optimization_barrier` op is introduced in between of `set_encoding` op and `unset_encoding` op. The compiler could be clever to cancel data-layout transformation, so a barrier is inserted as a hint. To support the e2e path, the revision adds two additional changes: 1. Implement `MaterializeOptimizationBarrierOp` pattern, which replaces the barrier op with the same op with materialized shape. 2. Implement the fallback for unset_encoding materialization pattern. Currently only f32.f32.f32 and i8.i8.i32 mfma ops are supported. The wmma ops are not supported, so the codegen should turn encodings to nop on the targets that do not yet support the intrinsics. E.g., gfx1100. Note: this only tests set_encoding and unset_encoding. The gemm codegen is still in progress. --------- Signed-off-by: hanhanW <hanhan0912@gmail.com>
- Loading branch information
Showing
11 changed files
with
467 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2024 The IREE Authors | ||
# | ||
# Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
# See https://llvm.org/LICENSE.txt for license information. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
# Tests for end-to-end IREE support specific to the vulkan-spirv lowering. | ||
|
||
load("//build_tools/bazel:iree_check_test.bzl", "iree_check_single_backend_test_suite") | ||
|
||
package( | ||
features = ["layering_check"], | ||
licenses = ["notice"], # Apache 2.0 | ||
) | ||
|
||
iree_check_single_backend_test_suite( | ||
name = "check_rocm_hip", | ||
srcs = ["encoding.mlir"], | ||
compiler_flags = [ | ||
"--iree-global-opt-experimental-rocm-data-tiling", | ||
], | ||
driver = "hip", | ||
target_backend = "rocm", | ||
) |
Oops, something went wrong.