.TH "cudaPointerAttributes" 3 "24 Apr 2019" "Version 6.0" "Doxygen" \" -*- nroff -*- .ad l .nh .SH NAME cudaPointerAttributes \- .SH SYNOPSIS .br .PP .SS "Data Fields" .in +1c .ti -1c .RI "void * \fBdevicePointer\fP" .br .ti -1c .RI "void * \fBhostPointer\fP" .br .ti -1c .RI "__CUDA_DEPRECATED int \fBisManaged\fP" .br .ti -1c .RI "__CUDA_DEPRECATED enum \fBcudaMemoryType\fP \fBmemoryType\fP" .br .ti -1c .RI "enum \fBcudaMemoryType\fP \fBtype\fP" .br .in -1c .SH "Detailed Description" .PP CUDA pointer attributes .SH "Field Documentation" .PP .SS "void* \fBcudaPointerAttributes::devicePointer\fP" .PP The address which may be dereferenced on the current device to access the memory or NULL if no such address exists. .SS "void* \fBcudaPointerAttributes::hostPointer\fP" .PP The address which may be dereferenced on the host to access the memory or NULL if no such address exists. .PP \fBNote:\fP .RS 4 CUDA doesn't check if unregistered memory is allocated so this field may contain invalid pointer if an invalid pointer has been passed to CUDA. .RE .PP .SS "__CUDA_DEPRECATED int \fBcudaPointerAttributes::isManaged\fP" .PP \fBDeprecated\fP .RS 4 .RE .PP Indicates if this pointer points to managed memory .SS "__CUDA_DEPRECATED enum \fBcudaMemoryType\fP \fBcudaPointerAttributes::memoryType\fP" .PP \fBDeprecated\fP .RS 4 .RE .PP The physical location of the memory, \fBcudaMemoryTypeHost\fP or \fBcudaMemoryTypeDevice\fP. Note that managed memory can return either \fBcudaMemoryTypeDevice\fP or \fBcudaMemoryTypeHost\fP regardless of it's physical location. .SS "enum \fBcudaMemoryType\fP \fBcudaPointerAttributes::type\fP" .PP The type of memory - \fBcudaMemoryTypeUnregistered\fP, \fBcudaMemoryTypeHost\fP, \fBcudaMemoryTypeDevice\fP or \fBcudaMemoryTypeManaged\fP. .SH "Author" .PP Generated automatically by Doxygen from the source code.