[BUG] Reserve GPU memory for empty list-column offsets in cudf-polars

Aperta
#25,546 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

Start with empty_table_chunk in python/cudf_polars/cudf_polars/streaming/actor_graph/utils.py, then make_empty_column in python/cudf_polars/cudf_polars/utils/dtypes.py, which allocates the zero offset buffer for list columns. The caller is the cursor branch in asof_join.py around lines 693-706. Done when those offset allocations run under a streaming GPU memory reservation, the zero-row typed table is unchanged, and an as-of join with an empty right side returns left rows in order with typed null list payloads.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug cudf-polars

Describe the bug

The shared cudf-polars empty_table_chunk helper builds a typed zero-row table without acquiring a GPU memory reservation. For each list column, make_empty_column creates a device buffer containing one 32-bit zero offset. The construction recurses through nested types, so list children can also allocate offsets. When callers invoke the helper directly, these allocations bypass the streaming memory reservation. Empty-table helper · Offset construction

Steps/Code to reproduce bug

On the streaming as-of join path in #25518, use a nonempty left input and an empty right input with a typed list payload. When the cursor reaches the end of the right input with neither a current window nor a retained row, it calls empty_table_chunk directly to construct the right table. Cursor branch

Expected behavior

Cover offset-buffer construction in the shared helper path with a streaming GPU memory reservation. Preserve the typed zero-row table and verify that the as-of join retains left rows in order and returns nulls of the declared list type for the unmatched right payload.

Environment overview

Source inspection of cudf-polars on PR head bac0e18ea9b53d99c882ead482ef3a4ef04af2d7. No GPU run or memory-pressure failure was measured.

Additional context

The helper predates #25518. This tracks the shared allocation behavior, with the as-of join as one caller. PR discussion

Prepared with AI assistance. Responsible human: Matt711.

Validation: Traced the allocation and streaming as-of join path in the clean checkout at bac0e18ea9b53d99c882ead482ef3a4ef04af2d7. Confirmed the shared helper exists on the PR base and checked the public PR discussion. Targeted GitHub searches found no dedicated issue or fix. Validation was source-only.

AI-assisted; responsible human: @Matt711.

Source discussion: https://github.com/NVIDIA/cudf/pull/25518

Lingua principale
C++
Stelle
9.8k
Fork
1.2k
Merge medio
3g 7h
PR unite (30g)
329

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/cudf

Tutte le issue di NVIDIA/cudf

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.