Commit cea6051e authored by OlivierDehaene's avatar OlivierDehaene
Browse files

feat(launcher): Pass CUDA_VISIBLE_DEVICES to the shard

parent 427d7cc4
......@@ -306,6 +306,14 @@ fn shard_manager(
));
};
// If the CUDA_VISIBLE_DEVICES env var is set, pass it to the shard
if let Ok(cuda_visible_devices) = env::var("CUDA_VISIBLE_DEVICES") {
env.push((
"CUDA_VISIBLE_DEVICES".parse().unwrap(),
cuda_visible_devices.parse().unwrap(),
));
};
// Start process
tracing::info!("Starting shard {}", rank);
let mut p = match Popen::create(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment