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

Conditionals #2

Open
rengolin opened this issue Apr 2, 2020 · 0 comments
Open

Conditionals #2

rengolin opened this issue Apr 2, 2020 · 0 comments

Comments

@rengolin
Copy link

rengolin commented Apr 2, 2020

MLIR has native conditionals via compare+branch operations, but that doesn't mean it works directly with the Rise dialect.

It could perhaps work when choosing which lambdas to apply but inside a lambda, the comparisons will have to be done on Rise types, not native, and there is not support (I can see) for it.

While many algorithms can be written without direct conditions (at least not in the lambdas), with vast examples in machine learning and HPC kernels, it would be impossible to convert existing generic code (including most HPC applications) into Rise.

Is there a plan to introduce conditional execution in Rise? Given the (side-effect free) lambda nature of Rise, I imagine a select would be simpler to implement and would cover a lot of the existing cases.

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