#[repr(C)]pub struct CUmemcpyAttributes {
pub src_access_order: u32,
pub src_loc_hint: CUmemLocation,
pub dst_loc_hint: CUmemLocation,
pub flags: u32,
}Expand description
Attributes describing one entry (or group of entries) in a
cuMemcpyBatchAsync batch.
Mirrors CUmemcpyAttributes in cuda.h (CUDA 12.8+). src_access_order
is stored as a raw u32 (the CUmemcpySrcAccessOrder enum) so that a
forward-compatible value emitted by a future driver can be round-tripped
without UB.
Fields§
§src_access_order: u32Source access order; see CUmemcpySrcAccessOrder in cuda.h.
src_loc_hint: CUmemLocationHint for the source memory location.
dst_loc_hint: CUmemLocationHint for the destination memory location.
flags: u32Additional copy flags (reserved; 0 on current drivers).
Trait Implementations§
Source§impl Clone for CUmemcpyAttributes
impl Clone for CUmemcpyAttributes
Source§fn clone(&self) -> CUmemcpyAttributes
fn clone(&self) -> CUmemcpyAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CUmemcpyAttributes
Source§impl Debug for CUmemcpyAttributes
impl Debug for CUmemcpyAttributes
Source§impl Default for CUmemcpyAttributes
impl Default for CUmemcpyAttributes
Source§fn default() -> CUmemcpyAttributes
fn default() -> CUmemcpyAttributes
Returns the “default value” for a type. Read more
impl Eq for CUmemcpyAttributes
Source§impl Hash for CUmemcpyAttributes
impl Hash for CUmemcpyAttributes
Source§impl PartialEq for CUmemcpyAttributes
impl PartialEq for CUmemcpyAttributes
Source§fn eq(&self, other: &CUmemcpyAttributes) -> bool
fn eq(&self, other: &CUmemcpyAttributes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CUmemcpyAttributes
Auto Trait Implementations§
impl Freeze for CUmemcpyAttributes
impl RefUnwindSafe for CUmemcpyAttributes
impl Send for CUmemcpyAttributes
impl Sync for CUmemcpyAttributes
impl Unpin for CUmemcpyAttributes
impl UnsafeUnpin for CUmemcpyAttributes
impl UnwindSafe for CUmemcpyAttributes
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