|  | 
      
        
          | CUresult cuMemcpyHtoA | ( | CUarray | dstArray, |  
          |  |  | size_t | dstOffset, |  
          |  |  | const void * | srcHost, |  
          |  |  | size_t | ByteCount |  |  
          |  | ) |  |  |  |  
Copies from host memory to a 1D CUDA array. dstArrayanddstOffsetspecify the CUDA array handle and starting offset in bytes of the destination data.pSrcspecifies the base address of the source.ByteCountspecifies the number of bytes to copy. 
 Parameters:
  
    |  | dstArray | - Destination array |  |  | dstOffset | - Offset in bytes of destination array |  |  | srcHost | - Source host pointer |  |  | ByteCount | - Size of memory copy in bytes | 
 Returns:CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE 
 Note:Note that this function may also return error codes from previous, asynchronous launches.
 See also:cuArray3DCreate, cuArray3DGetDescriptor, cuArrayCreate, cuArrayDestroy, cuArrayGetDescriptor, cuMemAlloc, cuMemAllocHost, cuMemAllocPitch, cuMemcpy2D, cuMemcpy2DAsync, cuMemcpy2DUnaligned, cuMemcpy3D, cuMemcpy3DAsync, cuMemcpyAtoA, cuMemcpyAtoD, cuMemcpyAtoH, cuMemcpyAtoHAsync, cuMemcpyDtoA, cuMemcpyDtoD, cuMemcpyDtoDAsync, cuMemcpyDtoH, cuMemcpyDtoHAsync, cuMemcpyHtoAAsync, cuMemcpyHtoD, cuMemcpyHtoDAsync, cuMemFree, cuMemFreeHost, cuMemGetAddressRange, cuMemGetInfo, cuMemHostAlloc, cuMemHostGetDevicePointer, cuMemsetD2D8, cuMemsetD2D16, cuMemsetD2D32, cuMemsetD8, cuMemsetD16, cuMemsetD32 
 
     |