OPENCL error code

Source: Internet
Author: User

#define CL_SUCCESS                                  0
#define Cl_device_not_found                         -1
#define Cl_device_not_available                     -2
#define Cl_compiler_not_available                   -3
#define Cl_mem_object_allocation_failure            -4
#define Cl_out_of_resources                         -5
#define Cl_out_of_host_memory                       -6
#define Cl_profiling_info_not_available             -7
#define CL_MEM_COPY_OVERLAP                         -8
#define Cl_image_format_mismatch                    -9
#define Cl_image_format_not_supported               -10
#define Cl_build_program_failure                    -11
#define Cl_map_failure                              -12
#define Cl_misaligned_sub_buffer_offset             -13
#define CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST-14
#define Cl_invalid_value                            -30
#define Cl_invalid_device_type                      -31
#define Cl_invalid_platform                         -32
#define Cl_invalid_device                           -33
#define Cl_invalid_context                          -34
#define Cl_invalid_queue_properties                 -35
#define Cl_invalid_command_queue                    -36
#define CL_INVALID_HOST_PTR                         -37
#define Cl_invalid_mem_object                       -38
#define Cl_invalid_image_format_descriptor          -39
#define Cl_invalid_image_size                       -40
#define Cl_invalid_sampler                          -41
#define Cl_invalid_binary                           -42
#define Cl_invalid_build_options                    -43
#define Cl_invalid_program                          -44
#define Cl_invalid_program_executable               -45
#define Cl_invalid_kernel_name                      -46
#define Cl_invalid_kernel_definition                -47
#define Cl_invalid_kernel                           -48
#define CL_INVALID_ARG_INDEX                        -49
#define Cl_invalid_arg_value                        -50
#define Cl_invalid_arg_size                         -51
#define Cl_invalid_kernel_args                      -52
#define Cl_invalid_work_dimension                   -53
#define Cl_invalid_work_group_size                  -54
#define Cl_invalid_work_item_size                   -55
#define Cl_invalid_global_offset                    -56
#define Cl_invalid_event_wait_list                  -57
#define Cl_invalid_event                            -58
#define Cl_invalid_operation                        -59
#define Cl_invalid_gl_object                        -60
#define Cl_invalid_buffer_size                      -61
#define Cl_invalid_mip_level                        -62
#define Cl_invalid_global_work_size                 -63

#define Cl_invalid_property-64

Error description

cl_success command executed successfully, no error occurred

Cl_device_not_found did not find an OpenCL device matching the condition

Cl_device_not_available OpenCL device is currently unavailable

The Cl_compiler_not_available program was created by source code, but no OpenCL C compiler is available

Cl_mem_object_allocation_failure cannot allocate memory for memory objects or image objects

Cl_out_of_resources not enough resources to execute the command

There are not enough memory execution commands on the Cl_out_of_host_memory host

Cl_profiling_info_not_available unable to get performance evaluation information for the event or command queue does not support performance evaluation

Cl_mem_copy_overlap two buffers overlap in the same area of memory

Cl_image_format_mismatch images are not in the same image format

Cl_image_format_not_supported does not support the specified image format

Cl_build_program_failure cannot build executable code for a program

Cl_map_failure memory area cannot be mapped to host memory

One or more parameters of the Cl_invalid_value command specified an illegal value

Cl_invalid_device_type incoming device type is not a valid value

Cl_invalid_platform incoming platform is not a valid value

Cl_invalid_device incoming device is not a valid value

(continued) Error description

Cl_invalid_context The incoming context is not a valid value

Cl_invalid_queue_properties device does not support command queue properties

Cl_invalid_command_queue incoming command queue is not a valid value

CL_INVALID_HOST_PTR host pointer is not legal

Cl_invalid_mem_object incoming Memory object is not a valid value

Cl_invalid_image_format_descriptor incoming image format descriptor is not a valid value

Cl_invalid_image_size device does not support this image size

Cl_invalid_sampler Incoming sampling tool is not a valid value

Cl_invalid_binary passed in an illegal binary program

Cl_invalid_build_options one or more build options are not valid

Cl_invalid_program incoming program is not a valid value

Cl_invalid_program_executable program failed to successfully build an executable program on the command queue associated device

The specified kernel does not exist in the Cl_invalid_kernel_name program

Cl_invalid_kernel_definition the kernel defined in the source code of the program is illegal

Cl_invalid_kernel incoming kernel is not a valid value

Cl_invalid_arg_index parameter index indicates that the parameter is not valid for the kernel

Cl_invalid_arg_value for a non-local parameter, the kernel parameter value is null, or the kernel parameter value is non-null for a local parameter

Cl_invalid_arg_size parameter size inconsistent with kernel parameters

Cl_invalid_kernel_args one or more kernel parameters are not assigned a value

Cl_invalid_work_dimension work dimension value is not a value between

Cl_invalid_work_group_size Local or global working group size is not valid

Cl_invalid_work_item_size one or more work items size exceeds the maximum size supported by the device

Cl_invalid_global_offset Global offset exceeds the supported bounds

The wait list size provided by Cl_invalid_event_wait_list is not valid or contains a non-event

Cl_invalid_event the incoming event is not a valid value

Cl_invalid_operation executing a command causes an illegal operation to occur

There is a problem with cl_invalid_gl_object OpenGL referenced objects

Cl_invalid_buffer_size the specified buffer size is out of bounds

Cl_invalid_mip_level the mipmap level specified for OpenGL textures is not legal for OpenGL objects

Cl_invalid_global_work_size incoming global work size is not legal, may be 0 or exceeds the size supported by the device

OPENCL error code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.