pub struct ManagedMemAlloc;Expand description
Allocate managed memory on AMD that lives on the CPU and is visible to the GPU as well.
On GPUs that support it (mostly MI cards), managed memory can be automatically transferred between CPU and GPU. See the unified memory management documentation.
With the amd-allocator crate feature (enabled by default), this is the default allocator.
Trait Implementations§
Source§impl GlobalAlloc for ManagedMemAlloc
Available on crate feature amd and neither AMD GPU nor NVidia GPU only.
impl GlobalAlloc for ManagedMemAlloc
Available on crate feature
amd and neither AMD GPU nor NVidia GPU only.Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout. Read moreAuto Trait Implementations§
impl Freeze for ManagedMemAlloc
impl RefUnwindSafe for ManagedMemAlloc
impl Send for ManagedMemAlloc
impl Sync for ManagedMemAlloc
impl Unpin for ManagedMemAlloc
impl UnsafeUnpin for ManagedMemAlloc
impl UnwindSafe for ManagedMemAlloc
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