Documentation
¶
Overview ¶
Package cuda finds the processes of a tree that hold CUDA state and moves that state with NVIDIA's cuda-checkpoint: lock, checkpoint to host memory before the CRIU dump; restore onto the receiver's GPUs and unlock after.
Index ¶
Constants ¶
const ( CallTimeout = 90 * time.Second LockTimeoutMS = 60000 )
CallTimeout bounds one cuda-checkpoint call; LockTimeoutMS is how long a lock may wait for in-flight CUDA work.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Session ¶
type Session struct {
Helper string
Owners []int
// Parallel owners are restored concurrently, after the others: the
// workers, when no collective keeps peer memory mapped between them.
Parallel []int
// contains filtered or unexported fields
}
Session moves the CUDA state of a set of processes with cuda-checkpoint. Each phase is a barrier: every owner finishes it before any starts the next. A failure is final; the caller removes the container.
func NewSession ¶
NewSession uses the helper binary at path.
func (*Session) Checkpoint ¶
Checkpoint locks every owner and moves its device memory to the host.