Enum nvml_wrapper::enum_wrappers::device::ComputeMode
source · pub enum ComputeMode {
Default,
ExclusiveThread,
Prohibited,
ExclusiveProcess,
}
Expand description
ExclusiveProcess
was added in CUDA 4.0. Earlier CUDA versions supported a
single exclusive mode, which is equivalent to ExclusiveThread
in CUDA 4.0
and beyond.
Variants§
Default
Multiple contexts per device.
ExclusiveThread
SUPPORT REMOVED
Only one context per device, usable from one thread at a time. NOT SUPPORTED
Prohibited
No contexts per device.
ExclusiveProcess
Only one context per device, usable from multiple threads at a time.
Implementations§
source§impl ComputeMode
impl ComputeMode
sourcepub fn as_c(&self) -> nvmlComputeMode_enum
pub fn as_c(&self) -> nvmlComputeMode_enum
Returns the C enum variant equivalent for the given Rust enum variant
Trait Implementations§
source§impl Clone for ComputeMode
impl Clone for ComputeMode
source§fn clone(&self) -> ComputeMode
fn clone(&self) -> ComputeMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ComputeMode
impl Debug for ComputeMode
source§impl Hash for ComputeMode
impl Hash for ComputeMode
source§impl PartialEq for ComputeMode
impl PartialEq for ComputeMode
source§fn eq(&self, other: &ComputeMode) -> bool
fn eq(&self, other: &ComputeMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for ComputeMode
impl TryFrom<u32> for ComputeMode
impl Eq for ComputeMode
impl StructuralPartialEq for ComputeMode
Auto Trait Implementations§
impl RefUnwindSafe for ComputeMode
impl Send for ComputeMode
impl Sync for ComputeMode
impl Unpin for ComputeMode
impl UnwindSafe for ComputeMode
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