Enum kn_cuda_sys::bindings::CUcomputemode_enum
source · #[non_exhaustive]#[repr(u32)]pub enum CUcomputemode_enum {
CU_COMPUTEMODE_DEFAULT = 0,
CU_COMPUTEMODE_PROHIBITED = 2,
CU_COMPUTEMODE_EXCLUSIVE_PROCESS = 3,
}Expand description
Compute Modes
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CU_COMPUTEMODE_DEFAULT = 0
< Default compute mode (Multiple contexts allowed per device)
CU_COMPUTEMODE_PROHIBITED = 2
< Compute-prohibited mode (No contexts can be created on this device at this time)
CU_COMPUTEMODE_EXCLUSIVE_PROCESS = 3
< Compute-exclusive-process mode (Only one context used by a single process can be present on this device at a time)
Trait Implementations§
source§impl Clone for CUcomputemode_enum
impl Clone for CUcomputemode_enum
source§fn clone(&self) -> CUcomputemode_enum
fn clone(&self) -> CUcomputemode_enum
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 CUcomputemode_enum
impl Debug for CUcomputemode_enum
source§impl Hash for CUcomputemode_enum
impl Hash for CUcomputemode_enum
source§impl PartialEq for CUcomputemode_enum
impl PartialEq for CUcomputemode_enum
source§fn eq(&self, other: &CUcomputemode_enum) -> bool
fn eq(&self, other: &CUcomputemode_enum) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for CUcomputemode_enum
impl Eq for CUcomputemode_enum
impl StructuralPartialEq for CUcomputemode_enum
Auto Trait Implementations§
impl Freeze for CUcomputemode_enum
impl RefUnwindSafe for CUcomputemode_enum
impl Send for CUcomputemode_enum
impl Sync for CUcomputemode_enum
impl Unpin for CUcomputemode_enum
impl UnwindSafe for CUcomputemode_enum
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