Skip to content

Commit

Permalink
[XeGPU] Relaxing cache attr restriction for xegpu store ops (#986)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garra1980 authored Dec 17, 2024
1 parent 8a5bcf5 commit 601a5f5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ diff --git a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp b/mlir/lib/Dialect/XeGPU/IR/
index 5bd3c370e385..898e8564e3fe 100644
--- a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
+++ b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
@@ -70,6 +70,7 @@ static bool isWriteHintOrNone(const CachePolicyAttr &attr) {
return true;
auto kind = attr.getValue();
return kind == CachePolicy::CACHED || kind == CachePolicy::UNCACHED ||
+ kind == CachePolicy::STREAMING ||
kind == CachePolicy::WRITE_BACK || kind == CachePolicy::WRITE_THROUGH;
}

@@ -237,7 +237,7 @@ LogicalResult LoadNdOp::verify() {
emitWarning("Invalid transpose attr. It is ignored.");
}
Expand Down

0 comments on commit 601a5f5

Please sign in to comment.