Struct rcudnn_sys::cudaPointerAttributes
[−]
[src]
#[repr(C)]pub struct cudaPointerAttributes { pub memoryType: cudaMemoryType, pub device: c_int, pub devicePointer: *mut c_void, pub hostPointer: *mut c_void, pub isManaged: c_int, }
CUDA pointer attributes
Fields
memoryType: cudaMemoryType
The physical location of the memory, ::cudaMemoryTypeHost or ::cudaMemoryTypeDevice.
device: c_int
The device against which the memory was allocated or registered. If the memory type is ::cudaMemoryTypeDevice then this identifies the device on which the memory referred physically resides. If the memory type is ::cudaMemoryTypeHost then this identifies the device which was current when the memory was allocated or registered (and if that device is deinitialized then this allocation will vanish with that device's state).
devicePointer: *mut c_void
The address which may be dereferenced on the current device to access the memory or NULL if no such address exists.
hostPointer: *mut c_void
The address which may be dereferenced on the host to access the memory or NULL if no such address exists.
isManaged: c_int
Indicates if this pointer points to managed memory