#[repr(C)]pub struct CUDA_MEMCPY3D {Show 25 fields
pub src_x_in_bytes: usize,
pub src_y: usize,
pub src_z: usize,
pub src_lod: usize,
pub src_memory_type: u32,
pub src_host: *const c_void,
pub src_device: CUdeviceptr,
pub src_array: CUarray,
pub reserved0: *mut c_void,
pub src_pitch: usize,
pub src_height: usize,
pub dst_x_in_bytes: usize,
pub dst_y: usize,
pub dst_z: usize,
pub dst_lod: usize,
pub dst_memory_type: u32,
pub dst_host: *mut c_void,
pub dst_device: CUdeviceptr,
pub dst_array: CUarray,
pub reserved1: *mut c_void,
pub dst_pitch: usize,
pub dst_height: usize,
pub width_in_bytes: usize,
pub height: usize,
pub depth: usize,
}Expand description
Descriptor for a 3-D memory copy, consumed by cuGraphAddMemcpyNode
(and cuMemcpy3D).
Mirrors CUDA_MEMCPY3D in cuda.h. The driver inspects only the fields
appropriate for the chosen source / destination memory types; the rest
must be zeroed. Use CUDA_MEMCPY3D::default to obtain a
zero-initialised descriptor and set only the fields you need.
Fields§
§src_x_in_bytes: usizeSource X offset in bytes.
src_y: usizeSource Y offset in rows.
src_z: usizeSource Z offset in slices.
src_lod: usizeSource LOD (level of detail).
src_memory_type: u32Source memory type; see super::CUmemorytype.
src_host: *const c_voidSource host pointer (valid when src_memory_type == Host).
src_device: CUdeviceptrSource device pointer (valid when src_memory_type == Device).
src_array: CUarraySource CUDA array (valid when src_memory_type == Array).
reserved0: *mut c_voidReserved; must be null.
src_pitch: usizeSource pitch in bytes (0 selects a tightly-packed layout).
src_height: usizeSource height in rows (0 selects a tightly-packed layout).
dst_x_in_bytes: usizeDestination X offset in bytes.
dst_y: usizeDestination Y offset in rows.
dst_z: usizeDestination Z offset in slices.
dst_lod: usizeDestination LOD (level of detail).
dst_memory_type: u32Destination memory type; see super::CUmemorytype.
dst_host: *mut c_voidDestination host pointer (valid when dst_memory_type == Host).
dst_device: CUdeviceptrDestination device pointer (valid when dst_memory_type == Device).
dst_array: CUarrayDestination CUDA array (valid when dst_memory_type == Array).
reserved1: *mut c_voidReserved; must be null.
dst_pitch: usizeDestination pitch in bytes (0 selects a tightly-packed layout).
dst_height: usizeDestination height in rows (0 selects a tightly-packed layout).
width_in_bytes: usizeWidth of the copied region in bytes.
height: usizeHeight of the copied region in rows.
depth: usizeDepth of the copied region in slices.
Trait Implementations§
Source§impl Clone for CUDA_MEMCPY3D
impl Clone for CUDA_MEMCPY3D
Source§fn clone(&self) -> CUDA_MEMCPY3D
fn clone(&self) -> CUDA_MEMCPY3D
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more