00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __OPENCL_CL_H
00025 #define __OPENCL_CL_H
00026
00027 #ifdef __APPLE__
00028 #include <MiniCL/cl_platform.h>
00029 #else
00030 #include <MiniCL/cl_platform.h>
00031 #endif
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00037
00038
00039 typedef struct _cl_platform_id * cl_platform_id;
00040 typedef struct _cl_device_id * cl_device_id;
00041 typedef struct _cl_context * cl_context;
00042 typedef struct _cl_command_queue * cl_command_queue;
00043 typedef struct _cl_mem * cl_mem;
00044 typedef struct _cl_program * cl_program;
00045 typedef struct _cl_kernel * cl_kernel;
00046 typedef struct _cl_event * cl_event;
00047 typedef struct _cl_sampler * cl_sampler;
00048
00049 typedef cl_uint cl_bool;
00050 typedef cl_ulong cl_bitfield;
00051 typedef cl_bitfield cl_device_type;
00052 typedef cl_uint cl_platform_info;
00053 typedef cl_uint cl_device_info;
00054 typedef cl_bitfield cl_device_address_info;
00055 typedef cl_bitfield cl_device_fp_config;
00056 typedef cl_uint cl_device_mem_cache_type;
00057 typedef cl_uint cl_device_local_mem_type;
00058 typedef cl_bitfield cl_device_exec_capabilities;
00059 typedef cl_bitfield cl_command_queue_properties;
00060
00061 typedef intptr_t cl_context_properties;
00062 typedef cl_uint cl_context_info;
00063 typedef cl_uint cl_command_queue_info;
00064 typedef cl_uint cl_channel_order;
00065 typedef cl_uint cl_channel_type;
00066 typedef cl_bitfield cl_mem_flags;
00067 typedef cl_uint cl_mem_object_type;
00068 typedef cl_uint cl_mem_info;
00069 typedef cl_uint cl_image_info;
00070 typedef cl_uint cl_addressing_mode;
00071 typedef cl_uint cl_filter_mode;
00072 typedef cl_uint cl_sampler_info;
00073 typedef cl_bitfield cl_map_flags;
00074 typedef cl_uint cl_program_info;
00075 typedef cl_uint cl_program_build_info;
00076 typedef cl_int cl_build_status;
00077 typedef cl_uint cl_kernel_info;
00078 typedef cl_uint cl_kernel_work_group_info;
00079 typedef cl_uint cl_event_info;
00080 typedef cl_uint cl_command_type;
00081 typedef cl_uint cl_profiling_info;
00082
00083 typedef struct _cl_image_format {
00084 cl_channel_order image_channel_order;
00085 cl_channel_type image_channel_data_type;
00086 } cl_image_format;
00087
00088
00089
00090
00091 #define CL_SUCCESS 0
00092 #define CL_DEVICE_NOT_FOUND -1
00093 #define CL_DEVICE_NOT_AVAILABLE -2
00094 #define CL_DEVICE_COMPILER_NOT_AVAILABLE -3
00095 #define CL_MEM_OBJECT_ALLOCATION_FAILURE -4
00096 #define CL_OUT_OF_RESOURCES -5
00097 #define CL_OUT_OF_HOST_MEMORY -6
00098 #define CL_PROFILING_INFO_NOT_AVAILABLE -7
00099 #define CL_MEM_COPY_OVERLAP -8
00100 #define CL_IMAGE_FORMAT_MISMATCH -9
00101 #define CL_IMAGE_FORMAT_NOT_SUPPORTED -10
00102 #define CL_BUILD_PROGRAM_FAILURE -11
00103 #define CL_MAP_FAILURE -12
00104
00105 #define CL_INVALID_VALUE -30
00106 #define CL_INVALID_DEVICE_TYPE -31
00107 #define CL_INVALID_PLATFORM -32
00108 #define CL_INVALID_DEVICE -33
00109 #define CL_INVALID_CONTEXT -34
00110 #define CL_INVALID_QUEUE_PROPERTIES -35
00111 #define CL_INVALID_COMMAND_QUEUE -36
00112 #define CL_INVALID_HOST_PTR -37
00113 #define CL_INVALID_MEM_OBJECT -38
00114 #define CL_INVALID_IMAGE_FORMAT_DESCRIPTOR -39
00115 #define CL_INVALID_IMAGE_SIZE -40
00116 #define CL_INVALID_SAMPLER -41
00117 #define CL_INVALID_BINARY -42
00118 #define CL_INVALID_BUILD_OPTIONS -43
00119 #define CL_INVALID_PROGRAM -44
00120 #define CL_INVALID_PROGRAM_EXECUTABLE -45
00121 #define CL_INVALID_KERNEL_NAME -46
00122 #define CL_INVALID_KERNEL_DEFINITION -47
00123 #define CL_INVALID_KERNEL -48
00124 #define CL_INVALID_ARG_INDEX -49
00125 #define CL_INVALID_ARG_VALUE -50
00126 #define CL_INVALID_ARG_SIZE -51
00127 #define CL_INVALID_KERNEL_ARGS -52
00128 #define CL_INVALID_WORK_DIMENSION -53
00129 #define CL_INVALID_WORK_GROUP_SIZE -54
00130 #define CL_INVALID_WORK_ITEM_SIZE -55
00131 #define CL_INVALID_GLOBAL_OFFSET -56
00132 #define CL_INVALID_EVENT_WAIT_LIST -57
00133 #define CL_INVALID_EVENT -58
00134 #define CL_INVALID_OPERATION -59
00135 #define CL_INVALID_GL_OBJECT -60
00136 #define CL_INVALID_BUFFER_SIZE -61
00137 #define CL_INVALID_MIP_LEVEL -62
00138
00139
00140 #define CL_VERSION_1_0 1
00141
00142
00143 #define CL_FALSE 0
00144 #define CL_TRUE 1
00145
00146
00147 #define CL_PLATFORM_PROFILE 0x0900
00148 #define CL_PLATFORM_VERSION 0x0901
00149 #define CL_PLATFORM_NAME 0x0902
00150 #define CL_PLATFORM_VENDOR 0x0903
00151 #define CL_PLATFORM_EXTENSIONS 0x0904
00152
00153
00154 #define CL_DEVICE_TYPE_DEFAULT (1 << 0)
00155 #define CL_DEVICE_TYPE_CPU (1 << 1)
00156 #define CL_DEVICE_TYPE_GPU (1 << 2)
00157 #define CL_DEVICE_TYPE_ACCELERATOR (1 << 3)
00158 #define CL_DEVICE_TYPE_ALL 0xFFFFFFFF
00159
00160
00161 #define CL_DEVICE_TYPE 0x1000
00162 #define CL_DEVICE_VENDOR_ID 0x1001
00163 #define CL_DEVICE_MAX_COMPUTE_UNITS 0x1002
00164 #define CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS 0x1003
00165 #define CL_DEVICE_MAX_WORK_GROUP_SIZE 0x1004
00166 #define CL_DEVICE_MAX_WORK_ITEM_SIZES 0x1005
00167 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR 0x1006
00168 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT 0x1007
00169 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT 0x1008
00170 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG 0x1009
00171 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT 0x100A
00172 #define CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE 0x100B
00173 #define CL_DEVICE_MAX_CLOCK_FREQUENCY 0x100C
00174 #define CL_DEVICE_ADDRESS_BITS 0x100D
00175 #define CL_DEVICE_MAX_READ_IMAGE_ARGS 0x100E
00176 #define CL_DEVICE_MAX_WRITE_IMAGE_ARGS 0x100F
00177 #define CL_DEVICE_MAX_MEM_ALLOC_SIZE 0x1010
00178 #define CL_DEVICE_IMAGE2D_MAX_WIDTH 0x1011
00179 #define CL_DEVICE_IMAGE2D_MAX_HEIGHT 0x1012
00180 #define CL_DEVICE_IMAGE3D_MAX_WIDTH 0x1013
00181 #define CL_DEVICE_IMAGE3D_MAX_HEIGHT 0x1014
00182 #define CL_DEVICE_IMAGE3D_MAX_DEPTH 0x1015
00183 #define CL_DEVICE_IMAGE_SUPPORT 0x1016
00184 #define CL_DEVICE_MAX_PARAMETER_SIZE 0x1017
00185 #define CL_DEVICE_MAX_SAMPLERS 0x1018
00186 #define CL_DEVICE_MEM_BASE_ADDR_ALIGN 0x1019
00187 #define CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE 0x101A
00188 #define CL_DEVICE_SINGLE_FP_CONFIG 0x101B
00189 #define CL_DEVICE_GLOBAL_MEM_CACHE_TYPE 0x101C
00190 #define CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE 0x101D
00191 #define CL_DEVICE_GLOBAL_MEM_CACHE_SIZE 0x101E
00192 #define CL_DEVICE_GLOBAL_MEM_SIZE 0x101F
00193 #define CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE 0x1020
00194 #define CL_DEVICE_MAX_CONSTANT_ARGS 0x1021
00195 #define CL_DEVICE_LOCAL_MEM_TYPE 0x1022
00196 #define CL_DEVICE_LOCAL_MEM_SIZE 0x1023
00197 #define CL_DEVICE_ERROR_CORRECTION_SUPPORT 0x1024
00198 #define CL_DEVICE_PROFILING_TIMER_RESOLUTION 0x1025
00199 #define CL_DEVICE_ENDIAN_LITTLE 0x1026
00200 #define CL_DEVICE_AVAILABLE 0x1027
00201 #define CL_DEVICE_COMPILER_AVAILABLE 0x1028
00202 #define CL_DEVICE_EXECUTION_CAPABILITIES 0x1029
00203 #define CL_DEVICE_QUEUE_PROPERTIES 0x102A
00204 #define CL_DEVICE_NAME 0x102B
00205 #define CL_DEVICE_VENDOR 0x102C
00206 #define CL_DRIVER_VERSION 0x102D
00207 #define CL_DEVICE_PROFILE 0x102E
00208 #define CL_DEVICE_VERSION 0x102F
00209 #define CL_DEVICE_EXTENSIONS 0x1030
00210 #define CL_DEVICE_PLATFORM 0x1031
00211
00212
00213 #define CL_DEVICE_ADDRESS_32_BITS (1 << 0)
00214 #define CL_DEVICE_ADDRESS_64_BITS (1 << 1)
00215
00216
00217 #define CL_FP_DENORM (1 << 0)
00218 #define CL_FP_INF_NAN (1 << 1)
00219 #define CL_FP_ROUND_TO_NEAREST (1 << 2)
00220 #define CL_FP_ROUND_TO_ZERO (1 << 3)
00221 #define CL_FP_ROUND_TO_INF (1 << 4)
00222 #define CL_FP_FMA (1 << 5)
00223
00224
00225 #define CL_NONE 0x0
00226 #define CL_READ_ONLY_CACHE 0x1
00227 #define CL_READ_WRITE_CACHE 0x2
00228
00229
00230 #define CL_LOCAL 0x1
00231 #define CL_GLOBAL 0x2
00232
00233
00234 #define CL_EXEC_KERNEL (1 << 0)
00235 #define CL_EXEC_NATIVE_KERNEL (1 << 1)
00236
00237
00238 #define CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE (1 << 0)
00239 #define CL_QUEUE_PROFILING_ENABLE (1 << 1)
00240
00241
00242 #define CL_CONTEXT_REFERENCE_COUNT 0x1080
00243 #define CL_CONTEXT_NUM_DEVICES 0x1081
00244 #define CL_CONTEXT_DEVICES 0x1082
00245 #define CL_CONTEXT_PROPERTIES 0x1083
00246 #define CL_CONTEXT_PLATFORM 0x1084
00247
00248
00249 #define CL_QUEUE_CONTEXT 0x1090
00250 #define CL_QUEUE_DEVICE 0x1091
00251 #define CL_QUEUE_REFERENCE_COUNT 0x1092
00252 #define CL_QUEUE_PROPERTIES 0x1093
00253
00254
00255 #define CL_MEM_READ_WRITE (1 << 0)
00256 #define CL_MEM_WRITE_ONLY (1 << 1)
00257 #define CL_MEM_READ_ONLY (1 << 2)
00258 #define CL_MEM_USE_HOST_PTR (1 << 3)
00259 #define CL_MEM_ALLOC_HOST_PTR (1 << 4)
00260 #define CL_MEM_COPY_HOST_PTR (1 << 5)
00261
00262
00263 #define CL_R 0x10B0
00264 #define CL_A 0x10B1
00265 #define CL_RG 0x10B2
00266 #define CL_RA 0x10B3
00267 #define CL_RGB 0x10B4
00268 #define CL_RGBA 0x10B5
00269 #define CL_BGRA 0x10B6
00270 #define CL_ARGB 0x10B7
00271 #define CL_INTENSITY 0x10B8
00272 #define CL_LUMINANCE 0x10B9
00273
00274
00275 #define CL_SNORM_INT8 0x10D0
00276 #define CL_SNORM_INT16 0x10D1
00277 #define CL_UNORM_INT8 0x10D2
00278 #define CL_UNORM_INT16 0x10D3
00279 #define CL_UNORM_SHORT_565 0x10D4
00280 #define CL_UNORM_SHORT_555 0x10D5
00281 #define CL_UNORM_INT_101010 0x10D6
00282 #define CL_SIGNED_INT8 0x10D7
00283 #define CL_SIGNED_INT16 0x10D8
00284 #define CL_SIGNED_INT32 0x10D9
00285 #define CL_UNSIGNED_INT8 0x10DA
00286 #define CL_UNSIGNED_INT16 0x10DB
00287 #define CL_UNSIGNED_INT32 0x10DC
00288 #define CL_HALF_FLOAT 0x10DD
00289 #define CL_FLOAT 0x10DE
00290
00291
00292 #define CL_MEM_OBJECT_BUFFER 0x10F0
00293 #define CL_MEM_OBJECT_IMAGE2D 0x10F1
00294 #define CL_MEM_OBJECT_IMAGE3D 0x10F2
00295
00296
00297 #define CL_MEM_TYPE 0x1100
00298 #define CL_MEM_FLAGS 0x1101
00299 #define CL_MEM_SIZE 0x1102
00300 #define CL_MEM_HOST_PTR 0x1103
00301 #define CL_MEM_MAP_COUNT 0x1104
00302 #define CL_MEM_REFERENCE_COUNT 0x1105
00303 #define CL_MEM_CONTEXT 0x1106
00304
00305
00306 #define CL_IMAGE_FORMAT 0x1110
00307 #define CL_IMAGE_ELEMENT_SIZE 0x1111
00308 #define CL_IMAGE_ROW_PITCH 0x1112
00309 #define CL_IMAGE_SLICE_PITCH 0x1113
00310 #define CL_IMAGE_WIDTH 0x1114
00311 #define CL_IMAGE_HEIGHT 0x1115
00312 #define CL_IMAGE_DEPTH 0x1116
00313
00314
00315 #define CL_ADDRESS_NONE 0x1130
00316 #define CL_ADDRESS_CLAMP_TO_EDGE 0x1131
00317 #define CL_ADDRESS_CLAMP 0x1132
00318 #define CL_ADDRESS_REPEAT 0x1133
00319
00320
00321 #define CL_FILTER_NEAREST 0x1140
00322 #define CL_FILTER_LINEAR 0x1141
00323
00324
00325 #define CL_SAMPLER_REFERENCE_COUNT 0x1150
00326 #define CL_SAMPLER_CONTEXT 0x1151
00327 #define CL_SAMPLER_NORMALIZED_COORDS 0x1152
00328 #define CL_SAMPLER_ADDRESSING_MODE 0x1153
00329 #define CL_SAMPLER_FILTER_MODE 0x1154
00330
00331
00332 #define CL_MAP_READ (1 << 0)
00333 #define CL_MAP_WRITE (1 << 1)
00334
00335
00336 #define CL_PROGRAM_REFERENCE_COUNT 0x1160
00337 #define CL_PROGRAM_CONTEXT 0x1161
00338 #define CL_PROGRAM_NUM_DEVICES 0x1162
00339 #define CL_PROGRAM_DEVICES 0x1163
00340 #define CL_PROGRAM_SOURCE 0x1164
00341 #define CL_PROGRAM_BINARY_SIZES 0x1165
00342 #define CL_PROGRAM_BINARIES 0x1166
00343
00344
00345 #define CL_PROGRAM_BUILD_STATUS 0x1181
00346 #define CL_PROGRAM_BUILD_OPTIONS 0x1182
00347 #define CL_PROGRAM_BUILD_LOG 0x1183
00348
00349
00350 #define CL_BUILD_SUCCESS 0
00351 #define CL_BUILD_NONE -1
00352 #define CL_BUILD_ERROR -2
00353 #define CL_BUILD_IN_PROGRESS -3
00354
00355
00356 #define CL_KERNEL_FUNCTION_NAME 0x1190
00357 #define CL_KERNEL_NUM_ARGS 0x1191
00358 #define CL_KERNEL_REFERENCE_COUNT 0x1192
00359 #define CL_KERNEL_CONTEXT 0x1193
00360 #define CL_KERNEL_PROGRAM 0x1194
00361
00362
00363 #define CL_KERNEL_WORK_GROUP_SIZE 0x11B0
00364 #define CL_KERNEL_COMPILE_WORK_GROUP_SIZE 0x11B1
00365 #define CL_KERNEL_LOCAL_MEM_SIZE 0x11B2
00366
00367
00368 #define CL_EVENT_COMMAND_QUEUE 0x11D0
00369 #define CL_EVENT_COMMAND_TYPE 0x11D1
00370 #define CL_EVENT_REFERENCE_COUNT 0x11D2
00371 #define CL_EVENT_COMMAND_EXECUTION_STATUS 0x11D3
00372
00373
00374 #define CL_COMMAND_NDRANGE_KERNEL 0x11F0
00375 #define CL_COMMAND_TASK 0x11F1
00376 #define CL_COMMAND_NATIVE_KERNEL 0x11F2
00377 #define CL_COMMAND_READ_BUFFER 0x11F3
00378 #define CL_COMMAND_WRITE_BUFFER 0x11F4
00379 #define CL_COMMAND_COPY_BUFFER 0x11F5
00380 #define CL_COMMAND_READ_IMAGE 0x11F6
00381 #define CL_COMMAND_WRITE_IMAGE 0x11F7
00382 #define CL_COMMAND_COPY_IMAGE 0x11F8
00383 #define CL_COMMAND_COPY_IMAGE_TO_BUFFER 0x11F9
00384 #define CL_COMMAND_COPY_BUFFER_TO_IMAGE 0x11FA
00385 #define CL_COMMAND_MAP_BUFFER 0x11FB
00386 #define CL_COMMAND_MAP_IMAGE 0x11FC
00387 #define CL_COMMAND_UNMAP_MEM_OBJECT 0x11FD
00388 #define CL_COMMAND_MARKER 0x11FE
00389 #define CL_COMMAND_WAIT_FOR_EVENTS 0x11FF
00390 #define CL_COMMAND_BARRIER 0x1200
00391 #define CL_COMMAND_ACQUIRE_GL_OBJECTS 0x1201
00392 #define CL_COMMAND_RELEASE_GL_OBJECTS 0x1202
00393
00394
00395 #define CL_COMPLETE 0x0
00396 #define CL_RUNNING 0x1
00397 #define CL_SUBMITTED 0x2
00398 #define CL_QUEUED 0x3
00399
00400
00401 #define CL_PROFILING_COMMAND_QUEUED 0x1280
00402 #define CL_PROFILING_COMMAND_SUBMIT 0x1281
00403 #define CL_PROFILING_COMMAND_START 0x1282
00404 #define CL_PROFILING_COMMAND_END 0x1283
00405
00406
00407
00408
00409 extern CL_API_ENTRY cl_int CL_API_CALL
00410 clGetPlatformIDs(cl_uint ,
00411 cl_platform_id * ,
00412 cl_uint * ) CL_API_SUFFIX__VERSION_1_0;
00413
00414 extern CL_API_ENTRY cl_int CL_API_CALL
00415 clGetPlatformInfo(cl_platform_id ,
00416 cl_platform_info ,
00417 size_t ,
00418 void * ,
00419 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00420
00421
00422 extern CL_API_ENTRY cl_int CL_API_CALL
00423 clGetDeviceIDs(cl_platform_id ,
00424 cl_device_type ,
00425 cl_uint ,
00426 cl_device_id * ,
00427 cl_uint * ) CL_API_SUFFIX__VERSION_1_0;
00428
00429 extern CL_API_ENTRY cl_int CL_API_CALL
00430 clGetDeviceInfo(cl_device_id ,
00431 cl_device_info ,
00432 size_t ,
00433 void * ,
00434 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00435
00436
00437 extern CL_API_ENTRY cl_context CL_API_CALL
00438 clCreateContext(cl_context_properties * ,
00439 cl_uint ,
00440 const cl_device_id * ,
00441 void (*pfn_notify)(const char *, const void *, size_t, void *) ,
00442 void * ,
00443 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00444
00445 extern CL_API_ENTRY cl_context CL_API_CALL
00446 clCreateContextFromType(cl_context_properties * ,
00447 cl_device_type ,
00448 void (*pfn_notify)(const char *, const void *, size_t, void *) ,
00449 void * ,
00450 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00451
00452 extern CL_API_ENTRY cl_int CL_API_CALL
00453 clRetainContext(cl_context ) CL_API_SUFFIX__VERSION_1_0;
00454
00455 extern CL_API_ENTRY cl_int CL_API_CALL
00456 clReleaseContext(cl_context ) CL_API_SUFFIX__VERSION_1_0;
00457
00458 extern CL_API_ENTRY cl_int CL_API_CALL
00459 clGetContextInfo(cl_context ,
00460 cl_context_info ,
00461 size_t ,
00462 void * ,
00463 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00464
00465
00466 extern CL_API_ENTRY cl_command_queue CL_API_CALL
00467 clCreateCommandQueue(cl_context ,
00468 cl_device_id ,
00469 cl_command_queue_properties ,
00470 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00471
00472 extern CL_API_ENTRY cl_int CL_API_CALL
00473 clRetainCommandQueue(cl_command_queue ) CL_API_SUFFIX__VERSION_1_0;
00474
00475 extern CL_API_ENTRY cl_int CL_API_CALL
00476 clReleaseCommandQueue(cl_command_queue ) CL_API_SUFFIX__VERSION_1_0;
00477
00478 extern CL_API_ENTRY cl_int CL_API_CALL
00479 clGetCommandQueueInfo(cl_command_queue ,
00480 cl_command_queue_info ,
00481 size_t ,
00482 void * ,
00483 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00484
00485 extern CL_API_ENTRY cl_int CL_API_CALL
00486 clSetCommandQueueProperty(cl_command_queue ,
00487 cl_command_queue_properties ,
00488 cl_bool ,
00489 cl_command_queue_properties * ) CL_API_SUFFIX__VERSION_1_0;
00490
00491
00492 extern CL_API_ENTRY cl_mem CL_API_CALL
00493 clCreateBuffer(cl_context ,
00494 cl_mem_flags ,
00495 size_t ,
00496 void * ,
00497 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00498
00499 extern CL_API_ENTRY cl_mem CL_API_CALL
00500 clCreateImage2D(cl_context ,
00501 cl_mem_flags ,
00502 const cl_image_format * ,
00503 size_t ,
00504 size_t ,
00505 size_t ,
00506 void * ,
00507 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00508
00509 extern CL_API_ENTRY cl_mem CL_API_CALL
00510 clCreateImage3D(cl_context ,
00511 cl_mem_flags ,
00512 const cl_image_format * ,
00513 size_t ,
00514 size_t ,
00515 size_t ,
00516 size_t ,
00517 size_t ,
00518 void * ,
00519 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00520
00521 extern CL_API_ENTRY cl_int CL_API_CALL
00522 clRetainMemObject(cl_mem ) CL_API_SUFFIX__VERSION_1_0;
00523
00524 extern CL_API_ENTRY cl_int CL_API_CALL
00525 clReleaseMemObject(cl_mem ) CL_API_SUFFIX__VERSION_1_0;
00526
00527 extern CL_API_ENTRY cl_int CL_API_CALL
00528 clGetSupportedImageFormats(cl_context ,
00529 cl_mem_flags ,
00530 cl_mem_object_type ,
00531 cl_uint ,
00532 cl_image_format * ,
00533 cl_uint * ) CL_API_SUFFIX__VERSION_1_0;
00534
00535 extern CL_API_ENTRY cl_int CL_API_CALL
00536 clGetMemObjectInfo(cl_mem ,
00537 cl_mem_info ,
00538 size_t ,
00539 void * ,
00540 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00541
00542 extern CL_API_ENTRY cl_int CL_API_CALL
00543 clGetImageInfo(cl_mem ,
00544 cl_image_info ,
00545 size_t ,
00546 void * ,
00547 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00548
00549
00550 extern CL_API_ENTRY cl_sampler CL_API_CALL
00551 clCreateSampler(cl_context ,
00552 cl_bool ,
00553 cl_addressing_mode ,
00554 cl_filter_mode ,
00555 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00556
00557 extern CL_API_ENTRY cl_int CL_API_CALL
00558 clRetainSampler(cl_sampler ) CL_API_SUFFIX__VERSION_1_0;
00559
00560 extern CL_API_ENTRY cl_int CL_API_CALL
00561 clReleaseSampler(cl_sampler ) CL_API_SUFFIX__VERSION_1_0;
00562
00563 extern CL_API_ENTRY cl_int CL_API_CALL
00564 clGetSamplerInfo(cl_sampler ,
00565 cl_sampler_info ,
00566 size_t ,
00567 void * ,
00568 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00569
00570
00571 extern CL_API_ENTRY cl_program CL_API_CALL
00572 clCreateProgramWithSource(cl_context ,
00573 cl_uint ,
00574 const char ** ,
00575 const size_t * ,
00576 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00577
00578 extern CL_API_ENTRY cl_program CL_API_CALL
00579 clCreateProgramWithBinary(cl_context ,
00580 cl_uint ,
00581 const cl_device_id * ,
00582 const size_t * ,
00583 const unsigned char ** ,
00584 cl_int * ,
00585 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00586
00587 extern CL_API_ENTRY cl_int CL_API_CALL
00588 clRetainProgram(cl_program ) CL_API_SUFFIX__VERSION_1_0;
00589
00590 extern CL_API_ENTRY cl_int CL_API_CALL
00591 clReleaseProgram(cl_program ) CL_API_SUFFIX__VERSION_1_0;
00592
00593 extern CL_API_ENTRY cl_int CL_API_CALL
00594 clBuildProgram(cl_program ,
00595 cl_uint ,
00596 const cl_device_id * ,
00597 const char * ,
00598 void (*pfn_notify)(cl_program , void * ),
00599 void * ) CL_API_SUFFIX__VERSION_1_0;
00600
00601 extern CL_API_ENTRY cl_int CL_API_CALL
00602 clUnloadCompiler(void) CL_API_SUFFIX__VERSION_1_0;
00603
00604 extern CL_API_ENTRY cl_int CL_API_CALL
00605 clGetProgramInfo(cl_program ,
00606 cl_program_info ,
00607 size_t ,
00608 void * ,
00609 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00610
00611 extern CL_API_ENTRY cl_int CL_API_CALL
00612 clGetProgramBuildInfo(cl_program ,
00613 cl_device_id ,
00614 cl_program_build_info ,
00615 size_t ,
00616 void * ,
00617 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00618
00619
00620 extern CL_API_ENTRY cl_kernel CL_API_CALL
00621 clCreateKernel(cl_program ,
00622 const char * ,
00623 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00624
00625 extern CL_API_ENTRY cl_int CL_API_CALL
00626 clCreateKernelsInProgram(cl_program ,
00627 cl_uint ,
00628 cl_kernel * ,
00629 cl_uint * ) CL_API_SUFFIX__VERSION_1_0;
00630
00631 extern CL_API_ENTRY cl_int CL_API_CALL
00632 clRetainKernel(cl_kernel ) CL_API_SUFFIX__VERSION_1_0;
00633
00634 extern CL_API_ENTRY cl_int CL_API_CALL
00635 clReleaseKernel(cl_kernel ) CL_API_SUFFIX__VERSION_1_0;
00636
00637 extern CL_API_ENTRY cl_int CL_API_CALL
00638 clSetKernelArg(cl_kernel ,
00639 cl_uint ,
00640 size_t ,
00641 const void * ) CL_API_SUFFIX__VERSION_1_0;
00642
00643 extern CL_API_ENTRY cl_int CL_API_CALL
00644 clGetKernelInfo(cl_kernel ,
00645 cl_kernel_info ,
00646 size_t ,
00647 void * ,
00648 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00649
00650 extern CL_API_ENTRY cl_int CL_API_CALL
00651 clGetKernelWorkGroupInfo(cl_kernel ,
00652 cl_device_id ,
00653 cl_kernel_work_group_info ,
00654 size_t ,
00655 void * ,
00656 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00657
00658
00659 extern CL_API_ENTRY cl_int CL_API_CALL
00660 clWaitForEvents(cl_uint ,
00661 const cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00662
00663 extern CL_API_ENTRY cl_int CL_API_CALL
00664 clGetEventInfo(cl_event ,
00665 cl_event_info ,
00666 size_t ,
00667 void * ,
00668 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00669
00670 extern CL_API_ENTRY cl_int CL_API_CALL
00671 clRetainEvent(cl_event ) CL_API_SUFFIX__VERSION_1_0;
00672
00673 extern CL_API_ENTRY cl_int CL_API_CALL
00674 clReleaseEvent(cl_event ) CL_API_SUFFIX__VERSION_1_0;
00675
00676
00677 extern CL_API_ENTRY cl_int CL_API_CALL
00678 clGetEventProfilingInfo(cl_event ,
00679 cl_profiling_info ,
00680 size_t ,
00681 void * ,
00682 size_t * ) CL_API_SUFFIX__VERSION_1_0;
00683
00684
00685 extern CL_API_ENTRY cl_int CL_API_CALL
00686 clFlush(cl_command_queue ) CL_API_SUFFIX__VERSION_1_0;
00687
00688 extern CL_API_ENTRY cl_int CL_API_CALL
00689 clFinish(cl_command_queue ) CL_API_SUFFIX__VERSION_1_0;
00690
00691
00692 extern CL_API_ENTRY cl_int CL_API_CALL
00693 clEnqueueReadBuffer(cl_command_queue ,
00694 cl_mem ,
00695 cl_bool ,
00696 size_t ,
00697 size_t ,
00698 void * ,
00699 cl_uint ,
00700 const cl_event * ,
00701 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00702
00703 extern CL_API_ENTRY cl_int CL_API_CALL
00704 clEnqueueWriteBuffer(cl_command_queue ,
00705 cl_mem ,
00706 cl_bool ,
00707 size_t ,
00708 size_t ,
00709 const void * ,
00710 cl_uint ,
00711 const cl_event * ,
00712 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00713
00714 extern CL_API_ENTRY cl_int CL_API_CALL
00715 clEnqueueCopyBuffer(cl_command_queue ,
00716 cl_mem ,
00717 cl_mem ,
00718 size_t ,
00719 size_t ,
00720 size_t ,
00721 cl_uint ,
00722 const cl_event * ,
00723 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00724
00725 extern CL_API_ENTRY cl_int CL_API_CALL
00726 clEnqueueReadImage(cl_command_queue ,
00727 cl_mem ,
00728 cl_bool ,
00729 const size_t * ,
00730 const size_t * ,
00731 size_t ,
00732 size_t ,
00733 void * ,
00734 cl_uint ,
00735 const cl_event * ,
00736 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00737
00738 extern CL_API_ENTRY cl_int CL_API_CALL
00739 clEnqueueWriteImage(cl_command_queue ,
00740 cl_mem ,
00741 cl_bool ,
00742 const size_t * ,
00743 const size_t * ,
00744 size_t ,
00745 size_t ,
00746 const void * ,
00747 cl_uint ,
00748 const cl_event * ,
00749 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00750
00751 extern CL_API_ENTRY cl_int CL_API_CALL
00752 clEnqueueCopyImage(cl_command_queue ,
00753 cl_mem ,
00754 cl_mem ,
00755 const size_t * ,
00756 const size_t * ,
00757 const size_t * ,
00758 cl_uint ,
00759 const cl_event * ,
00760 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00761
00762 extern CL_API_ENTRY cl_int CL_API_CALL
00763 clEnqueueCopyImageToBuffer(cl_command_queue ,
00764 cl_mem ,
00765 cl_mem ,
00766 const size_t * ,
00767 const size_t * ,
00768 size_t ,
00769 cl_uint ,
00770 const cl_event * ,
00771 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00772
00773 extern CL_API_ENTRY cl_int CL_API_CALL
00774 clEnqueueCopyBufferToImage(cl_command_queue ,
00775 cl_mem ,
00776 cl_mem ,
00777 size_t ,
00778 const size_t * ,
00779 const size_t * ,
00780 cl_uint ,
00781 const cl_event * ,
00782 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00783
00784 extern CL_API_ENTRY void * CL_API_CALL
00785 clEnqueueMapBuffer(cl_command_queue ,
00786 cl_mem ,
00787 cl_bool ,
00788 cl_map_flags ,
00789 size_t ,
00790 size_t ,
00791 cl_uint ,
00792 const cl_event * ,
00793 cl_event * ,
00794 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00795
00796 extern CL_API_ENTRY void * CL_API_CALL
00797 clEnqueueMapImage(cl_command_queue ,
00798 cl_mem ,
00799 cl_bool ,
00800 cl_map_flags ,
00801 const size_t * ,
00802 const size_t * ,
00803 size_t * ,
00804 size_t * ,
00805 cl_uint ,
00806 const cl_event * ,
00807 cl_event * ,
00808 cl_int * ) CL_API_SUFFIX__VERSION_1_0;
00809
00810 extern CL_API_ENTRY cl_int CL_API_CALL
00811 clEnqueueUnmapMemObject(cl_command_queue ,
00812 cl_mem ,
00813 void * ,
00814 cl_uint ,
00815 const cl_event * ,
00816 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00817
00818 extern CL_API_ENTRY cl_int CL_API_CALL
00819 clEnqueueNDRangeKernel(cl_command_queue ,
00820 cl_kernel ,
00821 cl_uint ,
00822 const size_t * ,
00823 const size_t * ,
00824 const size_t * ,
00825 cl_uint ,
00826 const cl_event * ,
00827 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00828
00829 extern CL_API_ENTRY cl_int CL_API_CALL
00830 clEnqueueTask(cl_command_queue ,
00831 cl_kernel ,
00832 cl_uint ,
00833 const cl_event * ,
00834 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00835
00836 extern CL_API_ENTRY cl_int CL_API_CALL
00837 clEnqueueNativeKernel(cl_command_queue ,
00838 void (*user_func)(void *),
00839 void * ,
00840 size_t ,
00841 cl_uint ,
00842 const cl_mem * ,
00843 const void ** ,
00844 cl_uint ,
00845 const cl_event * ,
00846 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00847
00848 extern CL_API_ENTRY cl_int CL_API_CALL
00849 clEnqueueMarker(cl_command_queue ,
00850 cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00851
00852 extern CL_API_ENTRY cl_int CL_API_CALL
00853 clEnqueueWaitForEvents(cl_command_queue ,
00854 cl_uint ,
00855 const cl_event * ) CL_API_SUFFIX__VERSION_1_0;
00856
00857 extern CL_API_ENTRY cl_int CL_API_CALL
00858 clEnqueueBarrier(cl_command_queue ) CL_API_SUFFIX__VERSION_1_0;
00859
00860 #ifdef __cplusplus
00861 }
00862 #endif
00863
00864 #endif // __OPENCL_CL_H
00865