cudaError_t cudaHostGetDevicePointer ( void **  pDevice,
void *  pHost,
unsigned int  flags 
)

Passes back the device pointer corresponding to the mapped, pinned host buffer allocated by cudaHostAlloc().

cudaHostGetDevicePointer() will fail if the cudaDeviceMapHost flag was not specified before deferred context creation occurred, or if called on a device that does not support mapped, pinned memory.

flags provides for future releases. For now, it must be set to 0.

Parameters:
pDevice - Returned device pointer for mapped memory
pHost - Requested host pointer mapping
flags - Flags for extensions (must be 0 for now)
Returns:
cudaSuccess, cudaErrorInvalidValue, cudaErrorMemoryAllocation
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaSetDeviceFlags, cudaHostAlloc


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA