pub enum GpusSpec {
All,
List(Vec<u8>),
}Expand description
Parsed --gpus argument value.
Two forms accepted by GpusSpec::parse:
--gpus all: resolve to all visible CUDA devices vianvidia-smi -L.--gpus 0,1,2: explicit comma-separated physical device indices.
Variants§
All
Use every visible CUDA device. Resolved against nvidia-smi -L at
GpusSpec::resolve time.
List(Vec<u8>)
Explicit list of physical CUDA device indices.
Implementations§
Trait Implementations§
impl Eq for GpusSpec
impl StructuralPartialEq for GpusSpec
Auto Trait Implementations§
impl Freeze for GpusSpec
impl RefUnwindSafe for GpusSpec
impl Send for GpusSpec
impl Sync for GpusSpec
impl Unpin for GpusSpec
impl UnsafeUnpin for GpusSpec
impl UnwindSafe for GpusSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.