Skip to content
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

Fall back routine when bank-aware allocation fails #1625

Open
wants to merge 61 commits into
base: main
Choose a base branch
from

Conversation

pvasireddy-amd
Copy link
Collaborator

@pvasireddy-amd pvasireddy-amd commented Jul 17, 2024

Adds flags for the user to select the allocation scheme. When no allocation scheme is given, bank-aware allocation is selected as default and when it fails, sequential allocation is performed.

@pvasireddy-amd pvasireddy-amd changed the title Fall back routine for bank-aware allocation scheme Fall back routine for bank-aware allocation failure Jul 17, 2024
@pvasireddy-amd pvasireddy-amd changed the title Fall back routine for bank-aware allocation failure Fall back routine when bank-aware allocation fails Jul 17, 2024
for (auto tile : device.getOps<TileOp>()) {
if (auto res = simpleBankAwareAllocation(tile); res.failed())
return signalPassFailure();
}
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might want to warn or error here if clAllocScheme was given by user but unrecognized

Option<"clBasicAlloc", "basic-alloc", "bool", /*default=*/"false",
"Flag to enable the basic sequential allocation scheme (not bank-aware).">
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.">,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be made to fit into ~80-100 columns?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants