Documentation
¶
Overview ¶
Package kfdreplay pins the libkfdreplay release warmctl runs AMD engines with (https://github.com/TensorRails/libkfdreplay): the library an engine preloads so that its own processes can checkpoint and restore their GPU state (kfdr_checkpoint, kfdr_restore), and DMTCP can then snapshot them as CPU processes. The runtime image installs the release's archive, checked against SHA256SUMS, with scripts/fetch-kfdreplay.sh.
Index ¶
Constants ¶
const Env = "WARMCTL_KFDREPLAY"
Env overrides where the library is, for research builds: a snapshot records the path and digest it ran with, and a restore needs the same.
const Root = "/opt/warmctl/kfdreplay"
Root holds one directory per release. Existing snapshots use the directory recorded by the donor, even after the default pin changes.
Variables ¶
This section is empty.
Functions ¶
func Describe ¶
func Describe(path string) (manifest.MappedFile, error)
Describe is the path, size, modification time and digest of a file.
func Locate ¶
func Locate() (manifest.MappedFile, error)
Locate checks the library at Path and describes it for the manifest. The pinned release must match its digest; a library named by $WARMCTL_KFDREPLAY is taken as it is (research builds), with its own digest recorded.
func Path ¶
func Path() string
Path is where the pinned library is: $WARMCTL_KFDREPLAY, else Root/<tag>/libkfdreplay.so.
func Same ¶
func Same(want manifest.MappedFile) error
Same checks that the file a snapshot recorded is at its path unchanged: DMTCP maps an unmodified file area again from the file, after comparing its size and modification time, so a restore needs the very same file.
Types ¶
This section is empty.