accel

package
v2.0.0-beta.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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.

func Of

func Of(h manifest.Hardware) string

Of is the vendor of a snapshot's GPUs.

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.

func For

func For(vendor, version string) (GPUState, error)

For is the GPUState of a vendor; version is the libkfdreplay release an AMD engine must run ("" for any).

type None

type None struct{}

None is NVIDIA's GPUState: nothing to do through the engine.

func (None) Checkpoint

func (None) Checkpoint(context.Context, *vllm.Engine) (rocm.Result, error)

Checkpoint does nothing: the agent's cuda step checkpoints NVIDIA GPUs.

func (None) Restore

func (None) Restore(context.Context, *vllm.Engine) (rocm.Result, error)

Restore does nothing: the agent's cuda step restores NVIDIA GPUs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL