inducer / inducer/arraycontext
How should lazy `actx.compile` interact with memoization (on the input end)?
- 主要言語
- Python
- スター
- 9
- フォーク
- 11
- 平均マージ
- 17時間 12分
- マージ済み PR(30日)
- 2
説明
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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まずリンクされている関連 issue #164 と issue #100 を読み、次に actx.compile が入力をどのようにプレースホルダー化するかを追跡します。メモ化のために、入力オブジェクトの同一性と依存する状態を確実に保持し、識別できるかを調査します。完了とするには、計算済みの状態を再利用するための確定した設計が必要ですが、この issue では実装も受け入れテストも指定されていません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- backend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100