pub fn re_exec_variant(data_dir: &Path, variant_id: &str, version: &str) -> !Expand description
Re-exec into the installed GPU variant binary.
Sets LD_LIBRARY_PATH and uses the exec crate to replace the current process.
Guard against infinite re-exec with HYPRSTREAM_LIBTORCH_CONFIGURED env var.
ยงSafety
This uses Unix exec() to replace the process. The binary path comes from our own data directory, not from user input.