Skip to content

[mlir][xegpu] Add XeGPU subgroup map propagation analysis for XeGPU SIMT distribution. #130240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ff97239
save work
charithaintc Feb 28, 2025
d0c1144
save work
charithaintc Mar 1, 2025
0b8752c
save work
charithaintc Mar 4, 2025
2890d50
save work
charithaintc Mar 4, 2025
38a388e
save work
charithaintc Mar 5, 2025
8996f11
save work
charithaintc Mar 5, 2025
2463267
Merge branch 'main' into subgroup_propagation
charithaintc Mar 5, 2025
4788845
save work
charithaintc Mar 6, 2025
c7b60d1
save work
charithaintc Mar 6, 2025
462b3c0
save work
charithaintc Mar 7, 2025
27f011f
save work
charithaintc Mar 7, 2025
898b619
save work
charithaintc Mar 7, 2025
9d6519e
Merge branch 'main' into subgroup_propagation
charithaintc Mar 7, 2025
8340402
save work
charithaintc Mar 7, 2025
549e878
save work
charithaintc Mar 7, 2025
abca365
save work
charithaintc Mar 7, 2025
5bd5db5
save work
charithaintc Mar 7, 2025
088a00c
Merge branch 'main' into subgroup_propagation
charithaintc Mar 10, 2025
5820c15
save work
charithaintc Mar 11, 2025
f7b7bdf
save work
charithaintc Mar 11, 2025
f64581a
save work
charithaintc Mar 11, 2025
562b5c7
save work
charithaintc Mar 11, 2025
d8b74b3
save work
charithaintc Mar 11, 2025
9716380
Merge branch 'main' into subgroup_propagation
charithaintc Mar 11, 2025
7196c9f
save work
charithaintc Mar 12, 2025
4c9e641
save work
charithaintc Mar 12, 2025
861f907
save work
charithaintc Mar 14, 2025
8ae122c
Merge branch 'main' into subgroup_propagation
charithaintc Mar 14, 2025
ac337a3
save work
charithaintc Mar 14, 2025
2f3be2f
Merge branch 'main' into subgroup_propagation
charithaintc Mar 14, 2025
7ac804c
save work
charithaintc Mar 14, 2025
0ce71f8
save work
charithaintc Mar 14, 2025
6114c6b
Merge branch 'main' into subgroup_propagation
charithaintc Mar 14, 2025
4949a1f
save work
charithaintc Mar 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions mlir/include/mlir/Dialect/XeGPU/Transforms/Passes.td
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,19 @@ def XeGPUFoldAliasOps : Pass<"xegpu-fold-alias-ops"> {
];
}

def XeGPUSubgroupDistribute : Pass<"xegpu-subgroup-distribute"> {
let summary = "Distribute XeGPU ops to work items";
let description = [{
The pass distributes subgroup level (SIMD) XeGPU ops to work items.
}];
let dependentDialects = [
"memref::MemRefDialect", "xegpu::XeGPUDialect", "vector::VectorDialect"
];
let options = [
Option<"printOnly", "print-analysis-only", "bool",
/*default=*/"false",
"Print the result of the subgroup map propagation analysis and exit.">
];
}

#endif // MLIR_DIALECT_XEGPU_TRANSFORMS_PASSES_TD
1 change: 1 addition & 0 deletions mlir/lib/Dialect/XeGPU/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
add_mlir_dialect_library(MLIRXeGPUTransforms
XeGPUFoldAliasOps.cpp
XeGPUSubgroupDistribute.cpp

ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/XeGPU
Expand Down
Loading
Loading