inducer / inducer/arraycontext

How should lazy actx.compile interact with memoization (on the output end)?

Ouverte
#100 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
9
Forks
11
Merge moyen
17 h 12 min
PR mergées (30 j)
2

Description

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

Suppose an `actx.compile`d function evaluates something that's memoized (for the sake of argument, imagine a temperature in mirgecom). After the compiled evaluation concludes, the memoization of dependent data becomes unavailable, since we're now working on a different array (/array container) instance. It'd be nice if that weren't the case.

(This isn't immensely relevant for mirgecom, since the output of the `compile`d function will typically be fed into a time integrator, which would invalidate any memoized temperature anyhow.)

cc @kaushikcfd

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencez par lire les issues associées inducer/pytato#164 et inducer/arraycontext#99, puis suivez actx.compile dans un cas où la fonction évaluée utilise memoized data. Comparez les instances de array ou d’array-container avant et après l’évaluation compilée. Le travail est considéré comme terminé si la mémorisation des données dépendantes reste disponible après la compilation, si ce comportement est réalisable.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
backend
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.