#[non_exhaustive]#[repr(u32)]pub enum cudaComputeMode {
cudaComputeModeDefault = 0,
cudaComputeModeExclusive = 1,
cudaComputeModeProhibited = 2,
cudaComputeModeExclusiveProcess = 3,
}
Expand description
CUDA device 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.
cudaComputeModeDefault = 0
< Default compute mode (Multiple threads can use ::cudaSetDevice() with this device)
cudaComputeModeExclusive = 1
< Compute-exclusive-thread mode (Only one thread in one process will be able to use ::cudaSetDevice() with this device)
cudaComputeModeProhibited = 2
< Compute-prohibited mode (No threads can use ::cudaSetDevice() with this device)
cudaComputeModeExclusiveProcess = 3
< 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
Source§fn clone(&self) -> cudaComputeMode
fn clone(&self) -> cudaComputeMode
Returns a duplicate 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 cudaComputeMode
impl Debug for cudaComputeMode
Source§impl Hash for cudaComputeMode
impl Hash for cudaComputeMode
Source§impl PartialEq for cudaComputeMode
impl PartialEq for cudaComputeMode
impl Copy for cudaComputeMode
impl Eq for cudaComputeMode
impl StructuralPartialEq for cudaComputeMode
Auto Trait Implementations§
impl Freeze for cudaComputeMode
impl RefUnwindSafe for cudaComputeMode
impl Send for cudaComputeMode
impl Sync for cudaComputeMode
impl Unpin 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