cuda.bindings.cufile.read#

cuda.bindings.cufile.read(
intptr_t fh,
intptr_t buf_ptr_base,
size_t size,
off_t file_offset,
off_t buf_ptr_offset,
)#
read data from a registered file handle to a specified device or host memory.

:param fh: ``CUfileHandle_t`` opaque file handle.
:type fh: intptr_t
:param buf_ptr_base: base address of buffer in device or host memory.
:type buf_ptr_base: intptr_t
:param size: size bytes to read.
:type size: size_t
:param file_offset: file-offset from begining of the file.
:type file_offset: off_t
:param buf_ptr_offset: offset relative to the buf_ptr_base pointer to read into.
:type buf_ptr_offset: off_t

:returns: number of bytes read on success.
:rtype: ssize_t

.. seealso:: `cuFileRead`