File error.h

Error functions.

Enums

ga_error

List of all the possible error codes.

Values:

0
GA_MEMORY_ERROR
GA_VALUE_ERROR
GA_IMPL_ERROR
GA_INVALID_ERROR
GA_UNSUPPORTED_ERROR
GA_SYS_ERROR
GA_RUN_ERROR
GA_DEVSUP_ERROR
GA_READONLY_ERROR
GA_WRITEONLY_ERROR
GA_BLAS_ERROR
GA_UNALIGNED_ERROR
GA_COPY_ERROR
GA_NODEV_ERROR
GA_MISC_ERROR
GA_COMM_ERROR
GA_XLARGE_ERROR
GA_LOAD_ERROR

Functions

const char* gpuarray_error_str(int err)

Returns a user-readable description for most error codes.

Some errors only happen in a context and in those cases Gpu_error() will provide more details as to the reason for the error.