#[repr(u32)]pub enum WaitValueMode {
Geq = 0,
Eq = 1,
And = 2,
Nor = 3,
}
Expand description
Wait comparison type for waiting on some condition in Stream::wait_32
/etc
Variants§
Geq = 0
Wait until (int32_t)(*addr - value) >= 0 (or int64_t for 64 bit values). Note this is a cyclic comparison which ignores wraparound. (Default behavior.)
Eq = 1
Wait until *addr == value.
And = 2
Wait until (*addr & value) != 0.
Nor = 3
Wait until ~(*addr | value) != 0. Support for this operation can be queried with cuDeviceGetAttribute() and CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR.
Trait Implementations§
Source§impl Clone for WaitValueMode
impl Clone for WaitValueMode
Source§fn clone(&self) -> WaitValueMode
fn clone(&self) -> WaitValueMode
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 WaitValueMode
impl Debug for WaitValueMode
Source§impl TryFrom<u32> for WaitValueMode
impl TryFrom<u32> for WaitValueMode
Source§type Error = TryFromPrimitiveError<WaitValueMode>
type Error = TryFromPrimitiveError<WaitValueMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for WaitValueMode
impl TryFromPrimitive for WaitValueMode
impl Copy for WaitValueMode
Auto Trait Implementations§
impl Freeze for WaitValueMode
impl RefUnwindSafe for WaitValueMode
impl Send for WaitValueMode
impl Sync for WaitValueMode
impl Unpin for WaitValueMode
impl UnwindSafe for WaitValueMode
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