Enum rcudnn_sys::cudaComputeMode [−][src]
#[repr(u32)]
#[non_exhaustive]
pub enum cudaComputeMode {
cudaComputeModeDefault,
cudaComputeModeExclusive,
cudaComputeModeProhibited,
cudaComputeModeExclusiveProcess,
}
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
< Default compute mode (Multiple threads can use ::cudaSetDevice() with this device)
cudaComputeModeExclusive
< Compute-exclusive-thread mode (Only one thread in one process will be able to use ::cudaSetDevice() with this device)
cudaComputeModeProhibited
< Compute-prohibited mode (No threads can use ::cudaSetDevice() with this device)
cudaComputeModeExclusiveProcess
< Compute-exclusive-process mode (Many threads in one process will be able to use ::cudaSetDevice() with this device)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for cudaComputeMode
impl Send for cudaComputeMode
impl Sync for cudaComputeMode
impl Unpin for cudaComputeMode
impl UnwindSafe for cudaComputeMode
Blanket Implementations
Mutably borrows from an owned value. Read more