pub enum MemLocation {
KeepInPlace,
AllocOnDevice,
CopyToDevice,
ForceCopyToDevice,
}
Expand description
The enumeration of how memory allocation (or not) can be directed.
This forum post has some good explanations: https://software.intel.com/en-us/forums/opencl/topic/708049
Variants§
Trait Implementations§
Source§impl From<MemLocation> for u64
impl From<MemLocation> for u64
Source§fn from(mem_location: MemLocation) -> u64
fn from(mem_location: MemLocation) -> u64
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MemLocation
impl RefUnwindSafe for MemLocation
impl Send for MemLocation
impl Sync for MemLocation
impl Unpin for MemLocation
impl UnwindSafe for MemLocation
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