inducer / inducer/arraycontext
How should lazy `actx.compile` interact with memoization (on the input end)?
- Lenguaje dominante
- Python
- Estrellas
- 9
- Forks
- 11
- Merge medio
- 17 h 12 min
- PR fusionados (30 d)
- 2
Descripción
This is a longer-shot companion issue to https://github.com/inducer/pytato/issues/164 (and #100):
Suppose an `actx.compile`d 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 `compile`d 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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Empieza leyendo la issue complementaria enlazada #164 y la issue #100, y luego sigue cómo actx.compile convierte sus entradas en placeholders. Investiga si la identidad de los objetos de entrada y el estado dependiente pueden conservarse e identificarse de forma fiable para la memoización. El trabajo estaría terminado cuando exista un diseño definido para reutilizar el estado ya calculado, pero esta issue no especifica una implementación ni una prueba de aceptación.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- backend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100