Struct rust_cuda::device::alloc::PTXAllocator
source · pub struct PTXAllocator;
Available on crate feature
device
only.Expand description
Memory allocator using CUDA malloc/free
Trait Implementations§
source§impl GlobalAlloc for PTXAllocator
impl GlobalAlloc for PTXAllocator
source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocate memory as described by the given
layout
. Read moreAuto Trait Implementations§
impl Freeze for PTXAllocator
impl PortableBitSemantics for PTXAllocator
impl RefUnwindSafe for PTXAllocator
impl Send for PTXAllocator
impl StackOnly for PTXAllocator
impl Sync for PTXAllocator
impl Unpin for PTXAllocator
impl UnwindSafe for PTXAllocator
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
source§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read more