Skip to main content

read_active_from

Function read_active_from 

Source
pub fn read_active_from(
    pointer: &Path,
    libtorch_root: &Path,
) -> Option<LibtorchInfo>
Expand description

Read any .active* pointer file and resolve its content (a relative path like precompiled/cu128 or builds/sm61-sm120) against libtorch_root to produce a LibtorchInfo.

Used by read_active (default .active), by callers that have the pointer file path directly (e.g. cluster.yml’s per-host arch: naming a case pointer, resolving to …/libtorch/.active.<case>), and by tests that need to validate a pointer-file shape without setting the FDL_LIBTORCH_CASE env var.