pub enum MemAttachFlags {
Global = 1,
Host = 2,
Single = 4,
}Expand description
Flags for cudaMallocManaged.
Mirrors cudaMemAttachFlags.
Variants§
Global = 1
Memory accessible by all CUDA devices and host.
Host = 2
Memory only accessible by the host and a single CUDA device.
Single = 4
Memory only accessible by single stream (deprecated in CUDA 12).
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 · 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 MemAttachFlags
impl Debug for MemAttachFlags
Source§impl Hash for MemAttachFlags
impl Hash for MemAttachFlags
Source§impl PartialEq for MemAttachFlags
impl PartialEq for MemAttachFlags
impl Copy for MemAttachFlags
impl Eq for MemAttachFlags
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