Support GPU

Đang mở
#4 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
18/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, kubernetes, linux

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
5
Fork
5
Merge trung bình
15 giờ 27 phút
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/fiberd

Tất cả issue của Azure/fiberd

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.