Skip to content

Commit

Permalink
Messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pvasireddy-amd committed Sep 19, 2024
1 parent e155c24 commit 33c659a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/aie/Dialect/AIE/Transforms/AIEPasses.td
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def AIEAssignBufferAddresses : Pass<"aie-assign-buffer-addresses", "DeviceOp"> {

let options = [
Option<"clAllocScheme", "alloc-scheme", "std::string", /*default=*/"",
"Choose allocation scheme; possibilities: basic-sequential, bank-aware. By default, bank-aware is selected and if it fails, will fall back to basic-sequential scheme.">,
"Select allocation scheme: basic-sequential or bank-aware. Default is bank-aware, falling back to basic-sequential if it fails.">,
];
}

Expand Down
2 changes: 2 additions & 0 deletions lib/Dialect/AIE/Transforms/AIEAssignBuffers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ struct AIEAssignBufferAddressesPass
}
} else {
for (auto tile : device.getOps<TileOp>()) {
tile.emitWarning("Memory allocation scheme is either missing or "
"unrecognized. By default, bank-aware is selected.");
if (auto res = simpleBankAwareAllocation(tile); res.failed()) {
if (auto res2 = basicAllocation(tile); res2.failed())
return signalPassFailure();
Expand Down

0 comments on commit 33c659a

Please sign in to comment.