Support GPU

Abierto
#4 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
18/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go, kubernetes, linux

Línea de trabajo

Start with the linked proposal at docs/proposals/gpu.md, then inspect the engine template, FIBERD_ENGINE IPC, device channel, budget enforcement, and conformance C8. The issue calls for a CUDA engine on proc, with runc as a later backend, plus seccomp and GPU runner validation. Done means one warm GPU context serves multiple fibers, device budgets and classes are enforced, eviction happens before park, and GPU conformance passes.

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

Descripción

enhancement P0

fiberd already has the seam a GPU plugs into. An engine template owns device state, lends each fiber a slice over IPC (FIBERD_ENGINE), and reports it with DEVICE lines. fiberd enforces each grant's device budget, sends EVICT before a park, and feeds device occupancy to the pressure ladder. A home hands the engine its devices through a device channel: a static list, a Kubernetes DRA claim or Slurm GRES. Conformance C8 pins the budget. But the only engine is refzygote's simulated one, so no real GPU has run behind the seam.

flowchart LR
  H[home: device channel] --> E["engine zygote, owns the GPU context"]
  E -->|"FIBERD_ENGINE IPC, a slice per fiber"| F1[fiber]
  E --> F2[fiber]
  E -->|"DEVICE fence bytes"| D[fiberd: budget, EVICT before a park, pressure]

What is missing.

  • A real engine. A reference engine that holds a CUDA context in the zygote and serves fibers over IPC. A fiber never opens the GPU itself, because a CUDA context does not survive a fork and CRIU cannot dump one without NVIDIA's checkpoint support.
  • Park with device state. Today a park evicts the fiber's slice, so a resumed fiber starts its device state over. Decide whether that is the contract, or whether to keep the slice through a park, for example with cuda-checkpoint and CRIU's CUDA plugin.
  • Device class. fiberd admits a grant that asks for a device class whenever the engine reports any capacity. It does not compare device_budget.class with the engine's.
  • The fiber filter. Check the engine and its fibers against the seccomp filter. GPU drivers live on ioctl and mmap of /dev/nvidia*, which the filter allows, but nobody has run one under it.
  • Backends. proc and runc first. gVisor needs nvproxy and Hyperlight has no device path, so both stay out of the first cut.

Done when. A real GPU template on proc serves many fibers from one warm context. Each fiber is held to its device budget and evicted before its park. A conformance run passes on a GPU runner, and the class a grant asks for is enforced.

Proposal can be found here.

Lenguaje dominante
Go
Estrellas
5
Forks
5
Merge medio
15 h 27 min
PR fusionados (30 d)
41

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 Azure/fiberd

Todos los issues de Azure/fiberd

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.