-
Notifications
You must be signed in to change notification settings - Fork 17
Update IMEX/LLVM versions #399
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
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1 +1 @@ | ||
25123cc3692fdbcf837510f39de47ff353d482fc | ||
0a6d2901990183ecdbab9240dbd8be92036d9c20 |
This file contains hidden or 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 |
---|---|---|
@@ -1 +1 @@ | ||
3191587666aa3d1e53966bc8876614c7197fac4f | ||
add6b2f35f2bcf1f59a2ab2d5b3dab124fe0895a |
This file contains hidden or 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 |
---|---|---|
@@ -1 +1 @@ | ||
f6a756f35a4d0719a96b4e214905369d565d87da | ||
add6b2f35f2bcf1f59a2ab2d5b3dab124fe0895a |
This file contains hidden or 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 |
---|---|---|
|
@@ -764,7 +764,9 @@ loadNdDescTiles(PatternRewriter &rewriter, Location loc, ValueRange loadTiles, | |
if (vnniConf) { | ||
vecLoadType = getVnniVector(tileType.getShape(), tileType.getElementType(), | ||
*vnniConf); | ||
packedAttr = mlir::UnitAttr::get(rewriter.getContext()); | ||
if (!transpose_bit) { | ||
packedAttr = mlir::UnitAttr::get(rewriter.getContext()); | ||
} | ||
} | ||
SmallVector<Value> loadVec; | ||
for (auto tile : loadTiles) { | ||
|
@@ -1165,7 +1167,6 @@ static LogicalResult createDPASKernel(linalg::LinalgOp linalgOp, | |
if (vnniFactor == -1) | ||
return failure(); | ||
|
||
VnniConfig vnniConfA{.vnniFactor = vnniFactor, .vnniAxis = 1}; | ||
VnniConfig vnniConfB{.vnniFactor = vnniFactor, .vnniAxis = 0}; | ||
Comment on lines
-1168
to
1170
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
// Load A sub-tiles. | ||
|
@@ -1212,9 +1213,9 @@ static LogicalResult createDPASKernel(linalg::LinalgOp linalgOp, | |
} | ||
|
||
// Extract DPAS tiles from loaded sub-tiles. | ||
TilesArray dpasVecA = extractVecSubTiles(rewriter, loc, loadVecA, | ||
{dimM, kTile}, tileTypeA.getShape(), | ||
{dpasTileM, dpasTileK}, vnniConfA); | ||
TilesArray dpasVecA = | ||
extractVecSubTiles(rewriter, loc, loadVecA, {dimM, kTile}, | ||
tileTypeA.getShape(), {dpasTileM, dpasTileK}); | ||
TilesArray dpasVecB = extractVecSubTiles(rewriter, loc, loadVecB, | ||
{kTile, dimN}, tileTypeB.getShape(), | ||
{dpasTileK, dpasTileN}, vnniConfB); | ||
|
@@ -1629,7 +1630,8 @@ struct LinalgToXeGPU : public gc::impl::LinalgToXeGPUBase<LinalgToXeGPU> { | |
using LinalgToXeGPUBase::LinalgToXeGPUBase; | ||
|
||
void runOnOperation() override { | ||
LinalgToXeGPUOptions options{kTile, stages, dpasTile}; | ||
LinalgToXeGPUOptions options{ | ||
kTile, stages, SmallVector<int64_t>(dpasTile.begin(), dpasTile.end())}; | ||
Comment on lines
-1632
to
+1634
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the conversion explicitly
|
||
|
||
// Run GEMM pattern first to allow fusion with its consumers. | ||
RewritePatternSet gemmPatterns(&getContext()); | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifying both
transpose_bit
andpacked
inxegpu.load_nd
is no longer supported. Iftranspose_bit
is specified then the op already behaves as ifpacked
was set.