pub enum MemAttachFlags {
Global,
Host,
Single,
}Expand description
Attach mode for a HipUnifiedSlice. Mirrors HIP’s
hipMemAttachGlobal / Host / Single flag triple, which are
#defines in the C headers (bindgen drops them).
Variants§
Global
Any device or stream may access the memory.
Host
Only the host may access; device access requires
hipDeviceAttributeConcurrentManagedAccess.
Single
Only the attached stream may access. Host access synchronizes that stream.
Trait Implementations§
Source§impl Clone for MemAttachFlags
impl Clone for MemAttachFlags
Source§fn clone(&self) -> MemAttachFlags
fn clone(&self) -> MemAttachFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemAttachFlags
Source§impl Debug for MemAttachFlags
impl Debug for MemAttachFlags
impl Eq for MemAttachFlags
Source§impl PartialEq for MemAttachFlags
impl PartialEq for MemAttachFlags
Source§fn eq(&self, other: &MemAttachFlags) -> bool
fn eq(&self, other: &MemAttachFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemAttachFlags
Auto Trait Implementations§
impl Freeze for MemAttachFlags
impl RefUnwindSafe for MemAttachFlags
impl Send for MemAttachFlags
impl Sync for MemAttachFlags
impl Unpin for MemAttachFlags
impl UnsafeUnpin for MemAttachFlags
impl UnwindSafe for MemAttachFlags
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