Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Coordinates on GPU memory or CPU memory?

Abierto
#90 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
numpy, python
Área
data

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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)?

Lenguaje dominante
Python
Estrellas
86
Forks
19
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de xarray-contrib/cupy-xarray

Todos los issues de xarray-contrib/cupy-xarray

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.