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

How should lazy actx.compile interact with memoization (on the input end)? #99

Open
inducer opened this issue Oct 12, 2021 · 0 comments

Comments

@inducer
Copy link
Owner

inducer commented Oct 12, 2021

This is a longer-shot companion issue to https://github.com/inducer/pytato/issues/164 (and #100):

Suppose an actx.compiled function is passed an array container (for the sake of argument, imagine a mirgecom ConservedVars) that somehow holds on to already-computed, dependent state that is the subsequently used in the compiled function. Right now, any such association is destroyed when "placeholderizing" the inputs. It'd be nice to instead realize that something we're about to (re)compute has already been computed and just use it instead.

A few (substantial) challenges:

  • Unless we retain the object identity of the data passed in as a placeholder, we have no way of finding the existing state.
  • Even if we can find it, we can't really reliably generate an identifier for it.

cc @kaushikcfd @MTCam

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