Planning: Generalized N-D IndexWavefront & stencil recurrences
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start by reading the existing IndexWavefront IR node and the par.wavefront implementation, then trace the CPU and GPU backends that execute it. The issue proposes several substantial pieces of work, including N-D scheduling, rolling buffers, loop recognition, and reverse-mode AD; agree on a focused first milestone with maintainers. Done means implementing and validating an agreed milestone while preserving the existing 2D API.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Motivation
IndexWavefront (par.wavefront, par.batched_wavefront, par.soft_align) currently supports 2D causal recurrences with the fixed 3-neighbor stencil {(i-1, j), (i, j-1), (i-1, j-1)}, traversing anti-diagonals i + j = d in O(M) rolling memory.
Mathematically, the exact same hyperplane schedule generalizes cleanly to arbitrary rank d >= 2 and general causal stencil offsets:
- N-D anti-diagonal hyperplanes (3D, 4D, ...):
- For a
d-dimensional grid of shape(N_0, N_1, ..., N_{d-1}), cells on the hyperplanei_0 + i_1 + ... + i_{d-1} = tare mutually independent whenever every dependence offsetdelta = (delta_0, ..., delta_{d-1}) >= 0hassum(delta) > 0. - All cells on hyperplane
texecute in parallel across CPU threads or GPU blocks, while memory collapses fromO(N_0 * N_1 * ... * N_{d-1})toO(w * prod_{k>0} N_k)rolling slices (wherew = max(sum(delta))).
- For a
- Generalized causal recurrence stencils:
- Support arbitrary static offset tuples (e.g. 2D 2-step recurrences
(i-2, j), (i, j-2), 3D 7-point Gauss-Seidel / SOR PDE sweeps, 3D multiple-sequence alignment, 4D Viterbi / RNA-co-folding DP, and tiled hyperplane blocks). - For non-unit dependence cones, find a valid schedule normal
hwithh . delta > 0for all offsetsdelta(unimodular skewing).
- Support arbitrary static offset tuples (e.g. 2D 2-step recurrences
- Automatic recognition of nested DP
forloops:- Recognize canonical nested loops like
for i: for j: for k: dp[i, j, k] = f(dp[i-1, j, k], dp[i, j-1, k], dp[i, j, k-1])and lower them directly toIndexWavefrontwith rolling-slice buffer contraction when the full table is dead after the loop.
- Recognize canonical nested loops like
Proposed Roadmap
- Generalize
IndexWavefrontIR node from(m, n, i, j, top, left, diag)to(shape: tuple[Expr, ...], coords: tuple[Var, ...], offsets: tuple[tuple[int, ...], ...])with static offset validation (all(d >= 0) and any(d > 0)). - Extend
par.wavefrontto accept 2D, 3D, 4D+ shapes and an optionaloffsets=parameter (defaulting to the standard 2Dtop/left/diagAPI for full backwards compatibility). - Implement rolling hyperplane ring buffers and tiled hyperplane blocking for CPU and GPU backends.
- Add Law 2 checkpointed reverse-mode AD (
O(sqrt(T))) for smooth N-D wavefront recurrences.
- Lingua principale
- Python
- Stelle
- 236
- Fork
- 11
- Merge medio
- 3h 46m
- PR unite (30g)
- 64
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di iskandr/parakeet
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di iskandr/parakeet
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pimutils/vdirsyncer#1242 ·
-
backlog
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
sagemathinc/sagebrush#2768 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
vllm-project/vllm-ascend#23791 ·
I maintainer di solito rispondono entro 1 giorno
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
QuantConnect/lean-cli#792 ·
I maintainer di solito rispondono entro 1 giorno