#[non_exhaustive]#[repr(u32)]pub enum StreamCaptureMode {
Global = 0,
ThreadLocal = 1,
Relaxed = 2,
}Expand description
Scope of CUDA’s checks for potentially unsafe calls during stream capture.
Calls that necessarily conflict with capture remain prohibited in every mode.
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.
Global = 0
Checks the local capture sequence and concurrent captures begun in global mode on other host threads.
ThreadLocal = 1
Checks the local capture sequence without considering captures on other host threads.
Relaxed = 2
Allows potentially unsafe CUDA calls while preserving restrictions on calls that necessarily conflict with capture.
Trait Implementations§
Source§impl Clone for StreamCaptureMode
impl Clone for StreamCaptureMode
impl Copy for StreamCaptureMode
Source§impl Debug for StreamCaptureMode
impl Debug for StreamCaptureMode
Source§impl Display for StreamCaptureMode
impl Display for StreamCaptureMode
impl Eq for StreamCaptureMode
Source§impl From<StreamCaptureMode> for u32
impl From<StreamCaptureMode> for u32
Source§fn from(enum_value: StreamCaptureMode) -> Self
fn from(enum_value: StreamCaptureMode) -> Self
Converts to this type from the input type.
Source§impl From<StreamCaptureMode> for cudaStreamCaptureMode
impl From<StreamCaptureMode> for cudaStreamCaptureMode
Source§fn from(value: StreamCaptureMode) -> Self
fn from(value: StreamCaptureMode) -> Self
Converts to this type from the input type.
Source§impl Hash for StreamCaptureMode
impl Hash for StreamCaptureMode
Source§impl PartialEq for StreamCaptureMode
impl PartialEq for StreamCaptureMode
impl StructuralPartialEq for StreamCaptureMode
Source§impl TryFrom<CUstreamCaptureMode_enum> for StreamCaptureMode
impl TryFrom<CUstreamCaptureMode_enum> for StreamCaptureMode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: cudaStreamCaptureMode) -> Result<Self, UnknownEnumValue>
fn try_from(value: cudaStreamCaptureMode) -> Result<Self, UnknownEnumValue>
Performs the conversion.
Source§impl TryFrom<u32> for StreamCaptureMode
impl TryFrom<u32> for StreamCaptureMode
Source§type Error = TryFromPrimitiveError<StreamCaptureMode>
type Error = TryFromPrimitiveError<StreamCaptureMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for StreamCaptureMode
impl TryFromPrimitive for StreamCaptureMode
const NAME: &'static str = "StreamCaptureMode"
type Primitive = u32
type Error = TryFromPrimitiveError<StreamCaptureMode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Forget for StreamCaptureMode
impl Freeze for StreamCaptureMode
impl Move for StreamCaptureMode
impl RefUnwindSafe for StreamCaptureMode
impl Send for StreamCaptureMode
impl Sync for StreamCaptureMode
impl Unpin for StreamCaptureMode
impl UnsafeUnpin for StreamCaptureMode
impl UnwindSafe for StreamCaptureMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.