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

Add a pass that checks wether everything was allocated to a certain core #137

Open
JosseVanDelm opened this issue Jun 3, 2024 · 0 comments

Comments

@JosseVanDelm
Copy link
Contributor

We ran into some difficult to debug behaviour because accelerator-specific code was launched on both cores as dispatch-regions was not working properly on our provided example, A linalg wrapped inside an scf.for.

I think we should enforce a legalize check on our IR before it leaves snax-opt to check whether all IR is properly allocated to a certain core to omit these types of errors.
Ideally the pass is extensible towards multiple types of accelerator/cpu combinations.

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

No branches or pull requests

1 participant