#[repr(transparent)]pub struct cudaComputeMode(pub c_uint);Expand description
CUDA device compute modes.
Tuple Fields§
§0: c_uintImplementations§
Source§impl cudaComputeMode
impl cudaComputeMode
Sourcepub const cudaComputeModeDefault: cudaComputeMode
pub const cudaComputeModeDefault: cudaComputeMode
Default compute mode (Multiple threads can use cudaSetDevice with this device).
Sourcepub const cudaComputeModeExclusive: cudaComputeMode
pub const cudaComputeModeExclusive: cudaComputeMode
Compute-exclusive-thread mode (Only one thread in one process will be able to use cudaSetDevice with this device).
Sourcepub const cudaComputeModeProhibited: cudaComputeMode
pub const cudaComputeModeProhibited: cudaComputeMode
Compute-prohibited mode (No threads can use cudaSetDevice with this device).
Sourcepub const cudaComputeModeExclusiveProcess: cudaComputeMode
pub const cudaComputeModeExclusiveProcess: cudaComputeMode
Compute-exclusive-process mode (Many threads in one process will be able to use cudaSetDevice with this device).
Trait Implementations§
Source§impl Clone for cudaComputeMode
impl Clone for cudaComputeMode
impl Copy for cudaComputeMode
Source§impl Debug for cudaComputeMode
impl Debug for cudaComputeMode
impl Eq for cudaComputeMode
Source§impl Hash for cudaComputeMode
impl Hash for cudaComputeMode
Source§impl Ord for cudaComputeMode
impl Ord for cudaComputeMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for cudaComputeMode
impl PartialEq for cudaComputeMode
Source§impl PartialOrd for cudaComputeMode
impl PartialOrd for cudaComputeMode
impl StructuralPartialEq for cudaComputeMode
Auto Trait Implementations§
impl Forget for cudaComputeMode
impl Freeze for cudaComputeMode
impl Move for cudaComputeMode
impl RefUnwindSafe for cudaComputeMode
impl Send for cudaComputeMode
impl Sync for cudaComputeMode
impl Unpin for cudaComputeMode
impl UnsafeUnpin for cudaComputeMode
impl UnwindSafe for cudaComputeMode
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