Skip to main content

Crate cufile_sys

Crate cufile_sys 

Source
Expand description

§cufile-sys

Raw FFI bindings for NVIDIA CuFile library

§Currently Supported Bindings/APIs

  • cuFileDriverOpen/cuFileDriverClose
  • cuFileHandleRegister/cuFileHandleDeregister
  • cuFileBufRegister/cuFileBufDeregister
  • cuFileRead/cuFileWrite
  • cuFileGetErrorString

§Contibuting

All contributions are welcome, just open a PR :)

Structs§

CUfileDescr_t

Enums§

CUfileFileHandleType

Constants§

CUFILE_VERSION
CU_FILE_ASYNC_NOT_SUPPORTED
cuFile stream operation is not supported.
CU_FILE_BATCH_FULL
Queue full for batch operation.
CU_FILE_BATCH_SUBMIT_FAILED
Failed to submit a batch operation.
CU_FILE_CUDA_CONTEXT_MISMATCH
A CUDA context mismatch.
CU_FILE_CUDA_DRIVER_ERROR
A CUDA Driver API error.
CU_FILE_CUDA_MEMORY_TYPE_INVALID
An invalid pointer memory type.
CU_FILE_CUDA_POINTER_INVALID
An invalid device pointer.
CU_FILE_CUDA_POINTER_RANGE_ERROR
The pointer range exceeds the allocated address range.
CU_FILE_DEVICE_NOT_FOUND
The GPU device cannot be not found.
CU_FILE_DEVICE_NOT_SUPPORTED
GDS is not supported on the current GPU.
CU_FILE_DIO_NOT_SET
The fd direct IO is not set.
CU_FILE_DRIVER_ALREADY_OPEN
The driver is already open.
CU_FILE_DRIVER_CLOSING
Driver shutdown in progress.
CU_FILE_DRIVER_INVALID_PROPS
An invalid property.
CU_FILE_DRIVER_NOT_INITIALIZED
The nvidia-fs driver is not loaded.
CU_FILE_DRIVER_UNSUPPORTED_LIMIT
A property range error.
CU_FILE_DRIVER_VERSION_MISMATCH
An nvidia-fs driver version mismatch.
CU_FILE_DRIVER_VERSION_READ_ERROR
An nvidia-fs driver version read error.
CU_FILE_GETNEWFD_FAILED
Failed to obtain a new file descriptor.
CU_FILE_GPU_MEMORY_PINNING_FAILED
Failed to allocate pinned GPU memory.
CU_FILE_HANDLE_ALREADY_REGISTERED
The file descriptor is already registered.
CU_FILE_HANDLE_NOT_REGISTERED
The file descriptor is not registered.
CU_FILE_INTERNAL_ERROR
An internal error has occurred. Refer to cufile.log for more details.
CU_FILE_INVALID_FILE_OPEN_FLAG
Unsupported file open flags.
CU_FILE_INVALID_FILE_TYPE
An unsupported file type.
CU_FILE_INVALID_MAPPING_RANGE
Access beyond the mapped size.
CU_FILE_INVALID_MAPPING_SIZE
Access beyond the maximum pinned memory size.
CU_FILE_INVALID_VALUE
Invalid API arguments.
CU_FILE_IO_DISABLED
GDS is disabled by config on the current file.
CU_FILE_IO_NOT_SUPPORTED
GDS is not supported on the current file.
CU_FILE_MEMORY_ALREADY_REGISTERED
Device pointer is already registered.
CU_FILE_MEMORY_NOT_REGISTERED
A device pointer lookup failure has occurred.
CU_FILE_NVFS_DRIVER_ERROR
An nvidia-fs driver ioctl error.
CU_FILE_NVFS_SETUP_ERROR
An NVFS driver initialization error has occurred.
CU_FILE_PERMISSION_DENIED
A driver or file access error.
CU_FILE_PLATFORM_NOT_SUPPORTED
GDS is not supported on the current platform.
CU_FILE_SUCCESS
The cufile is successful.

Functions§

cuFileBufDeregister
cuFileBufRegister
cuFileDriverClose
cuFileDriverOpen
cuFileGetErrorString
cuFileHandleDeregister
cuFileHandleRegister
cuFileRead
cuFileWrite

Type Aliases§

CUfileError_t
CUfileHandle_t

Unions§

CUfileDescrHandle