pub struct PerHostEnvelope {
pub bin: String,
pub ld_library_path: String,
pub cwd_subpath: String,
}Expand description
Per-host pre-flight build artifact descriptor — exactly what the
launcher needs to substitute the remote dispatch with a direct
binary exec. Mirrors flodl::distributed::launcher::PerHostPrebuild
on the consumer side; the two structs share an on-the-wire JSON
schema but are independent types because the crates can’t share
declarations without a circular dep.
Fields§
§bin: StringPath to the compiled binary, relative to the host’s project
checkout (worker.path). e.g.
target/cluster/node-b/precompiled-cu128/release/train.
ld_library_path: StringAbsolute path the launcher should set as LD_LIBRARY_PATH so
the binary finds its libtorch at runtime. e.g.
/home/me/rdl/libtorch/builds/sm61-sm120/lib. The launcher may
append host-specific extras (e.g. :/usr/local/lib for bare-
metal libnccl) via worker.env: { LD_LIBRARY_PATH: ... }.
cwd_subpath: StringSubdirectory under the host’s project checkout to cd into
before exec — the relative offset of the command’s filesystem
cwd from project_root. Mirrors the cwd the controller-side
build used (e.g. ddp-bench for fdl ddp-bench). Empty string
means execute from worker.path directly. Relative-path defaults
the binary expects (e.g. --data-dir data, --output runs/)
only resolve correctly when the remote cwd matches.
Trait Implementations§
Source§impl Clone for PerHostEnvelope
impl Clone for PerHostEnvelope
Source§fn clone(&self) -> PerHostEnvelope
fn clone(&self) -> PerHostEnvelope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more