Support GPU

Aperta
#4 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
18/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, kubernetes, linux

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
Go
Stelle
5
Fork
5
Merge medio
15h 27m
PR unite (30g)
41

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

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

Tutte le issue di Azure/fiberd

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.