/*
 * oclh_error_codes.h
 *      Author: havock
 */

#ifndef OCLH_H_ERROR_CODES_H_
#define OCLH_H_ERROR_CODES_H_ 1

#define _GHM_OK                                      0
#define _GHM_HOST_MEMALLOC_ERROR                  -150
#define _GHM_DEVICE_MEMALLOC_ERROR                -151
#define _GHM_UNKNOWN_SYNC_TYPE_ERROR              -152
#define _GHM_OPEN_FILE_ERROR                      -153
#define _GHM_SEEK_FILE_ERROR                      -154
#define _GHM_READ_FILE_ERROR                      -155
#define _GHM_WRITE_FILE_ERROR                     -156
#define _GHM_EMPTY_STRING_RECEIVED_ERROR          -157
#define _GHM_DECONSTRUCTION_OF_WORKSET_ERROR      -158
#define _GHM_COMMAND_QUEUE_FLUSH_ERROR            -159
#define _GHM_COMMAND_QUEUE_FINISH_ERROR           -160
#define _GHM_UNAVALABLE_KERNEL_ERROR              -161
#define _GHM_NO_PLATFORMS_AVAILABLE               -162
#define _GHM_NO_DEVICES_AVAILABLE                 -163
#define _GHM_CREATING_KERNELS_ERROR               -164
#define _GHM_INCONSISTED_LOG_ERROR                -165
#define _GHM_NULL_POINTER_RECEIVED_ERROR          -166
#define _GHM_ZERO_SIZE_RECEIVED_ERROR             -167
#define _GHM_UNKNOWN_PROGRAM_SOURCE_ERROR         -168
#define _GHM_INVALID_MAXSIZE_OF_WORK_GROUP_ERROR  -169
#define _GHM_INVALID_NUMBER_OF_CMP_UNITS_ERROR    -170
#define _GHM_INCONSISTED_DEV_DESCRIPTION_ERROR    -171

#define _GHM_IMPOSSIBLE_SITUATION_ERROR      4030  /* the first weird four-digit
                                                      (decimal) number */
#endif /* OCLH_H_ERROR_CODES_H_ */
