File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,17 @@ static cl::opt<std::string> TensorStr(
8080// ===--------------------------------------------------------------------===//
8181
8282LogicalResult layoutPrint (RankedTensorType tensorType, raw_ostream &os) {
83+ StringRef dialectName = tensorType.getEncoding ().getDialect ().getNamespace ();
84+
8385 // Dispatch to the corresponding dialect helper function to print the layout.
84- os << triton::gpu::getLayoutStr (tensorType, UseHWPointOfView);
85- return success ();
86+ if (dialectName == " ttg" ) {
87+ os << triton::gpu::getLayoutStr (tensorType, UseHWPointOfView);
88+ return success ();
89+ }
90+
91+ llvm::errs () << " Unsupported tensor layout attribute: "
92+ << tensorType.getEncoding () << " \n " ;
93+ return failure ();
8694}
8795
8896LogicalResult printLayoutFromFile (MLIRContext *context, StringRef filename,
You can’t perform that action at this time.
0 commit comments