Skip to main content

docker_device_args

Function docker_device_args 

Source
pub fn docker_device_args(spec: &str) -> [String; 2]
Expand description

The --gpus argv pair for a device spec (a single index or a comma-joined list). The literal quotes are part of the value: docker’s --gpus parser splits an unquoted device=0,1 on the comma and exposes only the first device (verified on real hardware in v1.5).