Documentation
¶
Overview ¶
Package accel is the one place warmctl's host steps ask which GPU vendor they run for. NVIDIA moves GPU state with cuda-checkpoint in the agent, over the processes' PIDs, as it always has; AMD moves it inside the engine's own processes (internal/rocm). The vendor is never asked of the user: a bake takes it from the host, a restore from the snapshot.
Index ¶
Constants ¶
const ( NVIDIA = manifest.VendorNVIDIA AMD = manifest.VendorAMD )
Vendors.
Variables ¶
This section is empty.
Functions ¶
func Host ¶
func Host() string
Host is this host's GPU vendor: NVIDIA wherever an NVIDIA device exists or no AMD one does (so every host warmctl ran on before stays NVIDIA's), AMD where /dev/kfd lists GPUs this process may read.
func KFDReplayVersion ¶
func KFDReplayVersion(lib manifest.MappedFile) string
KFDReplayVersion is the release an AMD bake runs: the pinned one, or any for a library named by $WARMCTL_KFDREPLAY.
Types ¶
type GPUState ¶
type GPUState interface {
// Checkpoint runs after sleep and checkpoint_prepare, before the
// agent's steps.
Checkpoint(ctx context.Context, e *vllm.Engine) (rocm.Result, error)
// Restore runs after the agent's steps, before the engine wakes.
Restore(ctx context.Context, e *vllm.Engine) (rocm.Result, error)
}
GPUState moves GPU state that lives in the engine's processes, through the engine. NVIDIA's moves in the agent's cuda step instead: None.
type None ¶
type None struct{}
None is NVIDIA's GPUState: nothing to do through the engine.
func (None) Checkpoint ¶
Checkpoint does nothing: the agent's cuda step checkpoints NVIDIA GPUs.