Skip to content

Commit

Permalink
Add dotOperandDpasToLinearLayout (tensor B)
Browse files Browse the repository at this point in the history
Signed-off-by: Whitney Tsang <[email protected]>
  • Loading branch information
whitneywhtsang committed Oct 3, 2024
1 parent c4ed65a commit 803ef39
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 161 deletions.
4 changes: 4 additions & 0 deletions lib/Dialect/TritonGPU/IR/LinearLayoutConversions.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <vector>

#include "intel/include/Dialect/TritonIntelGPU/IR/LinearLayoutConversions.h"
#include "triton/Dialect/Triton/IR/Utility.h"
#include "triton/Dialect/TritonGPU/IR/Attributes.h"
#include "triton/Dialect/TritonGPU/IR/Dialect.h"
Expand Down Expand Up @@ -827,6 +828,9 @@ DotOperandEncodingAttr::toLinearLayout(ArrayRef<int64_t> shape) const {
if (auto mfmaLayout = llvm::dyn_cast<AMDMfmaEncodingAttr>(getParent())) {
return dotOperandMfmaToLinearLayout(*this, shape);
}
if (auto dpasLayout = llvm::dyn_cast<intel::DpasEncodingAttr>(getParent())) {
return dotOperandDpasToLinearLayout(*this, shape);
}

return std::nullopt;
}
Expand Down
Loading

0 comments on commit 803ef39

Please sign in to comment.