Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Coordinates on GPU memory or CPU memory?

Aperta
#90 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
numpy, python
Ambito
data

Direzione di ricerca

Start with the .cupy.as_cupy() accessor method linked in the issue, then review the referenced xarray pull requests, issues, and discussions. Compare the CPU and GPU coordinate cases described there and establish a recommended default, including whether supporting an explicit choice is needed; done means the behavior and rationale are clearly decided.

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

Descrizione

question

Gathering some scattered threads here and there on what might be best practice on allocating an xarray DataArray or Dataset's coordinates in host (CPU) or device (GPU) memory.

Prevailing assumption was that coordinates should be loaded on CPU memory by default to conserve GPU memory resources. E.g. these lines in the .cupy.as_cupy() accessor method enforces that:

https://github.com/xarray-contrib/cupy-xarray/blob/33431082747a92b52580056a8dc20c3cc34aae70/cupy_xarray/accessors.py#L88-L94

show that data is converted from NumPy (CPU) -> CuPy (GPU), while coords remain on CPU (technically, it just re-uses whatever the coords array was originally).

Question is: are there cases where it might make sense to load the coordinates into GPU memory too? Should there be an option to allow for either behaviour (keep coords on CPU, or move coords to GPU)?

Lingua principale
Python
Stelle
86
Fork
19
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 xarray-contrib/cupy-xarray

Tutte le issue di xarray-contrib/cupy-xarray

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.