pub struct CudaArgPacker { /* private fields */ }Expand description
Packs kernel arguments into the void** array expected by cuLaunchKernel.
Each argument’s value is stored as raw bytes in values. After visiting all
args, as_ptrs() returns a mutable slice of *mut c_void pointing into
those buffers — the slice lifetime is tied to self.
Implementations§
Source§impl CudaArgPacker
impl CudaArgPacker
Trait Implementations§
Source§impl ArgVisitor for CudaArgPacker
impl ArgVisitor for CudaArgPacker
Source§fn visit_bool(&mut self, val: bool)
fn visit_bool(&mut self, val: bool)
Visits a
bool argument.Auto Trait Implementations§
impl Freeze for CudaArgPacker
impl RefUnwindSafe for CudaArgPacker
impl Send for CudaArgPacker
impl Sync for CudaArgPacker
impl Unpin for CudaArgPacker
impl UnsafeUnpin for CudaArgPacker
impl UnwindSafe for CudaArgPacker
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