From 0d8b30d19a0312d13be4e8192a93cebf52441531 Mon Sep 17 00:00:00 2001 From: OlivierDehaene <23298448+OlivierDehaene@users.noreply.github.com> Date: Wed, 8 Mar 2023 10:51:17 +0100 Subject: [PATCH] fmt --- launcher/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/launcher/src/main.rs b/launcher/src/main.rs index 2eb4b8ff..96ad18f9 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -115,7 +115,8 @@ fn main() -> ExitCode { None => { // try to default to the number of available GPUs tracing::info!("Parsing num_shard from CUDA_VISIBLE_DEVICES"); - let cuda_visible_devices = env::var("CUDA_VISIBLE_DEVICES").expect("--num-shard and CUDA_VISIBLE_DEVICES are not set"); + let cuda_visible_devices = env::var("CUDA_VISIBLE_DEVICES") + .expect("--num-shard and CUDA_VISIBLE_DEVICES are not set"); let n_devices = cuda_visible_devices.split(",").count(); if n_devices <= 1 { panic!("`sharded` is true but only found {n_devices} CUDA devices"); @@ -153,7 +154,7 @@ fn main() -> ExitCode { ctrlc::set_handler(move || { r.store(false, Ordering::SeqCst); }) - .expect("Error setting Ctrl-C handler"); + .expect("Error setting Ctrl-C handler"); // Check if model_id is a local model let local_path = Path::new(&model_id);