cuda.bindings.cufile.handle_register#
- cuda.bindings.cufile.handle_register(descr) intptr_t#
cuFileHandleRegister is required, and performs extra checking that is memoized to provide increased performance on later cuFile operations.
Description cuFileHandleRegister registers the open file descriptor for use with cuFile IO operations. This API will ensure that the file’s descriptor is checked for GPUDirect Storage support and returns a valid file handle on CU_FILE_SUCCESS.
- Parameters:
descr (intptr_t) –
CUfileDescr_tfile descriptor (OS agnostic).- Returns:
CUfileHandle_topaque file handle for IO operations.- Return type:
intptr_t
Note
the file needs to be opened in O_DIRECT mode to support GPUDirect Storage.
See also
cuFileHandleRegister