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
sourceimpl 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
sourceimpl Clone for ComputeMode
impl Clone for ComputeMode
sourcefn clone(&self) -> ComputeMode
fn clone(&self) -> ComputeMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ComputeMode
impl Debug for ComputeMode
sourceimpl Hash for ComputeMode
impl Hash for ComputeMode
sourceimpl PartialEq<ComputeMode> for ComputeMode
impl PartialEq<ComputeMode> for ComputeMode
sourceimpl TryFrom<u32> for ComputeMode
impl TryFrom<u32> for ComputeMode
impl Eq for ComputeMode
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more