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

Code generation for multiple stencils #71

Open
smartalecH opened this issue Oct 20, 2022 · 2 comments
Open

Code generation for multiple stencils #71

smartalecH opened this issue Oct 20, 2022 · 2 comments

Comments

@smartalecH
Copy link

Often, a particular stencil-based code can contain dozens or even hundreds of variations of the most "complete" stencil. For example, depending on what parameters the simulation is running, it may only need certain aspects of the most complete case.

In C/C++, many codes use some sort of code generation/ metaprogramming to handle the combinatorial explosion that occurs in these cases.

Has anyone explored @parallel kernel generation in this context? I tried creating a @generated function from a @parallel construct, but was running into some issues.

Just curious if others have thought of this. Thanks!

@omlins
Copy link
Owner

omlins commented Oct 21, 2022

@albert-de-montserrat has mentioned once the intention to do something like that in a similar context. @albert-de-montserrat, did you follow up on that in the end?

@albert-de-montserrat
Copy link
Contributor

albert-de-montserrat commented Oct 21, 2022

No sorry, didn't have the chance to follow up on this idea.

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

3 participants