pub struct MemoryCopyFromSymbolNodeParams { /* private fields */ }Expand description
Raw parameters for copying bytes from a CUDA symbol in a graph node.
The descriptor retains neither the symbol’s code owner nor the destination allocation.
Implementations§
Source§impl MemoryCopyFromSymbolNodeParams
impl MemoryCopyFromSymbolNodeParams
Sourcepub const unsafe fn new(
dst: *mut (),
symbol: *const (),
count: usize,
offset: usize,
kind: MemoryCopyKind,
) -> Self
pub const unsafe fn new( dst: *mut (), symbol: *const (), count: usize, offset: usize, kind: MemoryCopyKind, ) -> Self
Creates symbol-copy node parameters from a raw destination pointer.
§Safety
symbol must identify a valid CUDA symbol and dst must be valid for writes of count bytes according to kind when CUDA evaluates the graph node using this value.
Sourcepub const fn kind(self) -> MemoryCopyKind
pub const fn kind(self) -> MemoryCopyKind
Returns the configured memory-copy direction.
Trait Implementations§
impl Copy for MemoryCopyFromSymbolNodeParams
Auto Trait Implementations§
impl !Send for MemoryCopyFromSymbolNodeParams
impl !Sync for MemoryCopyFromSymbolNodeParams
impl Forget for MemoryCopyFromSymbolNodeParams
impl Freeze for MemoryCopyFromSymbolNodeParams
impl Move for MemoryCopyFromSymbolNodeParams
impl RefUnwindSafe for MemoryCopyFromSymbolNodeParams
impl Unpin for MemoryCopyFromSymbolNodeParams
impl UnsafeUnpin for MemoryCopyFromSymbolNodeParams
impl UnwindSafe for MemoryCopyFromSymbolNodeParams
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