| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2008-2023 The Khronos Group Inc. |
| 3 |
* |
| 4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
* you may not use this file except in compliance with the License. |
| 6 |
* You may obtain a copy of the License at |
| 7 |
* |
| 8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
* |
| 10 |
* Unless required by applicable law or agreed to in writing, software |
| 11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
* See the License for the specific language governing permissions and |
| 14 |
* limitations under the License. |
| 15 |
******************************************************************************/ |
| 16 |
|
| 17 |
#ifndef OPENCL_CL_EXT_H_ |
| 18 |
#define OPENCL_CL_EXT_H_ |
| 19 |
|
| 20 |
/* |
| 21 |
** This header is generated from the Khronos OpenCL XML API Registry. |
| 22 |
*/ |
| 23 |
|
| 24 |
#include <CL/cl.h> |
| 25 |
|
| 26 |
/* CL_NO_PROTOTYPES implies CL_NO_EXTENSION_PROTOTYPES: */ |
| 27 |
#if defined(CL_NO_PROTOTYPES) && !defined(CL_NO_EXTENSION_PROTOTYPES) |
| 28 |
#define CL_NO_EXTENSION_PROTOTYPES |
| 29 |
#endif |
| 30 |
|
| 31 |
/* CL_NO_EXTENSION_PROTOTYPES implies |
| 32 |
CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES and |
| 33 |
CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES: */ |
| 34 |
#if defined(CL_NO_EXTENSION_PROTOTYPES) && \ |
| 35 |
!defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 36 |
#define CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES |
| 37 |
#endif |
| 38 |
#if defined(CL_NO_EXTENSION_PROTOTYPES) && \ |
| 39 |
!defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 40 |
#define CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES |
| 41 |
#endif |
| 42 |
|
| 43 |
#ifdef __cplusplus |
| 44 |
extern "C" { |
| 45 |
#endif |
| 46 |
|
| 47 |
/*************************************************************** |
| 48 |
* cl_khr_command_buffer (beta) |
| 49 |
***************************************************************/ |
| 50 |
#if defined(CL_ENABLE_BETA_EXTENSIONS) |
| 51 |
|
| 52 |
#define cl_khr_command_buffer 1 |
| 53 |
#define CL_KHR_COMMAND_BUFFER_EXTENSION_NAME \ |
| 54 |
"cl_khr_command_buffer" |
| 55 |
|
| 56 |
|
| 57 |
#define CL_KHR_COMMAND_BUFFER_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 8) |
| 58 |
|
| 59 |
typedef cl_bitfield cl_device_command_buffer_capabilities_khr; |
| 60 |
typedef struct _cl_command_buffer_khr* cl_command_buffer_khr; |
| 61 |
typedef cl_uint cl_sync_point_khr; |
| 62 |
typedef cl_uint cl_command_buffer_info_khr; |
| 63 |
typedef cl_uint cl_command_buffer_state_khr; |
| 64 |
typedef cl_properties cl_command_buffer_properties_khr; |
| 65 |
typedef cl_bitfield cl_command_buffer_flags_khr; |
| 66 |
typedef cl_properties cl_command_properties_khr; |
| 67 |
typedef struct _cl_mutable_command_khr* cl_mutable_command_khr; |
| 68 |
|
| 69 |
/* cl_device_info */ |
| 70 |
#define CL_DEVICE_COMMAND_BUFFER_CAPABILITIES_KHR 0x12A9 |
| 71 |
#define CL_DEVICE_COMMAND_BUFFER_SUPPORTED_QUEUE_PROPERTIES_KHR 0x129A |
| 72 |
#define CL_DEVICE_COMMAND_BUFFER_REQUIRED_QUEUE_PROPERTIES_KHR 0x12AA |
| 73 |
|
| 74 |
/* cl_device_command_buffer_capabilities_khr - bitfield */ |
| 75 |
#define CL_COMMAND_BUFFER_CAPABILITY_KERNEL_PRINTF_KHR (1 << 0) |
| 76 |
#define CL_COMMAND_BUFFER_CAPABILITY_DEVICE_SIDE_ENQUEUE_KHR (1 << 1) |
| 77 |
|
| 78 |
/* cl_command_buffer_properties_khr */ |
| 79 |
#define CL_COMMAND_BUFFER_FLAGS_KHR 0x1293 |
| 80 |
|
| 81 |
/* Error codes */ |
| 82 |
#define CL_INVALID_COMMAND_BUFFER_KHR -1138 |
| 83 |
#define CL_INVALID_SYNC_POINT_WAIT_LIST_KHR -1139 |
| 84 |
#define CL_INCOMPATIBLE_COMMAND_QUEUE_KHR -1140 |
| 85 |
|
| 86 |
/* cl_command_buffer_info_khr */ |
| 87 |
#define CL_COMMAND_BUFFER_QUEUES_KHR 0x1294 |
| 88 |
#define CL_COMMAND_BUFFER_NUM_QUEUES_KHR 0x1295 |
| 89 |
#define CL_COMMAND_BUFFER_REFERENCE_COUNT_KHR 0x1296 |
| 90 |
#define CL_COMMAND_BUFFER_STATE_KHR 0x1297 |
| 91 |
#define CL_COMMAND_BUFFER_PROPERTIES_ARRAY_KHR 0x1298 |
| 92 |
#define CL_COMMAND_BUFFER_CONTEXT_KHR 0x1299 |
| 93 |
|
| 94 |
/* cl_command_buffer_state_khr */ |
| 95 |
#define CL_COMMAND_BUFFER_STATE_RECORDING_KHR 0 |
| 96 |
#define CL_COMMAND_BUFFER_STATE_EXECUTABLE_KHR 1 |
| 97 |
|
| 98 |
/* cl_command_type */ |
| 99 |
#define CL_COMMAND_COMMAND_BUFFER_KHR 0x12A8 |
| 100 |
|
| 101 |
|
| 102 |
typedef cl_command_buffer_khr CL_API_CALL |
| 103 |
clCreateCommandBufferKHR_t( |
| 104 |
cl_uint num_queues, |
| 105 |
const cl_command_queue* queues, |
| 106 |
const cl_command_buffer_properties_khr* properties, |
| 107 |
cl_int* errcode_ret); |
| 108 |
|
| 109 |
typedef clCreateCommandBufferKHR_t * |
| 110 |
clCreateCommandBufferKHR_fn ; |
| 111 |
|
| 112 |
typedef cl_int CL_API_CALL |
| 113 |
clFinalizeCommandBufferKHR_t( |
| 114 |
cl_command_buffer_khr command_buffer); |
| 115 |
|
| 116 |
typedef clFinalizeCommandBufferKHR_t * |
| 117 |
clFinalizeCommandBufferKHR_fn ; |
| 118 |
|
| 119 |
typedef cl_int CL_API_CALL |
| 120 |
clRetainCommandBufferKHR_t( |
| 121 |
cl_command_buffer_khr command_buffer); |
| 122 |
|
| 123 |
typedef clRetainCommandBufferKHR_t * |
| 124 |
clRetainCommandBufferKHR_fn ; |
| 125 |
|
| 126 |
typedef cl_int CL_API_CALL |
| 127 |
clReleaseCommandBufferKHR_t( |
| 128 |
cl_command_buffer_khr command_buffer); |
| 129 |
|
| 130 |
typedef clReleaseCommandBufferKHR_t * |
| 131 |
clReleaseCommandBufferKHR_fn ; |
| 132 |
|
| 133 |
typedef cl_int CL_API_CALL |
| 134 |
clEnqueueCommandBufferKHR_t( |
| 135 |
cl_uint num_queues, |
| 136 |
cl_command_queue* queues, |
| 137 |
cl_command_buffer_khr command_buffer, |
| 138 |
cl_uint num_events_in_wait_list, |
| 139 |
const cl_event* event_wait_list, |
| 140 |
cl_event* event); |
| 141 |
|
| 142 |
typedef clEnqueueCommandBufferKHR_t * |
| 143 |
clEnqueueCommandBufferKHR_fn ; |
| 144 |
|
| 145 |
typedef cl_int CL_API_CALL |
| 146 |
clCommandBarrierWithWaitListKHR_t( |
| 147 |
cl_command_buffer_khr command_buffer, |
| 148 |
cl_command_queue command_queue, |
| 149 |
const cl_command_properties_khr* properties, |
| 150 |
cl_uint num_sync_points_in_wait_list, |
| 151 |
const cl_sync_point_khr* sync_point_wait_list, |
| 152 |
cl_sync_point_khr* sync_point, |
| 153 |
cl_mutable_command_khr* mutable_handle); |
| 154 |
|
| 155 |
typedef clCommandBarrierWithWaitListKHR_t * |
| 156 |
clCommandBarrierWithWaitListKHR_fn ; |
| 157 |
|
| 158 |
typedef cl_int CL_API_CALL |
| 159 |
clCommandCopyBufferKHR_t( |
| 160 |
cl_command_buffer_khr command_buffer, |
| 161 |
cl_command_queue command_queue, |
| 162 |
const cl_command_properties_khr* properties, |
| 163 |
cl_mem src_buffer, |
| 164 |
cl_mem dst_buffer, |
| 165 |
size_t src_offset, |
| 166 |
size_t dst_offset, |
| 167 |
size_t size, |
| 168 |
cl_uint num_sync_points_in_wait_list, |
| 169 |
const cl_sync_point_khr* sync_point_wait_list, |
| 170 |
cl_sync_point_khr* sync_point, |
| 171 |
cl_mutable_command_khr* mutable_handle); |
| 172 |
|
| 173 |
typedef clCommandCopyBufferKHR_t * |
| 174 |
clCommandCopyBufferKHR_fn ; |
| 175 |
|
| 176 |
typedef cl_int CL_API_CALL |
| 177 |
clCommandCopyBufferRectKHR_t( |
| 178 |
cl_command_buffer_khr command_buffer, |
| 179 |
cl_command_queue command_queue, |
| 180 |
const cl_command_properties_khr* properties, |
| 181 |
cl_mem src_buffer, |
| 182 |
cl_mem dst_buffer, |
| 183 |
const size_t* src_origin, |
| 184 |
const size_t* dst_origin, |
| 185 |
const size_t* region, |
| 186 |
size_t src_row_pitch, |
| 187 |
size_t src_slice_pitch, |
| 188 |
size_t dst_row_pitch, |
| 189 |
size_t dst_slice_pitch, |
| 190 |
cl_uint num_sync_points_in_wait_list, |
| 191 |
const cl_sync_point_khr* sync_point_wait_list, |
| 192 |
cl_sync_point_khr* sync_point, |
| 193 |
cl_mutable_command_khr* mutable_handle); |
| 194 |
|
| 195 |
typedef clCommandCopyBufferRectKHR_t * |
| 196 |
clCommandCopyBufferRectKHR_fn ; |
| 197 |
|
| 198 |
typedef cl_int CL_API_CALL |
| 199 |
clCommandCopyBufferToImageKHR_t( |
| 200 |
cl_command_buffer_khr command_buffer, |
| 201 |
cl_command_queue command_queue, |
| 202 |
const cl_command_properties_khr* properties, |
| 203 |
cl_mem src_buffer, |
| 204 |
cl_mem dst_image, |
| 205 |
size_t src_offset, |
| 206 |
const size_t* dst_origin, |
| 207 |
const size_t* region, |
| 208 |
cl_uint num_sync_points_in_wait_list, |
| 209 |
const cl_sync_point_khr* sync_point_wait_list, |
| 210 |
cl_sync_point_khr* sync_point, |
| 211 |
cl_mutable_command_khr* mutable_handle); |
| 212 |
|
| 213 |
typedef clCommandCopyBufferToImageKHR_t * |
| 214 |
clCommandCopyBufferToImageKHR_fn ; |
| 215 |
|
| 216 |
typedef cl_int CL_API_CALL |
| 217 |
clCommandCopyImageKHR_t( |
| 218 |
cl_command_buffer_khr command_buffer, |
| 219 |
cl_command_queue command_queue, |
| 220 |
const cl_command_properties_khr* properties, |
| 221 |
cl_mem src_image, |
| 222 |
cl_mem dst_image, |
| 223 |
const size_t* src_origin, |
| 224 |
const size_t* dst_origin, |
| 225 |
const size_t* region, |
| 226 |
cl_uint num_sync_points_in_wait_list, |
| 227 |
const cl_sync_point_khr* sync_point_wait_list, |
| 228 |
cl_sync_point_khr* sync_point, |
| 229 |
cl_mutable_command_khr* mutable_handle); |
| 230 |
|
| 231 |
typedef clCommandCopyImageKHR_t * |
| 232 |
clCommandCopyImageKHR_fn ; |
| 233 |
|
| 234 |
typedef cl_int CL_API_CALL |
| 235 |
clCommandCopyImageToBufferKHR_t( |
| 236 |
cl_command_buffer_khr command_buffer, |
| 237 |
cl_command_queue command_queue, |
| 238 |
const cl_command_properties_khr* properties, |
| 239 |
cl_mem src_image, |
| 240 |
cl_mem dst_buffer, |
| 241 |
const size_t* src_origin, |
| 242 |
const size_t* region, |
| 243 |
size_t dst_offset, |
| 244 |
cl_uint num_sync_points_in_wait_list, |
| 245 |
const cl_sync_point_khr* sync_point_wait_list, |
| 246 |
cl_sync_point_khr* sync_point, |
| 247 |
cl_mutable_command_khr* mutable_handle); |
| 248 |
|
| 249 |
typedef clCommandCopyImageToBufferKHR_t * |
| 250 |
clCommandCopyImageToBufferKHR_fn ; |
| 251 |
|
| 252 |
typedef cl_int CL_API_CALL |
| 253 |
clCommandFillBufferKHR_t( |
| 254 |
cl_command_buffer_khr command_buffer, |
| 255 |
cl_command_queue command_queue, |
| 256 |
const cl_command_properties_khr* properties, |
| 257 |
cl_mem buffer, |
| 258 |
const void* pattern, |
| 259 |
size_t pattern_size, |
| 260 |
size_t offset, |
| 261 |
size_t size, |
| 262 |
cl_uint num_sync_points_in_wait_list, |
| 263 |
const cl_sync_point_khr* sync_point_wait_list, |
| 264 |
cl_sync_point_khr* sync_point, |
| 265 |
cl_mutable_command_khr* mutable_handle); |
| 266 |
|
| 267 |
typedef clCommandFillBufferKHR_t * |
| 268 |
clCommandFillBufferKHR_fn ; |
| 269 |
|
| 270 |
typedef cl_int CL_API_CALL |
| 271 |
clCommandFillImageKHR_t( |
| 272 |
cl_command_buffer_khr command_buffer, |
| 273 |
cl_command_queue command_queue, |
| 274 |
const cl_command_properties_khr* properties, |
| 275 |
cl_mem image, |
| 276 |
const void* fill_color, |
| 277 |
const size_t* origin, |
| 278 |
const size_t* region, |
| 279 |
cl_uint num_sync_points_in_wait_list, |
| 280 |
const cl_sync_point_khr* sync_point_wait_list, |
| 281 |
cl_sync_point_khr* sync_point, |
| 282 |
cl_mutable_command_khr* mutable_handle); |
| 283 |
|
| 284 |
typedef clCommandFillImageKHR_t * |
| 285 |
clCommandFillImageKHR_fn ; |
| 286 |
|
| 287 |
typedef cl_int CL_API_CALL |
| 288 |
clCommandNDRangeKernelKHR_t( |
| 289 |
cl_command_buffer_khr command_buffer, |
| 290 |
cl_command_queue command_queue, |
| 291 |
const cl_command_properties_khr* properties, |
| 292 |
cl_kernel kernel, |
| 293 |
cl_uint work_dim, |
| 294 |
const size_t* global_work_offset, |
| 295 |
const size_t* global_work_size, |
| 296 |
const size_t* local_work_size, |
| 297 |
cl_uint num_sync_points_in_wait_list, |
| 298 |
const cl_sync_point_khr* sync_point_wait_list, |
| 299 |
cl_sync_point_khr* sync_point, |
| 300 |
cl_mutable_command_khr* mutable_handle); |
| 301 |
|
| 302 |
typedef clCommandNDRangeKernelKHR_t * |
| 303 |
clCommandNDRangeKernelKHR_fn ; |
| 304 |
|
| 305 |
typedef cl_int CL_API_CALL |
| 306 |
clGetCommandBufferInfoKHR_t( |
| 307 |
cl_command_buffer_khr command_buffer, |
| 308 |
cl_command_buffer_info_khr param_name, |
| 309 |
size_t param_value_size, |
| 310 |
void* param_value, |
| 311 |
size_t* param_value_size_ret); |
| 312 |
|
| 313 |
typedef clGetCommandBufferInfoKHR_t * |
| 314 |
clGetCommandBufferInfoKHR_fn ; |
| 315 |
|
| 316 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 317 |
|
| 318 |
extern CL_API_ENTRY cl_command_buffer_khr CL_API_CALL |
| 319 |
clCreateCommandBufferKHR( |
| 320 |
cl_uint num_queues, |
| 321 |
const cl_command_queue* queues, |
| 322 |
const cl_command_buffer_properties_khr* properties, |
| 323 |
cl_int* errcode_ret) ; |
| 324 |
|
| 325 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 326 |
clFinalizeCommandBufferKHR( |
| 327 |
cl_command_buffer_khr command_buffer) ; |
| 328 |
|
| 329 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 330 |
clRetainCommandBufferKHR( |
| 331 |
cl_command_buffer_khr command_buffer) ; |
| 332 |
|
| 333 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 334 |
clReleaseCommandBufferKHR( |
| 335 |
cl_command_buffer_khr command_buffer) ; |
| 336 |
|
| 337 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 338 |
clEnqueueCommandBufferKHR( |
| 339 |
cl_uint num_queues, |
| 340 |
cl_command_queue* queues, |
| 341 |
cl_command_buffer_khr command_buffer, |
| 342 |
cl_uint num_events_in_wait_list, |
| 343 |
const cl_event* event_wait_list, |
| 344 |
cl_event* event) ; |
| 345 |
|
| 346 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 347 |
clCommandBarrierWithWaitListKHR( |
| 348 |
cl_command_buffer_khr command_buffer, |
| 349 |
cl_command_queue command_queue, |
| 350 |
const cl_command_properties_khr* properties, |
| 351 |
cl_uint num_sync_points_in_wait_list, |
| 352 |
const cl_sync_point_khr* sync_point_wait_list, |
| 353 |
cl_sync_point_khr* sync_point, |
| 354 |
cl_mutable_command_khr* mutable_handle) ; |
| 355 |
|
| 356 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 357 |
clCommandCopyBufferKHR( |
| 358 |
cl_command_buffer_khr command_buffer, |
| 359 |
cl_command_queue command_queue, |
| 360 |
const cl_command_properties_khr* properties, |
| 361 |
cl_mem src_buffer, |
| 362 |
cl_mem dst_buffer, |
| 363 |
size_t src_offset, |
| 364 |
size_t dst_offset, |
| 365 |
size_t size, |
| 366 |
cl_uint num_sync_points_in_wait_list, |
| 367 |
const cl_sync_point_khr* sync_point_wait_list, |
| 368 |
cl_sync_point_khr* sync_point, |
| 369 |
cl_mutable_command_khr* mutable_handle) ; |
| 370 |
|
| 371 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 372 |
clCommandCopyBufferRectKHR( |
| 373 |
cl_command_buffer_khr command_buffer, |
| 374 |
cl_command_queue command_queue, |
| 375 |
const cl_command_properties_khr* properties, |
| 376 |
cl_mem src_buffer, |
| 377 |
cl_mem dst_buffer, |
| 378 |
const size_t* src_origin, |
| 379 |
const size_t* dst_origin, |
| 380 |
const size_t* region, |
| 381 |
size_t src_row_pitch, |
| 382 |
size_t src_slice_pitch, |
| 383 |
size_t dst_row_pitch, |
| 384 |
size_t dst_slice_pitch, |
| 385 |
cl_uint num_sync_points_in_wait_list, |
| 386 |
const cl_sync_point_khr* sync_point_wait_list, |
| 387 |
cl_sync_point_khr* sync_point, |
| 388 |
cl_mutable_command_khr* mutable_handle) ; |
| 389 |
|
| 390 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 391 |
clCommandCopyBufferToImageKHR( |
| 392 |
cl_command_buffer_khr command_buffer, |
| 393 |
cl_command_queue command_queue, |
| 394 |
const cl_command_properties_khr* properties, |
| 395 |
cl_mem src_buffer, |
| 396 |
cl_mem dst_image, |
| 397 |
size_t src_offset, |
| 398 |
const size_t* dst_origin, |
| 399 |
const size_t* region, |
| 400 |
cl_uint num_sync_points_in_wait_list, |
| 401 |
const cl_sync_point_khr* sync_point_wait_list, |
| 402 |
cl_sync_point_khr* sync_point, |
| 403 |
cl_mutable_command_khr* mutable_handle) ; |
| 404 |
|
| 405 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 406 |
clCommandCopyImageKHR( |
| 407 |
cl_command_buffer_khr command_buffer, |
| 408 |
cl_command_queue command_queue, |
| 409 |
const cl_command_properties_khr* properties, |
| 410 |
cl_mem src_image, |
| 411 |
cl_mem dst_image, |
| 412 |
const size_t* src_origin, |
| 413 |
const size_t* dst_origin, |
| 414 |
const size_t* region, |
| 415 |
cl_uint num_sync_points_in_wait_list, |
| 416 |
const cl_sync_point_khr* sync_point_wait_list, |
| 417 |
cl_sync_point_khr* sync_point, |
| 418 |
cl_mutable_command_khr* mutable_handle) ; |
| 419 |
|
| 420 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 421 |
clCommandCopyImageToBufferKHR( |
| 422 |
cl_command_buffer_khr command_buffer, |
| 423 |
cl_command_queue command_queue, |
| 424 |
const cl_command_properties_khr* properties, |
| 425 |
cl_mem src_image, |
| 426 |
cl_mem dst_buffer, |
| 427 |
const size_t* src_origin, |
| 428 |
const size_t* region, |
| 429 |
size_t dst_offset, |
| 430 |
cl_uint num_sync_points_in_wait_list, |
| 431 |
const cl_sync_point_khr* sync_point_wait_list, |
| 432 |
cl_sync_point_khr* sync_point, |
| 433 |
cl_mutable_command_khr* mutable_handle) ; |
| 434 |
|
| 435 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 436 |
clCommandFillBufferKHR( |
| 437 |
cl_command_buffer_khr command_buffer, |
| 438 |
cl_command_queue command_queue, |
| 439 |
const cl_command_properties_khr* properties, |
| 440 |
cl_mem buffer, |
| 441 |
const void* pattern, |
| 442 |
size_t pattern_size, |
| 443 |
size_t offset, |
| 444 |
size_t size, |
| 445 |
cl_uint num_sync_points_in_wait_list, |
| 446 |
const cl_sync_point_khr* sync_point_wait_list, |
| 447 |
cl_sync_point_khr* sync_point, |
| 448 |
cl_mutable_command_khr* mutable_handle) ; |
| 449 |
|
| 450 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 451 |
clCommandFillImageKHR( |
| 452 |
cl_command_buffer_khr command_buffer, |
| 453 |
cl_command_queue command_queue, |
| 454 |
const cl_command_properties_khr* properties, |
| 455 |
cl_mem image, |
| 456 |
const void* fill_color, |
| 457 |
const size_t* origin, |
| 458 |
const size_t* region, |
| 459 |
cl_uint num_sync_points_in_wait_list, |
| 460 |
const cl_sync_point_khr* sync_point_wait_list, |
| 461 |
cl_sync_point_khr* sync_point, |
| 462 |
cl_mutable_command_khr* mutable_handle) ; |
| 463 |
|
| 464 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 465 |
clCommandNDRangeKernelKHR( |
| 466 |
cl_command_buffer_khr command_buffer, |
| 467 |
cl_command_queue command_queue, |
| 468 |
const cl_command_properties_khr* properties, |
| 469 |
cl_kernel kernel, |
| 470 |
cl_uint work_dim, |
| 471 |
const size_t* global_work_offset, |
| 472 |
const size_t* global_work_size, |
| 473 |
const size_t* local_work_size, |
| 474 |
cl_uint num_sync_points_in_wait_list, |
| 475 |
const cl_sync_point_khr* sync_point_wait_list, |
| 476 |
cl_sync_point_khr* sync_point, |
| 477 |
cl_mutable_command_khr* mutable_handle) ; |
| 478 |
|
| 479 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 480 |
clGetCommandBufferInfoKHR( |
| 481 |
cl_command_buffer_khr command_buffer, |
| 482 |
cl_command_buffer_info_khr param_name, |
| 483 |
size_t param_value_size, |
| 484 |
void* param_value, |
| 485 |
size_t* param_value_size_ret) ; |
| 486 |
|
| 487 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 488 |
|
| 489 |
/* From version 0.9.4 of the extension */ |
| 490 |
|
| 491 |
typedef cl_int CL_API_CALL |
| 492 |
clCommandSVMMemcpyKHR_t( |
| 493 |
cl_command_buffer_khr command_buffer, |
| 494 |
cl_command_queue command_queue, |
| 495 |
const cl_command_properties_khr* properties, |
| 496 |
void* dst_ptr, |
| 497 |
const void* src_ptr, |
| 498 |
size_t size, |
| 499 |
cl_uint num_sync_points_in_wait_list, |
| 500 |
const cl_sync_point_khr* sync_point_wait_list, |
| 501 |
cl_sync_point_khr* sync_point, |
| 502 |
cl_mutable_command_khr* mutable_handle); |
| 503 |
|
| 504 |
typedef clCommandSVMMemcpyKHR_t * |
| 505 |
clCommandSVMMemcpyKHR_fn CL_API_SUFFIX__VERSION_2_0; |
| 506 |
|
| 507 |
typedef cl_int CL_API_CALL |
| 508 |
clCommandSVMMemFillKHR_t( |
| 509 |
cl_command_buffer_khr command_buffer, |
| 510 |
cl_command_queue command_queue, |
| 511 |
const cl_command_properties_khr* properties, |
| 512 |
void* svm_ptr, |
| 513 |
const void* pattern, |
| 514 |
size_t pattern_size, |
| 515 |
size_t size, |
| 516 |
cl_uint num_sync_points_in_wait_list, |
| 517 |
const cl_sync_point_khr* sync_point_wait_list, |
| 518 |
cl_sync_point_khr* sync_point, |
| 519 |
cl_mutable_command_khr* mutable_handle); |
| 520 |
|
| 521 |
typedef clCommandSVMMemFillKHR_t * |
| 522 |
clCommandSVMMemFillKHR_fn CL_API_SUFFIX__VERSION_2_0; |
| 523 |
|
| 524 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 525 |
|
| 526 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 527 |
clCommandSVMMemcpyKHR( |
| 528 |
cl_command_buffer_khr command_buffer, |
| 529 |
cl_command_queue command_queue, |
| 530 |
const cl_command_properties_khr* properties, |
| 531 |
void* dst_ptr, |
| 532 |
const void* src_ptr, |
| 533 |
size_t size, |
| 534 |
cl_uint num_sync_points_in_wait_list, |
| 535 |
const cl_sync_point_khr* sync_point_wait_list, |
| 536 |
cl_sync_point_khr* sync_point, |
| 537 |
cl_mutable_command_khr* mutable_handle) CL_API_SUFFIX__VERSION_2_0; |
| 538 |
|
| 539 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 540 |
clCommandSVMMemFillKHR( |
| 541 |
cl_command_buffer_khr command_buffer, |
| 542 |
cl_command_queue command_queue, |
| 543 |
const cl_command_properties_khr* properties, |
| 544 |
void* svm_ptr, |
| 545 |
const void* pattern, |
| 546 |
size_t pattern_size, |
| 547 |
size_t size, |
| 548 |
cl_uint num_sync_points_in_wait_list, |
| 549 |
const cl_sync_point_khr* sync_point_wait_list, |
| 550 |
cl_sync_point_khr* sync_point, |
| 551 |
cl_mutable_command_khr* mutable_handle) CL_API_SUFFIX__VERSION_2_0; |
| 552 |
|
| 553 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 554 |
|
| 555 |
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */ |
| 556 |
|
| 557 |
/*************************************************************** |
| 558 |
* cl_khr_command_buffer_multi_device (beta) |
| 559 |
***************************************************************/ |
| 560 |
#if defined(CL_ENABLE_BETA_EXTENSIONS) |
| 561 |
|
| 562 |
#define cl_khr_command_buffer_multi_device 1 |
| 563 |
#define CL_KHR_COMMAND_BUFFER_MULTI_DEVICE_EXTENSION_NAME \ |
| 564 |
"cl_khr_command_buffer_multi_device" |
| 565 |
|
| 566 |
|
| 567 |
#define CL_KHR_COMMAND_BUFFER_MULTI_DEVICE_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 2) |
| 568 |
|
| 569 |
typedef cl_bitfield cl_platform_command_buffer_capabilities_khr; |
| 570 |
|
| 571 |
/* cl_platform_info */ |
| 572 |
#define CL_PLATFORM_COMMAND_BUFFER_CAPABILITIES_KHR 0x0908 |
| 573 |
|
| 574 |
/* cl_platform_command_buffer_capabilities_khr - bitfield */ |
| 575 |
#define CL_COMMAND_BUFFER_PLATFORM_UNIVERSAL_SYNC_KHR (1 << 0) |
| 576 |
#define CL_COMMAND_BUFFER_PLATFORM_REMAP_QUEUES_KHR (1 << 1) |
| 577 |
#define CL_COMMAND_BUFFER_PLATFORM_AUTOMATIC_REMAP_KHR (1 << 2) |
| 578 |
|
| 579 |
/* cl_device_info */ |
| 580 |
#define CL_DEVICE_COMMAND_BUFFER_NUM_SYNC_DEVICES_KHR 0x12AB |
| 581 |
#define CL_DEVICE_COMMAND_BUFFER_SYNC_DEVICES_KHR 0x12AC |
| 582 |
|
| 583 |
/* cl_device_command_buffer_capabilities_khr - bitfield */ |
| 584 |
#define CL_COMMAND_BUFFER_CAPABILITY_MULTIPLE_QUEUE_KHR (1 << 4) |
| 585 |
|
| 586 |
/* cl_command_buffer_flags_khr - bitfield */ |
| 587 |
#define CL_COMMAND_BUFFER_DEVICE_SIDE_SYNC_KHR (1 << 2) |
| 588 |
|
| 589 |
|
| 590 |
typedef cl_command_buffer_khr CL_API_CALL |
| 591 |
clRemapCommandBufferKHR_t( |
| 592 |
cl_command_buffer_khr command_buffer, |
| 593 |
cl_bool automatic, |
| 594 |
cl_uint num_queues, |
| 595 |
const cl_command_queue* queues, |
| 596 |
cl_uint num_handles, |
| 597 |
const cl_mutable_command_khr* handles, |
| 598 |
cl_mutable_command_khr* handles_ret, |
| 599 |
cl_int* errcode_ret); |
| 600 |
|
| 601 |
typedef clRemapCommandBufferKHR_t * |
| 602 |
clRemapCommandBufferKHR_fn ; |
| 603 |
|
| 604 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 605 |
|
| 606 |
extern CL_API_ENTRY cl_command_buffer_khr CL_API_CALL |
| 607 |
clRemapCommandBufferKHR( |
| 608 |
cl_command_buffer_khr command_buffer, |
| 609 |
cl_bool automatic, |
| 610 |
cl_uint num_queues, |
| 611 |
const cl_command_queue* queues, |
| 612 |
cl_uint num_handles, |
| 613 |
const cl_mutable_command_khr* handles, |
| 614 |
cl_mutable_command_khr* handles_ret, |
| 615 |
cl_int* errcode_ret) ; |
| 616 |
|
| 617 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 618 |
|
| 619 |
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */ |
| 620 |
|
| 621 |
/*************************************************************** |
| 622 |
* cl_khr_command_buffer_mutable_dispatch (beta) |
| 623 |
***************************************************************/ |
| 624 |
#if defined(CL_ENABLE_BETA_EXTENSIONS) |
| 625 |
|
| 626 |
#define cl_khr_command_buffer_mutable_dispatch 1 |
| 627 |
#define CL_KHR_COMMAND_BUFFER_MUTABLE_DISPATCH_EXTENSION_NAME \ |
| 628 |
"cl_khr_command_buffer_mutable_dispatch" |
| 629 |
|
| 630 |
|
| 631 |
#define CL_KHR_COMMAND_BUFFER_MUTABLE_DISPATCH_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 5) |
| 632 |
|
| 633 |
typedef cl_uint cl_command_buffer_update_type_khr; |
| 634 |
typedef cl_bitfield cl_mutable_dispatch_fields_khr; |
| 635 |
typedef cl_uint cl_mutable_command_info_khr; |
| 636 |
typedef struct _cl_mutable_dispatch_arg_khr { |
| 637 |
cl_uint arg_index; |
| 638 |
size_t arg_size; |
| 639 |
const void* arg_value; |
| 640 |
} cl_mutable_dispatch_arg_khr; |
| 641 |
typedef struct _cl_mutable_dispatch_exec_info_khr { |
| 642 |
cl_uint param_name; |
| 643 |
size_t param_value_size; |
| 644 |
const void* param_value; |
| 645 |
} cl_mutable_dispatch_exec_info_khr; |
| 646 |
typedef struct _cl_mutable_dispatch_config_khr { |
| 647 |
cl_mutable_command_khr command; |
| 648 |
cl_uint num_args; |
| 649 |
cl_uint num_svm_args; |
| 650 |
cl_uint num_exec_infos; |
| 651 |
cl_uint work_dim; |
| 652 |
const cl_mutable_dispatch_arg_khr* arg_list; |
| 653 |
const cl_mutable_dispatch_arg_khr* arg_svm_list; |
| 654 |
const cl_mutable_dispatch_exec_info_khr* exec_info_list; |
| 655 |
const size_t* global_work_offset; |
| 656 |
const size_t* global_work_size; |
| 657 |
const size_t* local_work_size; |
| 658 |
} cl_mutable_dispatch_config_khr; |
| 659 |
typedef cl_bitfield cl_mutable_dispatch_asserts_khr; |
| 660 |
|
| 661 |
/* cl_command_buffer_flags_khr - bitfield */ |
| 662 |
#define CL_COMMAND_BUFFER_SIMULTANEOUS_USE_KHR (1 << 0) |
| 663 |
#define CL_COMMAND_BUFFER_MUTABLE_KHR (1 << 1) |
| 664 |
|
| 665 |
/* cl_device_command_buffer_capabilities_khr - bitfield */ |
| 666 |
#define CL_COMMAND_BUFFER_CAPABILITY_SIMULTANEOUS_USE_KHR (1 << 2) |
| 667 |
|
| 668 |
/* Error codes */ |
| 669 |
#define CL_INVALID_MUTABLE_COMMAND_KHR -1141 |
| 670 |
|
| 671 |
/* cl_device_info */ |
| 672 |
#define CL_DEVICE_MUTABLE_DISPATCH_CAPABILITIES_KHR 0x12B0 |
| 673 |
|
| 674 |
/* cl_command_properties_khr */ |
| 675 |
#define CL_MUTABLE_DISPATCH_UPDATABLE_FIELDS_KHR 0x12B1 |
| 676 |
|
| 677 |
/* cl_mutable_dispatch_fields_khr - bitfield */ |
| 678 |
#define CL_MUTABLE_DISPATCH_GLOBAL_OFFSET_KHR (1 << 0) |
| 679 |
#define CL_MUTABLE_DISPATCH_GLOBAL_SIZE_KHR (1 << 1) |
| 680 |
#define CL_MUTABLE_DISPATCH_LOCAL_SIZE_KHR (1 << 2) |
| 681 |
#define CL_MUTABLE_DISPATCH_ARGUMENTS_KHR (1 << 3) |
| 682 |
#define CL_MUTABLE_DISPATCH_EXEC_INFO_KHR (1 << 4) |
| 683 |
|
| 684 |
/* cl_mutable_command_info_khr */ |
| 685 |
#define CL_MUTABLE_COMMAND_COMMAND_QUEUE_KHR 0x12A0 |
| 686 |
#define CL_MUTABLE_COMMAND_COMMAND_BUFFER_KHR 0x12A1 |
| 687 |
#define CL_MUTABLE_COMMAND_COMMAND_TYPE_KHR 0x12AD |
| 688 |
#define CL_MUTABLE_COMMAND_PROPERTIES_ARRAY_KHR 0x12A2 |
| 689 |
#define CL_MUTABLE_DISPATCH_KERNEL_KHR 0x12A3 |
| 690 |
#define CL_MUTABLE_DISPATCH_DIMENSIONS_KHR 0x12A4 |
| 691 |
#define CL_MUTABLE_DISPATCH_GLOBAL_WORK_OFFSET_KHR 0x12A5 |
| 692 |
#define CL_MUTABLE_DISPATCH_GLOBAL_WORK_SIZE_KHR 0x12A6 |
| 693 |
#define CL_MUTABLE_DISPATCH_LOCAL_WORK_SIZE_KHR 0x12A7 |
| 694 |
|
| 695 |
/* cl_command_buffer_update_type_khr */ |
| 696 |
#define CL_STRUCTURE_TYPE_MUTABLE_DISPATCH_CONFIG_KHR 0 |
| 697 |
|
| 698 |
/* cl_command_buffer_properties_khr */ |
| 699 |
#define CL_COMMAND_BUFFER_MUTABLE_DISPATCH_ASSERTS_KHR 0x12B7 |
| 700 |
|
| 701 |
/* cl_command_properties_khr */ |
| 702 |
#define CL_MUTABLE_DISPATCH_ASSERTS_KHR 0x12B8 |
| 703 |
|
| 704 |
/* cl_mutable_dispatch_asserts_khr - bitfield */ |
| 705 |
#define CL_MUTABLE_DISPATCH_ASSERT_NO_ADDITIONAL_WORK_GROUPS_KHR (1 << 0) |
| 706 |
|
| 707 |
|
| 708 |
typedef cl_int CL_API_CALL |
| 709 |
clUpdateMutableCommandsKHR_t( |
| 710 |
cl_command_buffer_khr command_buffer, |
| 711 |
cl_uint num_configs, |
| 712 |
const cl_command_buffer_update_type_khr* config_types, |
| 713 |
const void** configs); |
| 714 |
|
| 715 |
typedef clUpdateMutableCommandsKHR_t * |
| 716 |
clUpdateMutableCommandsKHR_fn ; |
| 717 |
|
| 718 |
typedef cl_int CL_API_CALL |
| 719 |
clGetMutableCommandInfoKHR_t( |
| 720 |
cl_mutable_command_khr command, |
| 721 |
cl_mutable_command_info_khr param_name, |
| 722 |
size_t param_value_size, |
| 723 |
void* param_value, |
| 724 |
size_t* param_value_size_ret); |
| 725 |
|
| 726 |
typedef clGetMutableCommandInfoKHR_t * |
| 727 |
clGetMutableCommandInfoKHR_fn ; |
| 728 |
|
| 729 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 730 |
|
| 731 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 732 |
clUpdateMutableCommandsKHR( |
| 733 |
cl_command_buffer_khr command_buffer, |
| 734 |
cl_uint num_configs, |
| 735 |
const cl_command_buffer_update_type_khr* config_types, |
| 736 |
const void** configs) ; |
| 737 |
|
| 738 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 739 |
clGetMutableCommandInfoKHR( |
| 740 |
cl_mutable_command_khr command, |
| 741 |
cl_mutable_command_info_khr param_name, |
| 742 |
size_t param_value_size, |
| 743 |
void* param_value, |
| 744 |
size_t* param_value_size_ret) ; |
| 745 |
|
| 746 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 747 |
|
| 748 |
/* cl_command_buffer_state_khr */ |
| 749 |
#define CL_COMMAND_BUFFER_STATE_FINALIZED_KHR 2 |
| 750 |
|
| 751 |
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */ |
| 752 |
|
| 753 |
/*************************************************************** |
| 754 |
* cl_khr_fp64 |
| 755 |
***************************************************************/ |
| 756 |
#define cl_khr_fp64 1 |
| 757 |
#define CL_KHR_FP64_EXTENSION_NAME \ |
| 758 |
"cl_khr_fp64" |
| 759 |
|
| 760 |
|
| 761 |
#define CL_KHR_FP64_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 762 |
|
| 763 |
#if !defined(CL_VERSION_1_2) |
| 764 |
/* cl_device_info - defined in CL.h for OpenCL 1.2 and newer */ |
| 765 |
#define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032 |
| 766 |
|
| 767 |
#endif /* !defined(CL_VERSION_1_2) */ |
| 768 |
|
| 769 |
/*************************************************************** |
| 770 |
* cl_khr_fp16 |
| 771 |
***************************************************************/ |
| 772 |
#define cl_khr_fp16 1 |
| 773 |
#define CL_KHR_FP16_EXTENSION_NAME \ |
| 774 |
"cl_khr_fp16" |
| 775 |
|
| 776 |
|
| 777 |
#define CL_KHR_FP16_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 778 |
|
| 779 |
/* cl_device_info */ |
| 780 |
#define CL_DEVICE_HALF_FP_CONFIG 0x1033 |
| 781 |
|
| 782 |
/*************************************************************** |
| 783 |
* cl_APPLE_SetMemObjectDestructor |
| 784 |
***************************************************************/ |
| 785 |
#define cl_APPLE_SetMemObjectDestructor 1 |
| 786 |
#define CL_APPLE_SETMEMOBJECTDESTRUCTOR_EXTENSION_NAME \ |
| 787 |
"cl_APPLE_SetMemObjectDestructor" |
| 788 |
|
| 789 |
|
| 790 |
#define CL_APPLE_SETMEMOBJECTDESTRUCTOR_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 791 |
|
| 792 |
|
| 793 |
typedef cl_int CL_API_CALL |
| 794 |
clSetMemObjectDestructorAPPLE_t( |
| 795 |
cl_mem memobj, |
| 796 |
void (CL_CALLBACK* pfn_notify)(cl_mem memobj, void* user_data), |
| 797 |
void* user_data); |
| 798 |
|
| 799 |
typedef clSetMemObjectDestructorAPPLE_t * |
| 800 |
clSetMemObjectDestructorAPPLE_fn CL_API_SUFFIX__VERSION_1_0; |
| 801 |
|
| 802 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 803 |
|
| 804 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 805 |
clSetMemObjectDestructorAPPLE( |
| 806 |
cl_mem memobj, |
| 807 |
void (CL_CALLBACK* pfn_notify)(cl_mem memobj, void* user_data), |
| 808 |
void* user_data) CL_API_SUFFIX__VERSION_1_0; |
| 809 |
|
| 810 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 811 |
|
| 812 |
/*************************************************************** |
| 813 |
* cl_APPLE_ContextLoggingFunctions |
| 814 |
***************************************************************/ |
| 815 |
#define cl_APPLE_ContextLoggingFunctions 1 |
| 816 |
#define CL_APPLE_CONTEXTLOGGINGFUNCTIONS_EXTENSION_NAME \ |
| 817 |
"cl_APPLE_ContextLoggingFunctions" |
| 818 |
|
| 819 |
|
| 820 |
#define CL_APPLE_CONTEXTLOGGINGFUNCTIONS_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 821 |
|
| 822 |
|
| 823 |
typedef void CL_API_CALL |
| 824 |
clLogMessagesToSystemLogAPPLE_t( |
| 825 |
const char* errstr, |
| 826 |
const void* private_info, |
| 827 |
size_t cb, |
| 828 |
void* user_data); |
| 829 |
|
| 830 |
typedef clLogMessagesToSystemLogAPPLE_t * |
| 831 |
clLogMessagesToSystemLogAPPLE_fn CL_API_SUFFIX__VERSION_1_0; |
| 832 |
|
| 833 |
typedef void CL_API_CALL |
| 834 |
clLogMessagesToStdoutAPPLE_t( |
| 835 |
const char* errstr, |
| 836 |
const void* private_info, |
| 837 |
size_t cb, |
| 838 |
void* user_data); |
| 839 |
|
| 840 |
typedef clLogMessagesToStdoutAPPLE_t * |
| 841 |
clLogMessagesToStdoutAPPLE_fn CL_API_SUFFIX__VERSION_1_0; |
| 842 |
|
| 843 |
typedef void CL_API_CALL |
| 844 |
clLogMessagesToStderrAPPLE_t( |
| 845 |
const char* errstr, |
| 846 |
const void* private_info, |
| 847 |
size_t cb, |
| 848 |
void* user_data); |
| 849 |
|
| 850 |
typedef clLogMessagesToStderrAPPLE_t * |
| 851 |
clLogMessagesToStderrAPPLE_fn CL_API_SUFFIX__VERSION_1_0; |
| 852 |
|
| 853 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 854 |
|
| 855 |
extern CL_API_ENTRY void CL_API_CALL |
| 856 |
clLogMessagesToSystemLogAPPLE( |
| 857 |
const char* errstr, |
| 858 |
const void* private_info, |
| 859 |
size_t cb, |
| 860 |
void* user_data) CL_API_SUFFIX__VERSION_1_0; |
| 861 |
|
| 862 |
extern CL_API_ENTRY void CL_API_CALL |
| 863 |
clLogMessagesToStdoutAPPLE( |
| 864 |
const char* errstr, |
| 865 |
const void* private_info, |
| 866 |
size_t cb, |
| 867 |
void* user_data) CL_API_SUFFIX__VERSION_1_0; |
| 868 |
|
| 869 |
extern CL_API_ENTRY void CL_API_CALL |
| 870 |
clLogMessagesToStderrAPPLE( |
| 871 |
const char* errstr, |
| 872 |
const void* private_info, |
| 873 |
size_t cb, |
| 874 |
void* user_data) CL_API_SUFFIX__VERSION_1_0; |
| 875 |
|
| 876 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 877 |
|
| 878 |
/*************************************************************** |
| 879 |
* cl_khr_icd |
| 880 |
***************************************************************/ |
| 881 |
#define cl_khr_icd 1 |
| 882 |
#define CL_KHR_ICD_EXTENSION_NAME \ |
| 883 |
"cl_khr_icd" |
| 884 |
|
| 885 |
|
| 886 |
#define CL_KHR_ICD_EXTENSION_VERSION CL_MAKE_VERSION(2, 0, 0) |
| 887 |
|
| 888 |
/* cl_platform_info */ |
| 889 |
#define CL_PLATFORM_ICD_SUFFIX_KHR 0x0920 |
| 890 |
|
| 891 |
/* Error codes */ |
| 892 |
#define CL_PLATFORM_NOT_FOUND_KHR -1001 |
| 893 |
|
| 894 |
/* ICD 2 tag value */ |
| 895 |
#if INTPTR_MAX == INT32_MAX |
| 896 |
#define CL_ICD2_TAG_KHR ((intptr_t)0x434C3331) |
| 897 |
#else |
| 898 |
#define CL_ICD2_TAG_KHR ((intptr_t)0x4F50454E434C3331) |
| 899 |
#endif |
| 900 |
|
| 901 |
|
| 902 |
typedef cl_int CL_API_CALL |
| 903 |
clIcdGetPlatformIDsKHR_t( |
| 904 |
cl_uint num_entries, |
| 905 |
cl_platform_id* platforms, |
| 906 |
cl_uint* num_platforms); |
| 907 |
|
| 908 |
typedef clIcdGetPlatformIDsKHR_t * |
| 909 |
clIcdGetPlatformIDsKHR_fn ; |
| 910 |
|
| 911 |
typedef void* CL_API_CALL |
| 912 |
clIcdGetFunctionAddressForPlatformKHR_t( |
| 913 |
cl_platform_id platform, |
| 914 |
const char* func_name); |
| 915 |
|
| 916 |
typedef clIcdGetFunctionAddressForPlatformKHR_t * |
| 917 |
clIcdGetFunctionAddressForPlatformKHR_fn ; |
| 918 |
|
| 919 |
typedef cl_int CL_API_CALL |
| 920 |
clIcdSetPlatformDispatchDataKHR_t( |
| 921 |
cl_platform_id platform, |
| 922 |
void* dispatch_data); |
| 923 |
|
| 924 |
typedef clIcdSetPlatformDispatchDataKHR_t * |
| 925 |
clIcdSetPlatformDispatchDataKHR_fn ; |
| 926 |
|
| 927 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 928 |
|
| 929 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 930 |
clIcdGetPlatformIDsKHR( |
| 931 |
cl_uint num_entries, |
| 932 |
cl_platform_id* platforms, |
| 933 |
cl_uint* num_platforms) ; |
| 934 |
|
| 935 |
extern CL_API_ENTRY void* CL_API_CALL |
| 936 |
clIcdGetFunctionAddressForPlatformKHR( |
| 937 |
cl_platform_id platform, |
| 938 |
const char* func_name) ; |
| 939 |
|
| 940 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 941 |
clIcdSetPlatformDispatchDataKHR( |
| 942 |
cl_platform_id platform, |
| 943 |
void* dispatch_data) ; |
| 944 |
|
| 945 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 946 |
|
| 947 |
/*************************************************************** |
| 948 |
* cl_khr_il_program |
| 949 |
***************************************************************/ |
| 950 |
#define cl_khr_il_program 1 |
| 951 |
#define CL_KHR_IL_PROGRAM_EXTENSION_NAME \ |
| 952 |
"cl_khr_il_program" |
| 953 |
|
| 954 |
|
| 955 |
#define CL_KHR_IL_PROGRAM_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 956 |
|
| 957 |
/* cl_device_info */ |
| 958 |
#define CL_DEVICE_IL_VERSION_KHR 0x105B |
| 959 |
|
| 960 |
/* cl_program_info */ |
| 961 |
#define CL_PROGRAM_IL_KHR 0x1169 |
| 962 |
|
| 963 |
|
| 964 |
typedef cl_program CL_API_CALL |
| 965 |
clCreateProgramWithILKHR_t( |
| 966 |
cl_context context, |
| 967 |
const void* il, |
| 968 |
size_t length, |
| 969 |
cl_int* errcode_ret); |
| 970 |
|
| 971 |
typedef clCreateProgramWithILKHR_t * |
| 972 |
clCreateProgramWithILKHR_fn CL_API_SUFFIX__VERSION_1_2; |
| 973 |
|
| 974 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 975 |
|
| 976 |
extern CL_API_ENTRY cl_program CL_API_CALL |
| 977 |
clCreateProgramWithILKHR( |
| 978 |
cl_context context, |
| 979 |
const void* il, |
| 980 |
size_t length, |
| 981 |
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2; |
| 982 |
|
| 983 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 984 |
|
| 985 |
/*************************************************************** |
| 986 |
* cl_khr_image2d_from_buffer |
| 987 |
***************************************************************/ |
| 988 |
#define cl_khr_image2d_from_buffer 1 |
| 989 |
#define CL_KHR_IMAGE2D_FROM_BUFFER_EXTENSION_NAME \ |
| 990 |
"cl_khr_image2d_from_buffer" |
| 991 |
|
| 992 |
|
| 993 |
#define CL_KHR_IMAGE2D_FROM_BUFFER_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 994 |
|
| 995 |
/* cl_device_info */ |
| 996 |
#define CL_DEVICE_IMAGE_PITCH_ALIGNMENT_KHR 0x104A |
| 997 |
#define CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT_KHR 0x104B |
| 998 |
|
| 999 |
/*************************************************************** |
| 1000 |
* cl_khr_initialize_memory |
| 1001 |
***************************************************************/ |
| 1002 |
#define cl_khr_initialize_memory 1 |
| 1003 |
#define CL_KHR_INITIALIZE_MEMORY_EXTENSION_NAME \ |
| 1004 |
"cl_khr_initialize_memory" |
| 1005 |
|
| 1006 |
|
| 1007 |
#define CL_KHR_INITIALIZE_MEMORY_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1008 |
|
| 1009 |
typedef cl_bitfield cl_context_memory_initialize_khr; |
| 1010 |
|
| 1011 |
/* cl_context_properties */ |
| 1012 |
#define CL_CONTEXT_MEMORY_INITIALIZE_KHR 0x2030 |
| 1013 |
|
| 1014 |
/* cl_context_memory_initialize_khr */ |
| 1015 |
#define CL_CONTEXT_MEMORY_INITIALIZE_LOCAL_KHR (1 << 0) |
| 1016 |
#define CL_CONTEXT_MEMORY_INITIALIZE_PRIVATE_KHR (1 << 1) |
| 1017 |
|
| 1018 |
/*************************************************************** |
| 1019 |
* cl_khr_terminate_context |
| 1020 |
***************************************************************/ |
| 1021 |
#define cl_khr_terminate_context 1 |
| 1022 |
#define CL_KHR_TERMINATE_CONTEXT_EXTENSION_NAME \ |
| 1023 |
"cl_khr_terminate_context" |
| 1024 |
|
| 1025 |
|
| 1026 |
#define CL_KHR_TERMINATE_CONTEXT_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1027 |
|
| 1028 |
typedef cl_bitfield cl_device_terminate_capability_khr; |
| 1029 |
|
| 1030 |
/* cl_device_info */ |
| 1031 |
#define CL_DEVICE_TERMINATE_CAPABILITY_KHR 0x2031 |
| 1032 |
|
| 1033 |
/* cl_context_properties */ |
| 1034 |
#define CL_CONTEXT_TERMINATE_KHR 0x2032 |
| 1035 |
|
| 1036 |
/* cl_device_terminate_capability_khr */ |
| 1037 |
#define CL_DEVICE_TERMINATE_CAPABILITY_CONTEXT_KHR (1 << 0) |
| 1038 |
|
| 1039 |
/* Error codes */ |
| 1040 |
#define CL_CONTEXT_TERMINATED_KHR -1121 |
| 1041 |
|
| 1042 |
|
| 1043 |
typedef cl_int CL_API_CALL |
| 1044 |
clTerminateContextKHR_t( |
| 1045 |
cl_context context); |
| 1046 |
|
| 1047 |
typedef clTerminateContextKHR_t * |
| 1048 |
clTerminateContextKHR_fn CL_API_SUFFIX__VERSION_1_2; |
| 1049 |
|
| 1050 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 1051 |
|
| 1052 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1053 |
clTerminateContextKHR( |
| 1054 |
cl_context context) CL_API_SUFFIX__VERSION_1_2; |
| 1055 |
|
| 1056 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 1057 |
|
| 1058 |
/*************************************************************** |
| 1059 |
* cl_khr_spir |
| 1060 |
***************************************************************/ |
| 1061 |
#define cl_khr_spir 1 |
| 1062 |
#define CL_KHR_SPIR_EXTENSION_NAME \ |
| 1063 |
"cl_khr_spir" |
| 1064 |
|
| 1065 |
|
| 1066 |
#define CL_KHR_SPIR_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1067 |
|
| 1068 |
/* cl_device_info */ |
| 1069 |
#define CL_DEVICE_SPIR_VERSIONS 0x40E0 |
| 1070 |
|
| 1071 |
/* cl_program_binary_type */ |
| 1072 |
#define CL_PROGRAM_BINARY_TYPE_INTERMEDIATE 0x40E1 |
| 1073 |
|
| 1074 |
/*************************************************************** |
| 1075 |
* cl_khr_create_command_queue |
| 1076 |
***************************************************************/ |
| 1077 |
#define cl_khr_create_command_queue 1 |
| 1078 |
#define CL_KHR_CREATE_COMMAND_QUEUE_EXTENSION_NAME \ |
| 1079 |
"cl_khr_create_command_queue" |
| 1080 |
|
| 1081 |
|
| 1082 |
#define CL_KHR_CREATE_COMMAND_QUEUE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1083 |
|
| 1084 |
typedef cl_properties cl_queue_properties_khr; |
| 1085 |
|
| 1086 |
|
| 1087 |
typedef cl_command_queue CL_API_CALL |
| 1088 |
clCreateCommandQueueWithPropertiesKHR_t( |
| 1089 |
cl_context context, |
| 1090 |
cl_device_id device, |
| 1091 |
const cl_queue_properties_khr* properties, |
| 1092 |
cl_int* errcode_ret); |
| 1093 |
|
| 1094 |
typedef clCreateCommandQueueWithPropertiesKHR_t * |
| 1095 |
clCreateCommandQueueWithPropertiesKHR_fn CL_API_SUFFIX__VERSION_1_2; |
| 1096 |
|
| 1097 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 1098 |
|
| 1099 |
extern CL_API_ENTRY cl_command_queue CL_API_CALL |
| 1100 |
clCreateCommandQueueWithPropertiesKHR( |
| 1101 |
cl_context context, |
| 1102 |
cl_device_id device, |
| 1103 |
const cl_queue_properties_khr* properties, |
| 1104 |
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2; |
| 1105 |
|
| 1106 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 1107 |
|
| 1108 |
/*************************************************************** |
| 1109 |
* cl_nv_device_attribute_query |
| 1110 |
***************************************************************/ |
| 1111 |
#define cl_nv_device_attribute_query 1 |
| 1112 |
#define CL_NV_DEVICE_ATTRIBUTE_QUERY_EXTENSION_NAME \ |
| 1113 |
"cl_nv_device_attribute_query" |
| 1114 |
|
| 1115 |
|
| 1116 |
#define CL_NV_DEVICE_ATTRIBUTE_QUERY_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 1117 |
|
| 1118 |
/* cl_device_info */ |
| 1119 |
#define CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV 0x4000 |
| 1120 |
#define CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV 0x4001 |
| 1121 |
#define CL_DEVICE_REGISTERS_PER_BLOCK_NV 0x4002 |
| 1122 |
#define CL_DEVICE_WARP_SIZE_NV 0x4003 |
| 1123 |
#define CL_DEVICE_GPU_OVERLAP_NV 0x4004 |
| 1124 |
#define CL_DEVICE_KERNEL_EXEC_TIMEOUT_NV 0x4005 |
| 1125 |
#define CL_DEVICE_INTEGRATED_MEMORY_NV 0x4006 |
| 1126 |
|
| 1127 |
/*************************************************************** |
| 1128 |
* cl_amd_device_attribute_query |
| 1129 |
***************************************************************/ |
| 1130 |
#define cl_amd_device_attribute_query 1 |
| 1131 |
#define CL_AMD_DEVICE_ATTRIBUTE_QUERY_EXTENSION_NAME \ |
| 1132 |
"cl_amd_device_attribute_query" |
| 1133 |
|
| 1134 |
|
| 1135 |
#define CL_AMD_DEVICE_ATTRIBUTE_QUERY_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 1136 |
|
| 1137 |
/* cl_device_info */ |
| 1138 |
#define CL_DEVICE_PROFILING_TIMER_OFFSET_AMD 0x4036 |
| 1139 |
#define CL_DEVICE_TOPOLOGY_AMD 0x4037 |
| 1140 |
#define CL_DEVICE_BOARD_NAME_AMD 0x4038 |
| 1141 |
#define CL_DEVICE_GLOBAL_FREE_MEMORY_AMD 0x4039 |
| 1142 |
#define CL_DEVICE_SIMD_PER_COMPUTE_UNIT_AMD 0x4040 |
| 1143 |
#define CL_DEVICE_SIMD_WIDTH_AMD 0x4041 |
| 1144 |
#define CL_DEVICE_SIMD_INSTRUCTION_WIDTH_AMD 0x4042 |
| 1145 |
#define CL_DEVICE_WAVEFRONT_WIDTH_AMD 0x4043 |
| 1146 |
#define CL_DEVICE_GLOBAL_MEM_CHANNELS_AMD 0x4044 |
| 1147 |
#define CL_DEVICE_GLOBAL_MEM_CHANNEL_BANKS_AMD 0x4045 |
| 1148 |
#define CL_DEVICE_GLOBAL_MEM_CHANNEL_BANK_WIDTH_AMD 0x4046 |
| 1149 |
#define CL_DEVICE_LOCAL_MEM_SIZE_PER_COMPUTE_UNIT_AMD 0x4047 |
| 1150 |
#define CL_DEVICE_LOCAL_MEM_BANKS_AMD 0x4048 |
| 1151 |
#define CL_DEVICE_THREAD_TRACE_SUPPORTED_AMD 0x4049 |
| 1152 |
#define CL_DEVICE_GFXIP_MAJOR_AMD 0x404A |
| 1153 |
#define CL_DEVICE_GFXIP_MINOR_AMD 0x404B |
| 1154 |
#define CL_DEVICE_AVAILABLE_ASYNC_QUEUES_AMD 0x404C |
| 1155 |
#define CL_DEVICE_PREFERRED_WORK_GROUP_SIZE_AMD 0x4030 |
| 1156 |
#define CL_DEVICE_MAX_WORK_GROUP_SIZE_AMD 0x4031 |
| 1157 |
#define CL_DEVICE_PREFERRED_CONSTANT_BUFFER_SIZE_AMD 0x4033 |
| 1158 |
#define CL_DEVICE_PCIE_ID_AMD 0x4034 |
| 1159 |
|
| 1160 |
/*************************************************************** |
| 1161 |
* cl_arm_printf |
| 1162 |
***************************************************************/ |
| 1163 |
#define cl_arm_printf 1 |
| 1164 |
#define CL_ARM_PRINTF_EXTENSION_NAME \ |
| 1165 |
"cl_arm_printf" |
| 1166 |
|
| 1167 |
|
| 1168 |
#define CL_ARM_PRINTF_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 1169 |
|
| 1170 |
/* cl_context_properties */ |
| 1171 |
#define CL_PRINTF_CALLBACK_ARM 0x40B0 |
| 1172 |
#define CL_PRINTF_BUFFERSIZE_ARM 0x40B1 |
| 1173 |
|
| 1174 |
/*************************************************************** |
| 1175 |
* cl_ext_device_fission |
| 1176 |
***************************************************************/ |
| 1177 |
#define cl_ext_device_fission 1 |
| 1178 |
#define CL_EXT_DEVICE_FISSION_EXTENSION_NAME \ |
| 1179 |
"cl_ext_device_fission" |
| 1180 |
|
| 1181 |
|
| 1182 |
#define CL_EXT_DEVICE_FISSION_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1183 |
|
| 1184 |
typedef cl_ulong cl_device_partition_property_ext; |
| 1185 |
|
| 1186 |
/* Error codes */ |
| 1187 |
#define CL_DEVICE_PARTITION_FAILED_EXT -1057 |
| 1188 |
#define CL_INVALID_PARTITION_COUNT_EXT -1058 |
| 1189 |
#define CL_INVALID_PARTITION_NAME_EXT -1059 |
| 1190 |
|
| 1191 |
/* cl_device_info */ |
| 1192 |
#define CL_DEVICE_PARENT_DEVICE_EXT 0x4054 |
| 1193 |
#define CL_DEVICE_PARTITION_TYPES_EXT 0x4055 |
| 1194 |
#define CL_DEVICE_AFFINITY_DOMAINS_EXT 0x4056 |
| 1195 |
#define CL_DEVICE_REFERENCE_COUNT_EXT 0x4057 |
| 1196 |
#define CL_DEVICE_PARTITION_STYLE_EXT 0x4058 |
| 1197 |
|
| 1198 |
/* cl_device_partition_property_ext */ |
| 1199 |
#define CL_DEVICE_PARTITION_EQUALLY_EXT 0x4050 |
| 1200 |
#define CL_DEVICE_PARTITION_BY_COUNTS_EXT 0x4051 |
| 1201 |
#define CL_DEVICE_PARTITION_BY_NAMES_EXT 0x4052 |
| 1202 |
#define CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN_EXT 0x4053 |
| 1203 |
|
| 1204 |
/* cl_device_partition_property_ext - affinity domains */ |
| 1205 |
#define CL_AFFINITY_DOMAIN_L1_CACHE_EXT 0x1 |
| 1206 |
#define CL_AFFINITY_DOMAIN_L2_CACHE_EXT 0x2 |
| 1207 |
#define CL_AFFINITY_DOMAIN_L3_CACHE_EXT 0x3 |
| 1208 |
#define CL_AFFINITY_DOMAIN_L4_CACHE_EXT 0x4 |
| 1209 |
#define CL_AFFINITY_DOMAIN_NUMA_EXT 0x10 |
| 1210 |
#define CL_AFFINITY_DOMAIN_NEXT_FISSIONABLE_EXT 0x100 |
| 1211 |
|
| 1212 |
/* cl_device_partition_property_ext - list terminators */ |
| 1213 |
#define CL_PROPERTIES_LIST_END_EXT ((cl_device_partition_property_ext)0) |
| 1214 |
#define CL_PARTITION_BY_COUNTS_LIST_END_EXT ((cl_device_partition_property_ext)0) |
| 1215 |
#define CL_PARTITION_BY_NAMES_LIST_END_EXT ((cl_device_partition_property_ext)0 - 1) |
| 1216 |
|
| 1217 |
|
| 1218 |
typedef cl_int CL_API_CALL |
| 1219 |
clReleaseDeviceEXT_t( |
| 1220 |
cl_device_id device); |
| 1221 |
|
| 1222 |
typedef clReleaseDeviceEXT_t * |
| 1223 |
clReleaseDeviceEXT_fn CL_API_SUFFIX__VERSION_1_1; |
| 1224 |
|
| 1225 |
typedef cl_int CL_API_CALL |
| 1226 |
clRetainDeviceEXT_t( |
| 1227 |
cl_device_id device); |
| 1228 |
|
| 1229 |
typedef clRetainDeviceEXT_t * |
| 1230 |
clRetainDeviceEXT_fn CL_API_SUFFIX__VERSION_1_1; |
| 1231 |
|
| 1232 |
typedef cl_int CL_API_CALL |
| 1233 |
clCreateSubDevicesEXT_t( |
| 1234 |
cl_device_id in_device, |
| 1235 |
const cl_device_partition_property_ext* properties, |
| 1236 |
cl_uint num_entries, |
| 1237 |
cl_device_id* out_devices, |
| 1238 |
cl_uint* num_devices); |
| 1239 |
|
| 1240 |
typedef clCreateSubDevicesEXT_t * |
| 1241 |
clCreateSubDevicesEXT_fn CL_API_SUFFIX__VERSION_1_1; |
| 1242 |
|
| 1243 |
#if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 1244 |
|
| 1245 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1246 |
clReleaseDeviceEXT( |
| 1247 |
cl_device_id device) CL_API_SUFFIX__VERSION_1_1; |
| 1248 |
|
| 1249 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1250 |
clRetainDeviceEXT( |
| 1251 |
cl_device_id device) CL_API_SUFFIX__VERSION_1_1; |
| 1252 |
|
| 1253 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1254 |
clCreateSubDevicesEXT( |
| 1255 |
cl_device_id in_device, |
| 1256 |
const cl_device_partition_property_ext* properties, |
| 1257 |
cl_uint num_entries, |
| 1258 |
cl_device_id* out_devices, |
| 1259 |
cl_uint* num_devices) CL_API_SUFFIX__VERSION_1_1; |
| 1260 |
|
| 1261 |
#endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 1262 |
|
| 1263 |
/*************************************************************** |
| 1264 |
* cl_ext_migrate_memobject |
| 1265 |
***************************************************************/ |
| 1266 |
#define cl_ext_migrate_memobject 1 |
| 1267 |
#define CL_EXT_MIGRATE_MEMOBJECT_EXTENSION_NAME \ |
| 1268 |
"cl_ext_migrate_memobject" |
| 1269 |
|
| 1270 |
|
| 1271 |
#define CL_EXT_MIGRATE_MEMOBJECT_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1272 |
|
| 1273 |
typedef cl_bitfield cl_mem_migration_flags_ext; |
| 1274 |
|
| 1275 |
/* cl_mem_migration_flags_ext */ |
| 1276 |
#define CL_MIGRATE_MEM_OBJECT_HOST_EXT (1 << 0) |
| 1277 |
|
| 1278 |
/* cl_command_type */ |
| 1279 |
#define CL_COMMAND_MIGRATE_MEM_OBJECT_EXT 0x4040 |
| 1280 |
|
| 1281 |
|
| 1282 |
typedef cl_int CL_API_CALL |
| 1283 |
clEnqueueMigrateMemObjectEXT_t( |
| 1284 |
cl_command_queue command_queue, |
| 1285 |
cl_uint num_mem_objects, |
| 1286 |
const cl_mem* mem_objects, |
| 1287 |
cl_mem_migration_flags_ext flags, |
| 1288 |
cl_uint num_events_in_wait_list, |
| 1289 |
const cl_event* event_wait_list, |
| 1290 |
cl_event* event); |
| 1291 |
|
| 1292 |
typedef clEnqueueMigrateMemObjectEXT_t * |
| 1293 |
clEnqueueMigrateMemObjectEXT_fn ; |
| 1294 |
|
| 1295 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 1296 |
|
| 1297 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1298 |
clEnqueueMigrateMemObjectEXT( |
| 1299 |
cl_command_queue command_queue, |
| 1300 |
cl_uint num_mem_objects, |
| 1301 |
const cl_mem* mem_objects, |
| 1302 |
cl_mem_migration_flags_ext flags, |
| 1303 |
cl_uint num_events_in_wait_list, |
| 1304 |
const cl_event* event_wait_list, |
| 1305 |
cl_event* event) ; |
| 1306 |
|
| 1307 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 1308 |
|
| 1309 |
/*************************************************************** |
| 1310 |
* cl_ext_cxx_for_opencl |
| 1311 |
***************************************************************/ |
| 1312 |
#define cl_ext_cxx_for_opencl 1 |
| 1313 |
#define CL_EXT_CXX_FOR_OPENCL_EXTENSION_NAME \ |
| 1314 |
"cl_ext_cxx_for_opencl" |
| 1315 |
|
| 1316 |
|
| 1317 |
#define CL_EXT_CXX_FOR_OPENCL_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1318 |
|
| 1319 |
/* cl_device_info */ |
| 1320 |
#define CL_DEVICE_CXX_FOR_OPENCL_NUMERIC_VERSION_EXT 0x4230 |
| 1321 |
|
| 1322 |
/*************************************************************** |
| 1323 |
* cl_qcom_ext_host_ptr |
| 1324 |
***************************************************************/ |
| 1325 |
#define cl_qcom_ext_host_ptr 1 |
| 1326 |
#define CL_QCOM_EXT_HOST_PTR_EXTENSION_NAME \ |
| 1327 |
"cl_qcom_ext_host_ptr" |
| 1328 |
|
| 1329 |
|
| 1330 |
#define CL_QCOM_EXT_HOST_PTR_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 1331 |
|
| 1332 |
typedef cl_uint cl_image_pitch_info_qcom; |
| 1333 |
typedef struct _cl_mem_ext_host_ptr { |
| 1334 |
cl_uint allocation_type; |
| 1335 |
cl_uint host_cache_policy; |
| 1336 |
} cl_mem_ext_host_ptr; |
| 1337 |
|
| 1338 |
/* cl_mem_flags */ |
| 1339 |
#define CL_MEM_EXT_HOST_PTR_QCOM (1 << 29) |
| 1340 |
|
| 1341 |
/* cl_device_info */ |
| 1342 |
#define CL_DEVICE_EXT_MEM_PADDING_IN_BYTES_QCOM 0x40A0 |
| 1343 |
#define CL_DEVICE_PAGE_SIZE_QCOM 0x40A1 |
| 1344 |
|
| 1345 |
/* cl_image_pitch_info_qcom */ |
| 1346 |
#define CL_IMAGE_ROW_ALIGNMENT_QCOM 0x40A2 |
| 1347 |
#define CL_IMAGE_SLICE_ALIGNMENT_QCOM 0x40A3 |
| 1348 |
|
| 1349 |
/* cl_uint host_cache_policy */ |
| 1350 |
#define CL_MEM_HOST_UNCACHED_QCOM 0x40A4 |
| 1351 |
#define CL_MEM_HOST_WRITEBACK_QCOM 0x40A5 |
| 1352 |
#define CL_MEM_HOST_WRITETHROUGH_QCOM 0x40A6 |
| 1353 |
#define CL_MEM_HOST_WRITE_COMBINING_QCOM 0x40A7 |
| 1354 |
|
| 1355 |
|
| 1356 |
typedef cl_int CL_API_CALL |
| 1357 |
clGetDeviceImageInfoQCOM_t( |
| 1358 |
cl_device_id device, |
| 1359 |
size_t image_width, |
| 1360 |
size_t image_height, |
| 1361 |
const cl_image_format* image_format, |
| 1362 |
cl_image_pitch_info_qcom param_name, |
| 1363 |
size_t param_value_size, |
| 1364 |
void* param_value, |
| 1365 |
size_t* param_value_size_ret); |
| 1366 |
|
| 1367 |
typedef clGetDeviceImageInfoQCOM_t * |
| 1368 |
clGetDeviceImageInfoQCOM_fn ; |
| 1369 |
|
| 1370 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 1371 |
|
| 1372 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1373 |
clGetDeviceImageInfoQCOM( |
| 1374 |
cl_device_id device, |
| 1375 |
size_t image_width, |
| 1376 |
size_t image_height, |
| 1377 |
const cl_image_format* image_format, |
| 1378 |
cl_image_pitch_info_qcom param_name, |
| 1379 |
size_t param_value_size, |
| 1380 |
void* param_value, |
| 1381 |
size_t* param_value_size_ret) ; |
| 1382 |
|
| 1383 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 1384 |
|
| 1385 |
/*************************************************************** |
| 1386 |
* cl_qcom_ext_host_ptr_iocoherent |
| 1387 |
***************************************************************/ |
| 1388 |
#define cl_qcom_ext_host_ptr_iocoherent 1 |
| 1389 |
#define CL_QCOM_EXT_HOST_PTR_IOCOHERENT_EXTENSION_NAME \ |
| 1390 |
"cl_qcom_ext_host_ptr_iocoherent" |
| 1391 |
|
| 1392 |
|
| 1393 |
#define CL_QCOM_EXT_HOST_PTR_IOCOHERENT_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 1394 |
|
| 1395 |
/* cl_uint host_cache_policy */ |
| 1396 |
#define CL_MEM_HOST_IOCOHERENT_QCOM 0x40A9 |
| 1397 |
|
| 1398 |
/*************************************************************** |
| 1399 |
* cl_qcom_ion_host_ptr |
| 1400 |
***************************************************************/ |
| 1401 |
#define cl_qcom_ion_host_ptr 1 |
| 1402 |
#define CL_QCOM_ION_HOST_PTR_EXTENSION_NAME \ |
| 1403 |
"cl_qcom_ion_host_ptr" |
| 1404 |
|
| 1405 |
|
| 1406 |
#define CL_QCOM_ION_HOST_PTR_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 1407 |
|
| 1408 |
/* type cl_mem_ext_host_ptr */ |
| 1409 |
typedef struct _cl_mem_ion_host_ptr { |
| 1410 |
cl_mem_ext_host_ptr ext_host_ptr; |
| 1411 |
int ion_filedesc; |
| 1412 |
void* ion_hostptr; |
| 1413 |
} cl_mem_ion_host_ptr; |
| 1414 |
|
| 1415 |
/* cl_uint allocation_type */ |
| 1416 |
#define CL_MEM_ION_HOST_PTR_QCOM 0x40A8 |
| 1417 |
|
| 1418 |
/*************************************************************** |
| 1419 |
* cl_qcom_android_native_buffer_host_ptr |
| 1420 |
***************************************************************/ |
| 1421 |
#define cl_qcom_android_native_buffer_host_ptr 1 |
| 1422 |
#define CL_QCOM_ANDROID_NATIVE_BUFFER_HOST_PTR_EXTENSION_NAME \ |
| 1423 |
"cl_qcom_android_native_buffer_host_ptr" |
| 1424 |
|
| 1425 |
|
| 1426 |
#define CL_QCOM_ANDROID_NATIVE_BUFFER_HOST_PTR_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 1427 |
|
| 1428 |
/* type cl_mem_ext_host_ptr */ |
| 1429 |
typedef struct _cl_mem_android_native_buffer_host_ptr { |
| 1430 |
cl_mem_ext_host_ptr ext_host_ptr; |
| 1431 |
void* anb_ptr; |
| 1432 |
} cl_mem_android_native_buffer_host_ptr; |
| 1433 |
|
| 1434 |
/* cl_uint allocation_type */ |
| 1435 |
#define CL_MEM_ANDROID_NATIVE_BUFFER_HOST_PTR_QCOM 0x40C6 |
| 1436 |
|
| 1437 |
/*************************************************************** |
| 1438 |
* cl_img_yuv_image |
| 1439 |
***************************************************************/ |
| 1440 |
#define cl_img_yuv_image 1 |
| 1441 |
#define CL_IMG_YUV_IMAGE_EXTENSION_NAME \ |
| 1442 |
"cl_img_yuv_image" |
| 1443 |
|
| 1444 |
|
| 1445 |
#define CL_IMG_YUV_IMAGE_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 1446 |
|
| 1447 |
/* cl_channel_order */ |
| 1448 |
#define CL_NV21_IMG 0x40D0 |
| 1449 |
#define CL_YV12_IMG 0x40D1 |
| 1450 |
|
| 1451 |
/*************************************************************** |
| 1452 |
* cl_img_cached_allocations |
| 1453 |
***************************************************************/ |
| 1454 |
#define cl_img_cached_allocations 1 |
| 1455 |
#define CL_IMG_CACHED_ALLOCATIONS_EXTENSION_NAME \ |
| 1456 |
"cl_img_cached_allocations" |
| 1457 |
|
| 1458 |
|
| 1459 |
#define CL_IMG_CACHED_ALLOCATIONS_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 1460 |
|
| 1461 |
/* cl_mem_flags */ |
| 1462 |
#define CL_MEM_USE_UNCACHED_CPU_MEMORY_IMG (1 << 26) |
| 1463 |
#define CL_MEM_USE_CACHED_CPU_MEMORY_IMG (1 << 27) |
| 1464 |
|
| 1465 |
/*************************************************************** |
| 1466 |
* cl_img_use_gralloc_ptr |
| 1467 |
***************************************************************/ |
| 1468 |
#define cl_img_use_gralloc_ptr 1 |
| 1469 |
#define CL_IMG_USE_GRALLOC_PTR_EXTENSION_NAME \ |
| 1470 |
"cl_img_use_gralloc_ptr" |
| 1471 |
|
| 1472 |
|
| 1473 |
#define CL_IMG_USE_GRALLOC_PTR_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 1474 |
|
| 1475 |
/* Error codes */ |
| 1476 |
#define CL_GRALLOC_RESOURCE_NOT_ACQUIRED_IMG 0x40D4 |
| 1477 |
#define CL_INVALID_GRALLOC_OBJECT_IMG 0x40D5 |
| 1478 |
|
| 1479 |
/* cl_mem_flags */ |
| 1480 |
#define CL_MEM_USE_GRALLOC_PTR_IMG (1 << 28) |
| 1481 |
|
| 1482 |
/* cl_command_type */ |
| 1483 |
#define CL_COMMAND_ACQUIRE_GRALLOC_OBJECTS_IMG 0x40D2 |
| 1484 |
#define CL_COMMAND_RELEASE_GRALLOC_OBJECTS_IMG 0x40D3 |
| 1485 |
|
| 1486 |
|
| 1487 |
typedef cl_int CL_API_CALL |
| 1488 |
clEnqueueAcquireGrallocObjectsIMG_t( |
| 1489 |
cl_command_queue command_queue, |
| 1490 |
cl_uint num_objects, |
| 1491 |
const cl_mem* mem_objects, |
| 1492 |
cl_uint num_events_in_wait_list, |
| 1493 |
const cl_event* event_wait_list, |
| 1494 |
cl_event* event); |
| 1495 |
|
| 1496 |
typedef clEnqueueAcquireGrallocObjectsIMG_t * |
| 1497 |
clEnqueueAcquireGrallocObjectsIMG_fn CL_API_SUFFIX__VERSION_1_2; |
| 1498 |
|
| 1499 |
typedef cl_int CL_API_CALL |
| 1500 |
clEnqueueReleaseGrallocObjectsIMG_t( |
| 1501 |
cl_command_queue command_queue, |
| 1502 |
cl_uint num_objects, |
| 1503 |
const cl_mem* mem_objects, |
| 1504 |
cl_uint num_events_in_wait_list, |
| 1505 |
const cl_event* event_wait_list, |
| 1506 |
cl_event* event); |
| 1507 |
|
| 1508 |
typedef clEnqueueReleaseGrallocObjectsIMG_t * |
| 1509 |
clEnqueueReleaseGrallocObjectsIMG_fn CL_API_SUFFIX__VERSION_1_2; |
| 1510 |
|
| 1511 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 1512 |
|
| 1513 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1514 |
clEnqueueAcquireGrallocObjectsIMG( |
| 1515 |
cl_command_queue command_queue, |
| 1516 |
cl_uint num_objects, |
| 1517 |
const cl_mem* mem_objects, |
| 1518 |
cl_uint num_events_in_wait_list, |
| 1519 |
const cl_event* event_wait_list, |
| 1520 |
cl_event* event) CL_API_SUFFIX__VERSION_1_2; |
| 1521 |
|
| 1522 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1523 |
clEnqueueReleaseGrallocObjectsIMG( |
| 1524 |
cl_command_queue command_queue, |
| 1525 |
cl_uint num_objects, |
| 1526 |
const cl_mem* mem_objects, |
| 1527 |
cl_uint num_events_in_wait_list, |
| 1528 |
const cl_event* event_wait_list, |
| 1529 |
cl_event* event) CL_API_SUFFIX__VERSION_1_2; |
| 1530 |
|
| 1531 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 1532 |
|
| 1533 |
/*************************************************************** |
| 1534 |
* cl_img_generate_mipmap |
| 1535 |
***************************************************************/ |
| 1536 |
#define cl_img_generate_mipmap 1 |
| 1537 |
#define CL_IMG_GENERATE_MIPMAP_EXTENSION_NAME \ |
| 1538 |
"cl_img_generate_mipmap" |
| 1539 |
|
| 1540 |
|
| 1541 |
#define CL_IMG_GENERATE_MIPMAP_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 1542 |
|
| 1543 |
typedef cl_uint cl_mipmap_filter_mode_img; |
| 1544 |
|
| 1545 |
/* cl_mipmap_filter_mode_img */ |
| 1546 |
#define CL_MIPMAP_FILTER_ANY_IMG 0x0 |
| 1547 |
#define CL_MIPMAP_FILTER_BOX_IMG 0x1 |
| 1548 |
|
| 1549 |
/* cl_command_type */ |
| 1550 |
#define CL_COMMAND_GENERATE_MIPMAP_IMG 0x40D6 |
| 1551 |
|
| 1552 |
|
| 1553 |
typedef cl_int CL_API_CALL |
| 1554 |
clEnqueueGenerateMipmapIMG_t( |
| 1555 |
cl_command_queue command_queue, |
| 1556 |
cl_mem src_image, |
| 1557 |
cl_mem dst_image, |
| 1558 |
cl_mipmap_filter_mode_img mipmap_filter_mode, |
| 1559 |
const size_t* array_region, |
| 1560 |
const size_t* mip_region, |
| 1561 |
cl_uint num_events_in_wait_list, |
| 1562 |
const cl_event* event_wait_list, |
| 1563 |
cl_event* event); |
| 1564 |
|
| 1565 |
typedef clEnqueueGenerateMipmapIMG_t * |
| 1566 |
clEnqueueGenerateMipmapIMG_fn CL_API_SUFFIX__VERSION_1_2; |
| 1567 |
|
| 1568 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 1569 |
|
| 1570 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1571 |
clEnqueueGenerateMipmapIMG( |
| 1572 |
cl_command_queue command_queue, |
| 1573 |
cl_mem src_image, |
| 1574 |
cl_mem dst_image, |
| 1575 |
cl_mipmap_filter_mode_img mipmap_filter_mode, |
| 1576 |
const size_t* array_region, |
| 1577 |
const size_t* mip_region, |
| 1578 |
cl_uint num_events_in_wait_list, |
| 1579 |
const cl_event* event_wait_list, |
| 1580 |
cl_event* event) CL_API_SUFFIX__VERSION_1_2; |
| 1581 |
|
| 1582 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 1583 |
|
| 1584 |
/*************************************************************** |
| 1585 |
* cl_img_mem_properties |
| 1586 |
***************************************************************/ |
| 1587 |
#define cl_img_mem_properties 1 |
| 1588 |
#define CL_IMG_MEM_PROPERTIES_EXTENSION_NAME \ |
| 1589 |
"cl_img_mem_properties" |
| 1590 |
|
| 1591 |
|
| 1592 |
#define CL_IMG_MEM_PROPERTIES_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 1593 |
|
| 1594 |
/* cl_mem_properties */ |
| 1595 |
#define CL_MEM_ALLOC_FLAGS_IMG 0x40D7 |
| 1596 |
|
| 1597 |
/* cl_mem_alloc_flags_img */ |
| 1598 |
#define CL_MEM_ALLOC_RELAX_REQUIREMENTS_IMG (1 << 0) |
| 1599 |
#define CL_MEM_ALLOC_GPU_WRITE_COMBINE_IMG (1 << 1) |
| 1600 |
#define CL_MEM_ALLOC_GPU_CACHED_IMG (1 << 2) |
| 1601 |
#define CL_MEM_ALLOC_CPU_LOCAL_IMG (1 << 3) |
| 1602 |
#define CL_MEM_ALLOC_GPU_LOCAL_IMG (1 << 4) |
| 1603 |
#define CL_MEM_ALLOC_GPU_PRIVATE_IMG (1 << 5) |
| 1604 |
|
| 1605 |
/* cl_device_info */ |
| 1606 |
#define CL_DEVICE_MEMORY_CAPABILITIES_IMG 0x40D8 |
| 1607 |
|
| 1608 |
/*************************************************************** |
| 1609 |
* cl_khr_subgroups |
| 1610 |
***************************************************************/ |
| 1611 |
#define cl_khr_subgroups 1 |
| 1612 |
#define CL_KHR_SUBGROUPS_EXTENSION_NAME \ |
| 1613 |
"cl_khr_subgroups" |
| 1614 |
|
| 1615 |
|
| 1616 |
#define CL_KHR_SUBGROUPS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1617 |
|
| 1618 |
#if !defined(CL_VERSION_2_1) |
| 1619 |
/* defined in CL.h for OpenCL 2.1 and newer */ |
| 1620 |
typedef cl_uint cl_kernel_sub_group_info; |
| 1621 |
|
| 1622 |
#endif /* !defined(CL_VERSION_2_1) */ |
| 1623 |
|
| 1624 |
/* cl_kernel_sub_group_info */ |
| 1625 |
#define CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHR 0x2033 |
| 1626 |
#define CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHR 0x2034 |
| 1627 |
|
| 1628 |
|
| 1629 |
typedef cl_int CL_API_CALL |
| 1630 |
clGetKernelSubGroupInfoKHR_t( |
| 1631 |
cl_kernel in_kernel, |
| 1632 |
cl_device_id in_device, |
| 1633 |
cl_kernel_sub_group_info param_name, |
| 1634 |
size_t input_value_size, |
| 1635 |
const void* input_value, |
| 1636 |
size_t param_value_size, |
| 1637 |
void* param_value, |
| 1638 |
size_t* param_value_size_ret); |
| 1639 |
|
| 1640 |
typedef clGetKernelSubGroupInfoKHR_t * |
| 1641 |
clGetKernelSubGroupInfoKHR_fn CL_API_SUFFIX__VERSION_2_0_DEPRECATED; |
| 1642 |
|
| 1643 |
#if !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 1644 |
|
| 1645 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1646 |
clGetKernelSubGroupInfoKHR( |
| 1647 |
cl_kernel in_kernel, |
| 1648 |
cl_device_id in_device, |
| 1649 |
cl_kernel_sub_group_info param_name, |
| 1650 |
size_t input_value_size, |
| 1651 |
const void* input_value, |
| 1652 |
size_t param_value_size, |
| 1653 |
void* param_value, |
| 1654 |
size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_2_0_DEPRECATED; |
| 1655 |
|
| 1656 |
#endif /* !defined(CL_NO_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 1657 |
|
| 1658 |
/*************************************************************** |
| 1659 |
* cl_khr_mipmap_image |
| 1660 |
***************************************************************/ |
| 1661 |
#define cl_khr_mipmap_image 1 |
| 1662 |
#define CL_KHR_MIPMAP_IMAGE_EXTENSION_NAME \ |
| 1663 |
"cl_khr_mipmap_image" |
| 1664 |
|
| 1665 |
|
| 1666 |
#define CL_KHR_MIPMAP_IMAGE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1667 |
|
| 1668 |
/* cl_sampler_properties */ |
| 1669 |
#define CL_SAMPLER_MIP_FILTER_MODE_KHR 0x1155 |
| 1670 |
#define CL_SAMPLER_LOD_MIN_KHR 0x1156 |
| 1671 |
#define CL_SAMPLER_LOD_MAX_KHR 0x1157 |
| 1672 |
|
| 1673 |
/*************************************************************** |
| 1674 |
* cl_khr_priority_hints |
| 1675 |
***************************************************************/ |
| 1676 |
#define cl_khr_priority_hints 1 |
| 1677 |
#define CL_KHR_PRIORITY_HINTS_EXTENSION_NAME \ |
| 1678 |
"cl_khr_priority_hints" |
| 1679 |
|
| 1680 |
|
| 1681 |
#define CL_KHR_PRIORITY_HINTS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1682 |
|
| 1683 |
/* To be used by clGetEventInfo */ |
| 1684 |
typedef cl_uint cl_queue_priority_khr; |
| 1685 |
|
| 1686 |
/* cl_queue_properties */ |
| 1687 |
#define CL_QUEUE_PRIORITY_KHR 0x1096 |
| 1688 |
|
| 1689 |
/* cl_queue_priority_khr */ |
| 1690 |
#define CL_QUEUE_PRIORITY_HIGH_KHR (1 << 0) |
| 1691 |
#define CL_QUEUE_PRIORITY_MED_KHR (1 << 1) |
| 1692 |
#define CL_QUEUE_PRIORITY_LOW_KHR (1 << 2) |
| 1693 |
|
| 1694 |
/*************************************************************** |
| 1695 |
* cl_khr_throttle_hints |
| 1696 |
***************************************************************/ |
| 1697 |
#define cl_khr_throttle_hints 1 |
| 1698 |
#define CL_KHR_THROTTLE_HINTS_EXTENSION_NAME \ |
| 1699 |
"cl_khr_throttle_hints" |
| 1700 |
|
| 1701 |
|
| 1702 |
#define CL_KHR_THROTTLE_HINTS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1703 |
|
| 1704 |
/* To be used by clGetEventInfo */ |
| 1705 |
typedef cl_uint cl_queue_throttle_khr; |
| 1706 |
|
| 1707 |
/* cl_queue_properties */ |
| 1708 |
#define CL_QUEUE_THROTTLE_KHR 0x1097 |
| 1709 |
|
| 1710 |
/* cl_queue_throttle_khr */ |
| 1711 |
#define CL_QUEUE_THROTTLE_HIGH_KHR (1 << 0) |
| 1712 |
#define CL_QUEUE_THROTTLE_MED_KHR (1 << 1) |
| 1713 |
#define CL_QUEUE_THROTTLE_LOW_KHR (1 << 2) |
| 1714 |
|
| 1715 |
/*************************************************************** |
| 1716 |
* cl_khr_subgroup_named_barrier |
| 1717 |
***************************************************************/ |
| 1718 |
#define cl_khr_subgroup_named_barrier 1 |
| 1719 |
#define CL_KHR_SUBGROUP_NAMED_BARRIER_EXTENSION_NAME \ |
| 1720 |
"cl_khr_subgroup_named_barrier" |
| 1721 |
|
| 1722 |
|
| 1723 |
#define CL_KHR_SUBGROUP_NAMED_BARRIER_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1724 |
|
| 1725 |
/* cl_device_info */ |
| 1726 |
#define CL_DEVICE_MAX_NAMED_BARRIER_COUNT_KHR 0x2035 |
| 1727 |
|
| 1728 |
/*************************************************************** |
| 1729 |
* cl_khr_extended_versioning |
| 1730 |
***************************************************************/ |
| 1731 |
#define cl_khr_extended_versioning 1 |
| 1732 |
#define CL_KHR_EXTENDED_VERSIONING_EXTENSION_NAME \ |
| 1733 |
"cl_khr_extended_versioning" |
| 1734 |
|
| 1735 |
|
| 1736 |
#define CL_KHR_EXTENDED_VERSIONING_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1737 |
|
| 1738 |
#define CL_VERSION_MAJOR_BITS_KHR 10 |
| 1739 |
#define CL_VERSION_MINOR_BITS_KHR 10 |
| 1740 |
#define CL_VERSION_PATCH_BITS_KHR 12 |
| 1741 |
|
| 1742 |
#define CL_VERSION_MAJOR_MASK_KHR ((1 << CL_VERSION_MAJOR_BITS_KHR) - 1) |
| 1743 |
#define CL_VERSION_MINOR_MASK_KHR ((1 << CL_VERSION_MINOR_BITS_KHR) - 1) |
| 1744 |
#define CL_VERSION_PATCH_MASK_KHR ((1 << CL_VERSION_PATCH_BITS_KHR) - 1) |
| 1745 |
|
| 1746 |
#define CL_VERSION_MAJOR_KHR(version) ((version) >> (CL_VERSION_MINOR_BITS_KHR + CL_VERSION_PATCH_BITS_KHR)) |
| 1747 |
#define CL_VERSION_MINOR_KHR(version) (((version) >> CL_VERSION_PATCH_BITS_KHR) & CL_VERSION_MINOR_MASK_KHR) |
| 1748 |
#define CL_VERSION_PATCH_KHR(version) ((version) & CL_VERSION_PATCH_MASK_KHR) |
| 1749 |
|
| 1750 |
#define CL_MAKE_VERSION_KHR(major, minor, patch) \ |
| 1751 |
((((major) & CL_VERSION_MAJOR_MASK_KHR) << (CL_VERSION_MINOR_BITS_KHR + CL_VERSION_PATCH_BITS_KHR)) | \ |
| 1752 |
(((minor) & CL_VERSION_MINOR_MASK_KHR) << CL_VERSION_PATCH_BITS_KHR) | \ |
| 1753 |
((patch) & CL_VERSION_PATCH_MASK_KHR)) |
| 1754 |
|
| 1755 |
#define CL_NAME_VERSION_MAX_NAME_SIZE_KHR 64 |
| 1756 |
|
| 1757 |
typedef cl_uint cl_version_khr; |
| 1758 |
typedef struct _cl_name_version_khr { |
| 1759 |
cl_version_khr version; |
| 1760 |
char name[CL_NAME_VERSION_MAX_NAME_SIZE_KHR]; |
| 1761 |
} cl_name_version_khr; |
| 1762 |
|
| 1763 |
/* cl_platform_info */ |
| 1764 |
#define CL_PLATFORM_NUMERIC_VERSION_KHR 0x0906 |
| 1765 |
#define CL_PLATFORM_EXTENSIONS_WITH_VERSION_KHR 0x0907 |
| 1766 |
|
| 1767 |
/* cl_device_info */ |
| 1768 |
#define CL_DEVICE_NUMERIC_VERSION_KHR 0x105E |
| 1769 |
#define CL_DEVICE_OPENCL_C_NUMERIC_VERSION_KHR 0x105F |
| 1770 |
#define CL_DEVICE_EXTENSIONS_WITH_VERSION_KHR 0x1060 |
| 1771 |
#define CL_DEVICE_ILS_WITH_VERSION_KHR 0x1061 |
| 1772 |
#define CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION_KHR 0x1062 |
| 1773 |
|
| 1774 |
/*************************************************************** |
| 1775 |
* cl_khr_device_uuid |
| 1776 |
***************************************************************/ |
| 1777 |
#define cl_khr_device_uuid 1 |
| 1778 |
#define CL_KHR_DEVICE_UUID_EXTENSION_NAME \ |
| 1779 |
"cl_khr_device_uuid" |
| 1780 |
|
| 1781 |
|
| 1782 |
#define CL_KHR_DEVICE_UUID_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1783 |
|
| 1784 |
/* Size Constants */ |
| 1785 |
#define CL_UUID_SIZE_KHR 16 |
| 1786 |
#define CL_LUID_SIZE_KHR 8 |
| 1787 |
|
| 1788 |
/* cl_device_info */ |
| 1789 |
#define CL_DEVICE_UUID_KHR 0x106A |
| 1790 |
#define CL_DRIVER_UUID_KHR 0x106B |
| 1791 |
#define CL_DEVICE_LUID_VALID_KHR 0x106C |
| 1792 |
#define CL_DEVICE_LUID_KHR 0x106D |
| 1793 |
#define CL_DEVICE_NODE_MASK_KHR 0x106E |
| 1794 |
|
| 1795 |
/*************************************************************** |
| 1796 |
* cl_khr_pci_bus_info |
| 1797 |
***************************************************************/ |
| 1798 |
#define cl_khr_pci_bus_info 1 |
| 1799 |
#define CL_KHR_PCI_BUS_INFO_EXTENSION_NAME \ |
| 1800 |
"cl_khr_pci_bus_info" |
| 1801 |
|
| 1802 |
|
| 1803 |
#define CL_KHR_PCI_BUS_INFO_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1804 |
|
| 1805 |
typedef struct _cl_device_pci_bus_info_khr { |
| 1806 |
cl_uint pci_domain; |
| 1807 |
cl_uint pci_bus; |
| 1808 |
cl_uint pci_device; |
| 1809 |
cl_uint pci_function; |
| 1810 |
} cl_device_pci_bus_info_khr; |
| 1811 |
|
| 1812 |
/* cl_device_info */ |
| 1813 |
#define CL_DEVICE_PCI_BUS_INFO_KHR 0x410F |
| 1814 |
|
| 1815 |
/*************************************************************** |
| 1816 |
* cl_khr_suggested_local_work_size |
| 1817 |
***************************************************************/ |
| 1818 |
#define cl_khr_suggested_local_work_size 1 |
| 1819 |
#define CL_KHR_SUGGESTED_LOCAL_WORK_SIZE_EXTENSION_NAME \ |
| 1820 |
"cl_khr_suggested_local_work_size" |
| 1821 |
|
| 1822 |
|
| 1823 |
#define CL_KHR_SUGGESTED_LOCAL_WORK_SIZE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1824 |
|
| 1825 |
|
| 1826 |
typedef cl_int CL_API_CALL |
| 1827 |
clGetKernelSuggestedLocalWorkSizeKHR_t( |
| 1828 |
cl_command_queue command_queue, |
| 1829 |
cl_kernel kernel, |
| 1830 |
cl_uint work_dim, |
| 1831 |
const size_t* global_work_offset, |
| 1832 |
const size_t* global_work_size, |
| 1833 |
size_t* suggested_local_work_size); |
| 1834 |
|
| 1835 |
typedef clGetKernelSuggestedLocalWorkSizeKHR_t * |
| 1836 |
clGetKernelSuggestedLocalWorkSizeKHR_fn CL_API_SUFFIX__VERSION_3_0; |
| 1837 |
|
| 1838 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 1839 |
|
| 1840 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1841 |
clGetKernelSuggestedLocalWorkSizeKHR( |
| 1842 |
cl_command_queue command_queue, |
| 1843 |
cl_kernel kernel, |
| 1844 |
cl_uint work_dim, |
| 1845 |
const size_t* global_work_offset, |
| 1846 |
const size_t* global_work_size, |
| 1847 |
size_t* suggested_local_work_size) CL_API_SUFFIX__VERSION_3_0; |
| 1848 |
|
| 1849 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 1850 |
|
| 1851 |
/*************************************************************** |
| 1852 |
* cl_khr_integer_dot_product |
| 1853 |
***************************************************************/ |
| 1854 |
#define cl_khr_integer_dot_product 1 |
| 1855 |
#define CL_KHR_INTEGER_DOT_PRODUCT_EXTENSION_NAME \ |
| 1856 |
"cl_khr_integer_dot_product" |
| 1857 |
|
| 1858 |
|
| 1859 |
#define CL_KHR_INTEGER_DOT_PRODUCT_EXTENSION_VERSION CL_MAKE_VERSION(2, 0, 0) |
| 1860 |
|
| 1861 |
typedef cl_bitfield cl_device_integer_dot_product_capabilities_khr; |
| 1862 |
typedef struct _cl_device_integer_dot_product_acceleration_properties_khr { |
| 1863 |
cl_bool signed_accelerated; |
| 1864 |
cl_bool unsigned_accelerated; |
| 1865 |
cl_bool mixed_signedness_accelerated; |
| 1866 |
cl_bool accumulating_saturating_signed_accelerated; |
| 1867 |
cl_bool accumulating_saturating_unsigned_accelerated; |
| 1868 |
cl_bool accumulating_saturating_mixed_signedness_accelerated; |
| 1869 |
} cl_device_integer_dot_product_acceleration_properties_khr; |
| 1870 |
|
| 1871 |
/* cl_device_integer_dot_product_capabilities_khr */ |
| 1872 |
#define CL_DEVICE_INTEGER_DOT_PRODUCT_INPUT_4x8BIT_PACKED_KHR (1 << 0) |
| 1873 |
#define CL_DEVICE_INTEGER_DOT_PRODUCT_INPUT_4x8BIT_KHR (1 << 1) |
| 1874 |
|
| 1875 |
/* cl_device_info */ |
| 1876 |
#define CL_DEVICE_INTEGER_DOT_PRODUCT_CAPABILITIES_KHR 0x1073 |
| 1877 |
#define CL_DEVICE_INTEGER_DOT_PRODUCT_ACCELERATION_PROPERTIES_8BIT_KHR 0x1074 |
| 1878 |
#define CL_DEVICE_INTEGER_DOT_PRODUCT_ACCELERATION_PROPERTIES_4x8BIT_PACKED_KHR 0x1075 |
| 1879 |
|
| 1880 |
/*************************************************************** |
| 1881 |
* cl_khr_external_memory |
| 1882 |
***************************************************************/ |
| 1883 |
#define cl_khr_external_memory 1 |
| 1884 |
#define CL_KHR_EXTERNAL_MEMORY_EXTENSION_NAME \ |
| 1885 |
"cl_khr_external_memory" |
| 1886 |
|
| 1887 |
|
| 1888 |
#define CL_KHR_EXTERNAL_MEMORY_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 1) |
| 1889 |
|
| 1890 |
typedef cl_uint cl_external_memory_handle_type_khr; |
| 1891 |
|
| 1892 |
/* cl_platform_info */ |
| 1893 |
#define CL_PLATFORM_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR 0x2044 |
| 1894 |
|
| 1895 |
/* cl_device_info */ |
| 1896 |
#define CL_DEVICE_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR 0x204F |
| 1897 |
#define CL_DEVICE_EXTERNAL_MEMORY_IMPORT_ASSUME_LINEAR_IMAGES_HANDLE_TYPES_KHR 0x2052 |
| 1898 |
|
| 1899 |
/* cl_mem_properties */ |
| 1900 |
#define CL_MEM_DEVICE_HANDLE_LIST_KHR 0x2051 |
| 1901 |
#define CL_MEM_DEVICE_HANDLE_LIST_END_KHR 0 |
| 1902 |
|
| 1903 |
/* cl_command_type */ |
| 1904 |
#define CL_COMMAND_ACQUIRE_EXTERNAL_MEM_OBJECTS_KHR 0x2047 |
| 1905 |
#define CL_COMMAND_RELEASE_EXTERNAL_MEM_OBJECTS_KHR 0x2048 |
| 1906 |
|
| 1907 |
|
| 1908 |
typedef cl_int CL_API_CALL |
| 1909 |
clEnqueueAcquireExternalMemObjectsKHR_t( |
| 1910 |
cl_command_queue command_queue, |
| 1911 |
cl_uint num_mem_objects, |
| 1912 |
const cl_mem* mem_objects, |
| 1913 |
cl_uint num_events_in_wait_list, |
| 1914 |
const cl_event* event_wait_list, |
| 1915 |
cl_event* event); |
| 1916 |
|
| 1917 |
typedef clEnqueueAcquireExternalMemObjectsKHR_t * |
| 1918 |
clEnqueueAcquireExternalMemObjectsKHR_fn CL_API_SUFFIX__VERSION_3_0; |
| 1919 |
|
| 1920 |
typedef cl_int CL_API_CALL |
| 1921 |
clEnqueueReleaseExternalMemObjectsKHR_t( |
| 1922 |
cl_command_queue command_queue, |
| 1923 |
cl_uint num_mem_objects, |
| 1924 |
const cl_mem* mem_objects, |
| 1925 |
cl_uint num_events_in_wait_list, |
| 1926 |
const cl_event* event_wait_list, |
| 1927 |
cl_event* event); |
| 1928 |
|
| 1929 |
typedef clEnqueueReleaseExternalMemObjectsKHR_t * |
| 1930 |
clEnqueueReleaseExternalMemObjectsKHR_fn CL_API_SUFFIX__VERSION_3_0; |
| 1931 |
|
| 1932 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 1933 |
|
| 1934 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1935 |
clEnqueueAcquireExternalMemObjectsKHR( |
| 1936 |
cl_command_queue command_queue, |
| 1937 |
cl_uint num_mem_objects, |
| 1938 |
const cl_mem* mem_objects, |
| 1939 |
cl_uint num_events_in_wait_list, |
| 1940 |
const cl_event* event_wait_list, |
| 1941 |
cl_event* event) CL_API_SUFFIX__VERSION_3_0; |
| 1942 |
|
| 1943 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 1944 |
clEnqueueReleaseExternalMemObjectsKHR( |
| 1945 |
cl_command_queue command_queue, |
| 1946 |
cl_uint num_mem_objects, |
| 1947 |
const cl_mem* mem_objects, |
| 1948 |
cl_uint num_events_in_wait_list, |
| 1949 |
const cl_event* event_wait_list, |
| 1950 |
cl_event* event) CL_API_SUFFIX__VERSION_3_0; |
| 1951 |
|
| 1952 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 1953 |
|
| 1954 |
/*************************************************************** |
| 1955 |
* cl_khr_external_memory_dma_buf |
| 1956 |
***************************************************************/ |
| 1957 |
#define cl_khr_external_memory_dma_buf 1 |
| 1958 |
#define CL_KHR_EXTERNAL_MEMORY_DMA_BUF_EXTENSION_NAME \ |
| 1959 |
"cl_khr_external_memory_dma_buf" |
| 1960 |
|
| 1961 |
|
| 1962 |
#define CL_KHR_EXTERNAL_MEMORY_DMA_BUF_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1963 |
|
| 1964 |
/* cl_external_memory_handle_type_khr */ |
| 1965 |
#define CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHR 0x2067 |
| 1966 |
|
| 1967 |
/*************************************************************** |
| 1968 |
* cl_khr_external_memory_opaque_fd |
| 1969 |
***************************************************************/ |
| 1970 |
#define cl_khr_external_memory_opaque_fd 1 |
| 1971 |
#define CL_KHR_EXTERNAL_MEMORY_OPAQUE_FD_EXTENSION_NAME \ |
| 1972 |
"cl_khr_external_memory_opaque_fd" |
| 1973 |
|
| 1974 |
|
| 1975 |
#define CL_KHR_EXTERNAL_MEMORY_OPAQUE_FD_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 1976 |
|
| 1977 |
/* cl_external_memory_handle_type_khr */ |
| 1978 |
#define CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_FD_KHR 0x2060 |
| 1979 |
|
| 1980 |
/*************************************************************** |
| 1981 |
* cl_khr_external_memory_win32 |
| 1982 |
***************************************************************/ |
| 1983 |
#define cl_khr_external_memory_win32 1 |
| 1984 |
#define CL_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME \ |
| 1985 |
"cl_khr_external_memory_win32" |
| 1986 |
|
| 1987 |
|
| 1988 |
#define CL_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_VERSION CL_MAKE_VERSION(1, 1, 0) |
| 1989 |
|
| 1990 |
/* cl_external_memory_handle_type_khr */ |
| 1991 |
#define CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHR 0x2061 |
| 1992 |
#define CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KMT_KHR 0x2062 |
| 1993 |
#define CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_NAME_KHR 0x2069 |
| 1994 |
|
| 1995 |
/*************************************************************** |
| 1996 |
* cl_khr_external_semaphore |
| 1997 |
***************************************************************/ |
| 1998 |
#define cl_khr_external_semaphore 1 |
| 1999 |
#define CL_KHR_EXTERNAL_SEMAPHORE_EXTENSION_NAME \ |
| 2000 |
"cl_khr_external_semaphore" |
| 2001 |
|
| 2002 |
|
| 2003 |
#define CL_KHR_EXTERNAL_SEMAPHORE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 1) |
| 2004 |
|
| 2005 |
typedef struct _cl_semaphore_khr * cl_semaphore_khr; |
| 2006 |
typedef cl_uint cl_external_semaphore_handle_type_khr; |
| 2007 |
|
| 2008 |
/* cl_platform_info */ |
| 2009 |
#define CL_PLATFORM_SEMAPHORE_IMPORT_HANDLE_TYPES_KHR 0x2037 |
| 2010 |
#define CL_PLATFORM_SEMAPHORE_EXPORT_HANDLE_TYPES_KHR 0x2038 |
| 2011 |
|
| 2012 |
/* cl_device_info */ |
| 2013 |
#define CL_DEVICE_SEMAPHORE_IMPORT_HANDLE_TYPES_KHR 0x204D |
| 2014 |
#define CL_DEVICE_SEMAPHORE_EXPORT_HANDLE_TYPES_KHR 0x204E |
| 2015 |
|
| 2016 |
/* cl_semaphore_properties_khr */ |
| 2017 |
#define CL_SEMAPHORE_EXPORT_HANDLE_TYPES_KHR 0x203F |
| 2018 |
#define CL_SEMAPHORE_EXPORT_HANDLE_TYPES_LIST_END_KHR 0 |
| 2019 |
|
| 2020 |
/* cl_semaphore_info_khr */ |
| 2021 |
#define CL_SEMAPHORE_EXPORTABLE_KHR 0x2054 |
| 2022 |
|
| 2023 |
|
| 2024 |
typedef cl_int CL_API_CALL |
| 2025 |
clGetSemaphoreHandleForTypeKHR_t( |
| 2026 |
cl_semaphore_khr sema_object, |
| 2027 |
cl_device_id device, |
| 2028 |
cl_external_semaphore_handle_type_khr handle_type, |
| 2029 |
size_t handle_size, |
| 2030 |
void* handle_ptr, |
| 2031 |
size_t* handle_size_ret); |
| 2032 |
|
| 2033 |
typedef clGetSemaphoreHandleForTypeKHR_t * |
| 2034 |
clGetSemaphoreHandleForTypeKHR_fn CL_API_SUFFIX__VERSION_1_2; |
| 2035 |
|
| 2036 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 2037 |
|
| 2038 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2039 |
clGetSemaphoreHandleForTypeKHR( |
| 2040 |
cl_semaphore_khr sema_object, |
| 2041 |
cl_device_id device, |
| 2042 |
cl_external_semaphore_handle_type_khr handle_type, |
| 2043 |
size_t handle_size, |
| 2044 |
void* handle_ptr, |
| 2045 |
size_t* handle_size_ret) CL_API_SUFFIX__VERSION_1_2; |
| 2046 |
|
| 2047 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 2048 |
|
| 2049 |
/*************************************************************** |
| 2050 |
* cl_khr_external_semaphore_dx_fence (beta) |
| 2051 |
***************************************************************/ |
| 2052 |
#if defined(CL_ENABLE_BETA_EXTENSIONS) |
| 2053 |
|
| 2054 |
#define cl_khr_external_semaphore_dx_fence 1 |
| 2055 |
#define CL_KHR_EXTERNAL_SEMAPHORE_DX_FENCE_EXTENSION_NAME \ |
| 2056 |
"cl_khr_external_semaphore_dx_fence" |
| 2057 |
|
| 2058 |
|
| 2059 |
#define CL_KHR_EXTERNAL_SEMAPHORE_DX_FENCE_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 0) |
| 2060 |
|
| 2061 |
/* cl_external_semaphore_handle_type_khr */ |
| 2062 |
#define CL_SEMAPHORE_HANDLE_D3D12_FENCE_KHR 0x2059 |
| 2063 |
|
| 2064 |
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */ |
| 2065 |
|
| 2066 |
/*************************************************************** |
| 2067 |
* cl_khr_external_semaphore_opaque_fd |
| 2068 |
***************************************************************/ |
| 2069 |
#define cl_khr_external_semaphore_opaque_fd 1 |
| 2070 |
#define CL_KHR_EXTERNAL_SEMAPHORE_OPAQUE_FD_EXTENSION_NAME \ |
| 2071 |
"cl_khr_external_semaphore_opaque_fd" |
| 2072 |
|
| 2073 |
|
| 2074 |
#define CL_KHR_EXTERNAL_SEMAPHORE_OPAQUE_FD_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 2075 |
|
| 2076 |
/* cl_external_semaphore_handle_type_khr */ |
| 2077 |
#define CL_SEMAPHORE_HANDLE_OPAQUE_FD_KHR 0x2055 |
| 2078 |
|
| 2079 |
/*************************************************************** |
| 2080 |
* cl_khr_external_semaphore_sync_fd |
| 2081 |
***************************************************************/ |
| 2082 |
#define cl_khr_external_semaphore_sync_fd 1 |
| 2083 |
#define CL_KHR_EXTERNAL_SEMAPHORE_SYNC_FD_EXTENSION_NAME \ |
| 2084 |
"cl_khr_external_semaphore_sync_fd" |
| 2085 |
|
| 2086 |
|
| 2087 |
#define CL_KHR_EXTERNAL_SEMAPHORE_SYNC_FD_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 2088 |
|
| 2089 |
typedef cl_properties cl_semaphore_reimport_properties_khr; |
| 2090 |
|
| 2091 |
/* cl_external_semaphore_handle_type_khr */ |
| 2092 |
#define CL_SEMAPHORE_HANDLE_SYNC_FD_KHR 0x2058 |
| 2093 |
|
| 2094 |
|
| 2095 |
typedef cl_int CL_API_CALL |
| 2096 |
clReImportSemaphoreSyncFdKHR_t( |
| 2097 |
cl_semaphore_khr sema_object, |
| 2098 |
cl_semaphore_reimport_properties_khr* reimport_props, |
| 2099 |
int fd); |
| 2100 |
|
| 2101 |
typedef clReImportSemaphoreSyncFdKHR_t * |
| 2102 |
clReImportSemaphoreSyncFdKHR_fn CL_API_SUFFIX__VERSION_3_0; |
| 2103 |
|
| 2104 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 2105 |
|
| 2106 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2107 |
clReImportSemaphoreSyncFdKHR( |
| 2108 |
cl_semaphore_khr sema_object, |
| 2109 |
cl_semaphore_reimport_properties_khr* reimport_props, |
| 2110 |
int fd) CL_API_SUFFIX__VERSION_3_0; |
| 2111 |
|
| 2112 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 2113 |
|
| 2114 |
/*************************************************************** |
| 2115 |
* cl_khr_external_semaphore_win32 (beta) |
| 2116 |
***************************************************************/ |
| 2117 |
#if defined(CL_ENABLE_BETA_EXTENSIONS) |
| 2118 |
|
| 2119 |
#define cl_khr_external_semaphore_win32 1 |
| 2120 |
#define CL_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME \ |
| 2121 |
"cl_khr_external_semaphore_win32" |
| 2122 |
|
| 2123 |
|
| 2124 |
#define CL_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 1) |
| 2125 |
|
| 2126 |
/* cl_external_semaphore_handle_type_khr */ |
| 2127 |
#define CL_SEMAPHORE_HANDLE_OPAQUE_WIN32_KHR 0x2056 |
| 2128 |
#define CL_SEMAPHORE_HANDLE_OPAQUE_WIN32_KMT_KHR 0x2057 |
| 2129 |
#define CL_SEMAPHORE_HANDLE_OPAQUE_WIN32_NAME_KHR 0x2068 |
| 2130 |
|
| 2131 |
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */ |
| 2132 |
|
| 2133 |
/*************************************************************** |
| 2134 |
* cl_khr_semaphore |
| 2135 |
***************************************************************/ |
| 2136 |
#define cl_khr_semaphore 1 |
| 2137 |
#define CL_KHR_SEMAPHORE_EXTENSION_NAME \ |
| 2138 |
"cl_khr_semaphore" |
| 2139 |
|
| 2140 |
|
| 2141 |
#define CL_KHR_SEMAPHORE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 2142 |
|
| 2143 |
/* type cl_semaphore_khr */ |
| 2144 |
typedef cl_properties cl_semaphore_properties_khr; |
| 2145 |
typedef cl_uint cl_semaphore_info_khr; |
| 2146 |
typedef cl_uint cl_semaphore_type_khr; |
| 2147 |
typedef cl_ulong cl_semaphore_payload_khr; |
| 2148 |
|
| 2149 |
/* cl_semaphore_type */ |
| 2150 |
#define CL_SEMAPHORE_TYPE_BINARY_KHR 1 |
| 2151 |
|
| 2152 |
/* cl_platform_info */ |
| 2153 |
#define CL_PLATFORM_SEMAPHORE_TYPES_KHR 0x2036 |
| 2154 |
|
| 2155 |
/* cl_device_info */ |
| 2156 |
#define CL_DEVICE_SEMAPHORE_TYPES_KHR 0x204C |
| 2157 |
|
| 2158 |
/* cl_semaphore_info_khr */ |
| 2159 |
#define CL_SEMAPHORE_CONTEXT_KHR 0x2039 |
| 2160 |
#define CL_SEMAPHORE_REFERENCE_COUNT_KHR 0x203A |
| 2161 |
#define CL_SEMAPHORE_PROPERTIES_KHR 0x203B |
| 2162 |
#define CL_SEMAPHORE_PAYLOAD_KHR 0x203C |
| 2163 |
|
| 2164 |
/* cl_semaphore_info_khr or cl_semaphore_properties_khr */ |
| 2165 |
#define CL_SEMAPHORE_TYPE_KHR 0x203D |
| 2166 |
#define CL_SEMAPHORE_DEVICE_HANDLE_LIST_KHR 0x2053 |
| 2167 |
#define CL_SEMAPHORE_DEVICE_HANDLE_LIST_END_KHR 0 |
| 2168 |
|
| 2169 |
/* cl_command_type */ |
| 2170 |
#define CL_COMMAND_SEMAPHORE_WAIT_KHR 0x2042 |
| 2171 |
#define CL_COMMAND_SEMAPHORE_SIGNAL_KHR 0x2043 |
| 2172 |
|
| 2173 |
/* Error codes */ |
| 2174 |
#define CL_INVALID_SEMAPHORE_KHR -1142 |
| 2175 |
|
| 2176 |
|
| 2177 |
typedef cl_semaphore_khr CL_API_CALL |
| 2178 |
clCreateSemaphoreWithPropertiesKHR_t( |
| 2179 |
cl_context context, |
| 2180 |
const cl_semaphore_properties_khr* sema_props, |
| 2181 |
cl_int* errcode_ret); |
| 2182 |
|
| 2183 |
typedef clCreateSemaphoreWithPropertiesKHR_t * |
| 2184 |
clCreateSemaphoreWithPropertiesKHR_fn CL_API_SUFFIX__VERSION_1_2; |
| 2185 |
|
| 2186 |
typedef cl_int CL_API_CALL |
| 2187 |
clEnqueueWaitSemaphoresKHR_t( |
| 2188 |
cl_command_queue command_queue, |
| 2189 |
cl_uint num_sema_objects, |
| 2190 |
const cl_semaphore_khr* sema_objects, |
| 2191 |
const cl_semaphore_payload_khr* sema_payload_list, |
| 2192 |
cl_uint num_events_in_wait_list, |
| 2193 |
const cl_event* event_wait_list, |
| 2194 |
cl_event* event); |
| 2195 |
|
| 2196 |
typedef clEnqueueWaitSemaphoresKHR_t * |
| 2197 |
clEnqueueWaitSemaphoresKHR_fn CL_API_SUFFIX__VERSION_1_2; |
| 2198 |
|
| 2199 |
typedef cl_int CL_API_CALL |
| 2200 |
clEnqueueSignalSemaphoresKHR_t( |
| 2201 |
cl_command_queue command_queue, |
| 2202 |
cl_uint num_sema_objects, |
| 2203 |
const cl_semaphore_khr* sema_objects, |
| 2204 |
const cl_semaphore_payload_khr* sema_payload_list, |
| 2205 |
cl_uint num_events_in_wait_list, |
| 2206 |
const cl_event* event_wait_list, |
| 2207 |
cl_event* event); |
| 2208 |
|
| 2209 |
typedef clEnqueueSignalSemaphoresKHR_t * |
| 2210 |
clEnqueueSignalSemaphoresKHR_fn CL_API_SUFFIX__VERSION_1_2; |
| 2211 |
|
| 2212 |
typedef cl_int CL_API_CALL |
| 2213 |
clGetSemaphoreInfoKHR_t( |
| 2214 |
cl_semaphore_khr sema_object, |
| 2215 |
cl_semaphore_info_khr param_name, |
| 2216 |
size_t param_value_size, |
| 2217 |
void* param_value, |
| 2218 |
size_t* param_value_size_ret); |
| 2219 |
|
| 2220 |
typedef clGetSemaphoreInfoKHR_t * |
| 2221 |
clGetSemaphoreInfoKHR_fn CL_API_SUFFIX__VERSION_1_2; |
| 2222 |
|
| 2223 |
typedef cl_int CL_API_CALL |
| 2224 |
clReleaseSemaphoreKHR_t( |
| 2225 |
cl_semaphore_khr sema_object); |
| 2226 |
|
| 2227 |
typedef clReleaseSemaphoreKHR_t * |
| 2228 |
clReleaseSemaphoreKHR_fn CL_API_SUFFIX__VERSION_1_2; |
| 2229 |
|
| 2230 |
typedef cl_int CL_API_CALL |
| 2231 |
clRetainSemaphoreKHR_t( |
| 2232 |
cl_semaphore_khr sema_object); |
| 2233 |
|
| 2234 |
typedef clRetainSemaphoreKHR_t * |
| 2235 |
clRetainSemaphoreKHR_fn CL_API_SUFFIX__VERSION_1_2; |
| 2236 |
|
| 2237 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 2238 |
|
| 2239 |
extern CL_API_ENTRY cl_semaphore_khr CL_API_CALL |
| 2240 |
clCreateSemaphoreWithPropertiesKHR( |
| 2241 |
cl_context context, |
| 2242 |
const cl_semaphore_properties_khr* sema_props, |
| 2243 |
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2; |
| 2244 |
|
| 2245 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2246 |
clEnqueueWaitSemaphoresKHR( |
| 2247 |
cl_command_queue command_queue, |
| 2248 |
cl_uint num_sema_objects, |
| 2249 |
const cl_semaphore_khr* sema_objects, |
| 2250 |
const cl_semaphore_payload_khr* sema_payload_list, |
| 2251 |
cl_uint num_events_in_wait_list, |
| 2252 |
const cl_event* event_wait_list, |
| 2253 |
cl_event* event) CL_API_SUFFIX__VERSION_1_2; |
| 2254 |
|
| 2255 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2256 |
clEnqueueSignalSemaphoresKHR( |
| 2257 |
cl_command_queue command_queue, |
| 2258 |
cl_uint num_sema_objects, |
| 2259 |
const cl_semaphore_khr* sema_objects, |
| 2260 |
const cl_semaphore_payload_khr* sema_payload_list, |
| 2261 |
cl_uint num_events_in_wait_list, |
| 2262 |
const cl_event* event_wait_list, |
| 2263 |
cl_event* event) CL_API_SUFFIX__VERSION_1_2; |
| 2264 |
|
| 2265 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2266 |
clGetSemaphoreInfoKHR( |
| 2267 |
cl_semaphore_khr sema_object, |
| 2268 |
cl_semaphore_info_khr param_name, |
| 2269 |
size_t param_value_size, |
| 2270 |
void* param_value, |
| 2271 |
size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_1_2; |
| 2272 |
|
| 2273 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2274 |
clReleaseSemaphoreKHR( |
| 2275 |
cl_semaphore_khr sema_object) CL_API_SUFFIX__VERSION_1_2; |
| 2276 |
|
| 2277 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2278 |
clRetainSemaphoreKHR( |
| 2279 |
cl_semaphore_khr sema_object) CL_API_SUFFIX__VERSION_1_2; |
| 2280 |
|
| 2281 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 2282 |
|
| 2283 |
/*************************************************************** |
| 2284 |
* cl_arm_import_memory |
| 2285 |
***************************************************************/ |
| 2286 |
#define cl_arm_import_memory 1 |
| 2287 |
#define CL_ARM_IMPORT_MEMORY_EXTENSION_NAME \ |
| 2288 |
"cl_arm_import_memory" |
| 2289 |
|
| 2290 |
|
| 2291 |
#define CL_ARM_IMPORT_MEMORY_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2292 |
|
| 2293 |
typedef intptr_t cl_import_properties_arm; |
| 2294 |
|
| 2295 |
/* cl_import_properties_arm */ |
| 2296 |
#define CL_IMPORT_TYPE_ARM 0x40B2 |
| 2297 |
#define CL_IMPORT_TYPE_HOST_ARM 0x40B3 |
| 2298 |
#define CL_IMPORT_TYPE_DMA_BUF_ARM 0x40B4 |
| 2299 |
#define CL_IMPORT_TYPE_PROTECTED_ARM 0x40B5 |
| 2300 |
#define CL_IMPORT_TYPE_ANDROID_HARDWARE_BUFFER_ARM 0x41E2 |
| 2301 |
#define CL_IMPORT_DMA_BUF_DATA_CONSISTENCY_WITH_HOST_ARM 0x41E3 |
| 2302 |
#define CL_IMPORT_MEMORY_WHOLE_ALLOCATION_ARM SIZE_MAX |
| 2303 |
#define CL_IMPORT_ANDROID_HARDWARE_BUFFER_PLANE_INDEX_ARM 0x41EF |
| 2304 |
#define CL_IMPORT_ANDROID_HARDWARE_BUFFER_LAYER_INDEX_ARM 0x41F0 |
| 2305 |
|
| 2306 |
|
| 2307 |
typedef cl_mem CL_API_CALL |
| 2308 |
clImportMemoryARM_t( |
| 2309 |
cl_context context, |
| 2310 |
cl_mem_flags flags, |
| 2311 |
const cl_import_properties_arm* properties, |
| 2312 |
void* memory, |
| 2313 |
size_t size, |
| 2314 |
cl_int* errcode_ret); |
| 2315 |
|
| 2316 |
typedef clImportMemoryARM_t * |
| 2317 |
clImportMemoryARM_fn CL_API_SUFFIX__VERSION_1_0; |
| 2318 |
|
| 2319 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 2320 |
|
| 2321 |
extern CL_API_ENTRY cl_mem CL_API_CALL |
| 2322 |
clImportMemoryARM( |
| 2323 |
cl_context context, |
| 2324 |
cl_mem_flags flags, |
| 2325 |
const cl_import_properties_arm* properties, |
| 2326 |
void* memory, |
| 2327 |
size_t size, |
| 2328 |
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0; |
| 2329 |
|
| 2330 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 2331 |
|
| 2332 |
/*************************************************************** |
| 2333 |
* cl_arm_shared_virtual_memory |
| 2334 |
***************************************************************/ |
| 2335 |
#define cl_arm_shared_virtual_memory 1 |
| 2336 |
#define CL_ARM_SHARED_VIRTUAL_MEMORY_EXTENSION_NAME \ |
| 2337 |
"cl_arm_shared_virtual_memory" |
| 2338 |
|
| 2339 |
|
| 2340 |
#define CL_ARM_SHARED_VIRTUAL_MEMORY_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2341 |
|
| 2342 |
typedef cl_bitfield cl_svm_mem_flags_arm; |
| 2343 |
typedef cl_uint cl_kernel_exec_info_arm; |
| 2344 |
typedef cl_bitfield cl_device_svm_capabilities_arm; |
| 2345 |
|
| 2346 |
/* cl_device_info */ |
| 2347 |
#define CL_DEVICE_SVM_CAPABILITIES_ARM 0x40B6 |
| 2348 |
|
| 2349 |
/* cl_mem_info */ |
| 2350 |
#define CL_MEM_USES_SVM_POINTER_ARM 0x40B7 |
| 2351 |
|
| 2352 |
/* cl_kernel_exec_info_arm */ |
| 2353 |
#define CL_KERNEL_EXEC_INFO_SVM_PTRS_ARM 0x40B8 |
| 2354 |
#define CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM_ARM 0x40B9 |
| 2355 |
|
| 2356 |
/* cl_command_type */ |
| 2357 |
#define CL_COMMAND_SVM_FREE_ARM 0x40BA |
| 2358 |
#define CL_COMMAND_SVM_MEMCPY_ARM 0x40BB |
| 2359 |
#define CL_COMMAND_SVM_MEMFILL_ARM 0x40BC |
| 2360 |
#define CL_COMMAND_SVM_MAP_ARM 0x40BD |
| 2361 |
#define CL_COMMAND_SVM_UNMAP_ARM 0x40BE |
| 2362 |
|
| 2363 |
/* cl_device_svm_capabilities_arm */ |
| 2364 |
#define CL_DEVICE_SVM_COARSE_GRAIN_BUFFER_ARM (1 << 0) |
| 2365 |
#define CL_DEVICE_SVM_FINE_GRAIN_BUFFER_ARM (1 << 1) |
| 2366 |
#define CL_DEVICE_SVM_FINE_GRAIN_SYSTEM_ARM (1 << 2) |
| 2367 |
#define CL_DEVICE_SVM_ATOMICS_ARM (1 << 3) |
| 2368 |
|
| 2369 |
/* cl_svm_mem_flags_arm */ |
| 2370 |
#define CL_MEM_SVM_FINE_GRAIN_BUFFER_ARM (1 << 10) |
| 2371 |
#define CL_MEM_SVM_ATOMICS_ARM (1 << 11) |
| 2372 |
|
| 2373 |
|
| 2374 |
typedef void* CL_API_CALL |
| 2375 |
clSVMAllocARM_t( |
| 2376 |
cl_context context, |
| 2377 |
cl_svm_mem_flags_arm flags, |
| 2378 |
size_t size, |
| 2379 |
cl_uint alignment); |
| 2380 |
|
| 2381 |
typedef clSVMAllocARM_t * |
| 2382 |
clSVMAllocARM_fn CL_API_SUFFIX__VERSION_1_2; |
| 2383 |
|
| 2384 |
typedef void CL_API_CALL |
| 2385 |
clSVMFreeARM_t( |
| 2386 |
cl_context context, |
| 2387 |
void* svm_pointer); |
| 2388 |
|
| 2389 |
typedef clSVMFreeARM_t * |
| 2390 |
clSVMFreeARM_fn CL_API_SUFFIX__VERSION_1_2; |
| 2391 |
|
| 2392 |
typedef cl_int CL_API_CALL |
| 2393 |
clEnqueueSVMFreeARM_t( |
| 2394 |
cl_command_queue command_queue, |
| 2395 |
cl_uint num_svm_pointers, |
| 2396 |
void* svm_pointers[], |
| 2397 |
void (CL_CALLBACK* pfn_free_func)(cl_command_queue queue, cl_uint num_svm_pointers, void * svm_pointers[], void *user_data), |
| 2398 |
void* user_data, |
| 2399 |
cl_uint num_events_in_wait_list, |
| 2400 |
const cl_event* event_wait_list, |
| 2401 |
cl_event* event); |
| 2402 |
|
| 2403 |
typedef clEnqueueSVMFreeARM_t * |
| 2404 |
clEnqueueSVMFreeARM_fn CL_API_SUFFIX__VERSION_1_2; |
| 2405 |
|
| 2406 |
typedef cl_int CL_API_CALL |
| 2407 |
clEnqueueSVMMemcpyARM_t( |
| 2408 |
cl_command_queue command_queue, |
| 2409 |
cl_bool blocking_copy, |
| 2410 |
void* dst_ptr, |
| 2411 |
const void* src_ptr, |
| 2412 |
size_t size, |
| 2413 |
cl_uint num_events_in_wait_list, |
| 2414 |
const cl_event* event_wait_list, |
| 2415 |
cl_event* event); |
| 2416 |
|
| 2417 |
typedef clEnqueueSVMMemcpyARM_t * |
| 2418 |
clEnqueueSVMMemcpyARM_fn CL_API_SUFFIX__VERSION_1_2; |
| 2419 |
|
| 2420 |
typedef cl_int CL_API_CALL |
| 2421 |
clEnqueueSVMMemFillARM_t( |
| 2422 |
cl_command_queue command_queue, |
| 2423 |
void* svm_ptr, |
| 2424 |
const void* pattern, |
| 2425 |
size_t pattern_size, |
| 2426 |
size_t size, |
| 2427 |
cl_uint num_events_in_wait_list, |
| 2428 |
const cl_event* event_wait_list, |
| 2429 |
cl_event* event); |
| 2430 |
|
| 2431 |
typedef clEnqueueSVMMemFillARM_t * |
| 2432 |
clEnqueueSVMMemFillARM_fn CL_API_SUFFIX__VERSION_1_2; |
| 2433 |
|
| 2434 |
typedef cl_int CL_API_CALL |
| 2435 |
clEnqueueSVMMapARM_t( |
| 2436 |
cl_command_queue command_queue, |
| 2437 |
cl_bool blocking_map, |
| 2438 |
cl_map_flags flags, |
| 2439 |
void* svm_ptr, |
| 2440 |
size_t size, |
| 2441 |
cl_uint num_events_in_wait_list, |
| 2442 |
const cl_event* event_wait_list, |
| 2443 |
cl_event* event); |
| 2444 |
|
| 2445 |
typedef clEnqueueSVMMapARM_t * |
| 2446 |
clEnqueueSVMMapARM_fn CL_API_SUFFIX__VERSION_1_2; |
| 2447 |
|
| 2448 |
typedef cl_int CL_API_CALL |
| 2449 |
clEnqueueSVMUnmapARM_t( |
| 2450 |
cl_command_queue command_queue, |
| 2451 |
void* svm_ptr, |
| 2452 |
cl_uint num_events_in_wait_list, |
| 2453 |
const cl_event* event_wait_list, |
| 2454 |
cl_event* event); |
| 2455 |
|
| 2456 |
typedef clEnqueueSVMUnmapARM_t * |
| 2457 |
clEnqueueSVMUnmapARM_fn CL_API_SUFFIX__VERSION_1_2; |
| 2458 |
|
| 2459 |
typedef cl_int CL_API_CALL |
| 2460 |
clSetKernelArgSVMPointerARM_t( |
| 2461 |
cl_kernel kernel, |
| 2462 |
cl_uint arg_index, |
| 2463 |
const void* arg_value); |
| 2464 |
|
| 2465 |
typedef clSetKernelArgSVMPointerARM_t * |
| 2466 |
clSetKernelArgSVMPointerARM_fn CL_API_SUFFIX__VERSION_1_2; |
| 2467 |
|
| 2468 |
typedef cl_int CL_API_CALL |
| 2469 |
clSetKernelExecInfoARM_t( |
| 2470 |
cl_kernel kernel, |
| 2471 |
cl_kernel_exec_info_arm param_name, |
| 2472 |
size_t param_value_size, |
| 2473 |
const void* param_value); |
| 2474 |
|
| 2475 |
typedef clSetKernelExecInfoARM_t * |
| 2476 |
clSetKernelExecInfoARM_fn CL_API_SUFFIX__VERSION_1_2; |
| 2477 |
|
| 2478 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 2479 |
|
| 2480 |
extern CL_API_ENTRY void* CL_API_CALL |
| 2481 |
clSVMAllocARM( |
| 2482 |
cl_context context, |
| 2483 |
cl_svm_mem_flags_arm flags, |
| 2484 |
size_t size, |
| 2485 |
cl_uint alignment) CL_API_SUFFIX__VERSION_1_2; |
| 2486 |
|
| 2487 |
extern CL_API_ENTRY void CL_API_CALL |
| 2488 |
clSVMFreeARM( |
| 2489 |
cl_context context, |
| 2490 |
void* svm_pointer) CL_API_SUFFIX__VERSION_1_2; |
| 2491 |
|
| 2492 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2493 |
clEnqueueSVMFreeARM( |
| 2494 |
cl_command_queue command_queue, |
| 2495 |
cl_uint num_svm_pointers, |
| 2496 |
void* svm_pointers[], |
| 2497 |
void (CL_CALLBACK* pfn_free_func)(cl_command_queue queue, cl_uint num_svm_pointers, void * svm_pointers[], void *user_data), |
| 2498 |
void* user_data, |
| 2499 |
cl_uint num_events_in_wait_list, |
| 2500 |
const cl_event* event_wait_list, |
| 2501 |
cl_event* event) CL_API_SUFFIX__VERSION_1_2; |
| 2502 |
|
| 2503 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2504 |
clEnqueueSVMMemcpyARM( |
| 2505 |
cl_command_queue command_queue, |
| 2506 |
cl_bool blocking_copy, |
| 2507 |
void* dst_ptr, |
| 2508 |
const void* src_ptr, |
| 2509 |
size_t size, |
| 2510 |
cl_uint num_events_in_wait_list, |
| 2511 |
const cl_event* event_wait_list, |
| 2512 |
cl_event* event) CL_API_SUFFIX__VERSION_1_2; |
| 2513 |
|
| 2514 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2515 |
clEnqueueSVMMemFillARM( |
| 2516 |
cl_command_queue command_queue, |
| 2517 |
void* svm_ptr, |
| 2518 |
const void* pattern, |
| 2519 |
size_t pattern_size, |
| 2520 |
size_t size, |
| 2521 |
cl_uint num_events_in_wait_list, |
| 2522 |
const cl_event* event_wait_list, |
| 2523 |
cl_event* event) CL_API_SUFFIX__VERSION_1_2; |
| 2524 |
|
| 2525 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2526 |
clEnqueueSVMMapARM( |
| 2527 |
cl_command_queue command_queue, |
| 2528 |
cl_bool blocking_map, |
| 2529 |
cl_map_flags flags, |
| 2530 |
void* svm_ptr, |
| 2531 |
size_t size, |
| 2532 |
cl_uint num_events_in_wait_list, |
| 2533 |
const cl_event* event_wait_list, |
| 2534 |
cl_event* event) CL_API_SUFFIX__VERSION_1_2; |
| 2535 |
|
| 2536 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2537 |
clEnqueueSVMUnmapARM( |
| 2538 |
cl_command_queue command_queue, |
| 2539 |
void* svm_ptr, |
| 2540 |
cl_uint num_events_in_wait_list, |
| 2541 |
const cl_event* event_wait_list, |
| 2542 |
cl_event* event) CL_API_SUFFIX__VERSION_1_2; |
| 2543 |
|
| 2544 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2545 |
clSetKernelArgSVMPointerARM( |
| 2546 |
cl_kernel kernel, |
| 2547 |
cl_uint arg_index, |
| 2548 |
const void* arg_value) CL_API_SUFFIX__VERSION_1_2; |
| 2549 |
|
| 2550 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2551 |
clSetKernelExecInfoARM( |
| 2552 |
cl_kernel kernel, |
| 2553 |
cl_kernel_exec_info_arm param_name, |
| 2554 |
size_t param_value_size, |
| 2555 |
const void* param_value) CL_API_SUFFIX__VERSION_1_2; |
| 2556 |
|
| 2557 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 2558 |
|
| 2559 |
/*************************************************************** |
| 2560 |
* cl_arm_get_core_id |
| 2561 |
***************************************************************/ |
| 2562 |
#if defined(CL_VERSION_1_2) |
| 2563 |
|
| 2564 |
#define cl_arm_get_core_id 1 |
| 2565 |
#define CL_ARM_GET_CORE_ID_EXTENSION_NAME \ |
| 2566 |
"cl_arm_get_core_id" |
| 2567 |
|
| 2568 |
|
| 2569 |
#define CL_ARM_GET_CORE_ID_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2570 |
|
| 2571 |
/* cl_device_info */ |
| 2572 |
#define CL_DEVICE_COMPUTE_UNITS_BITFIELD_ARM 0x40BF |
| 2573 |
|
| 2574 |
#endif /* defined(CL_VERSION_1_2) */ |
| 2575 |
|
| 2576 |
/*************************************************************** |
| 2577 |
* cl_arm_job_slot_selection |
| 2578 |
***************************************************************/ |
| 2579 |
#define cl_arm_job_slot_selection 1 |
| 2580 |
#define CL_ARM_JOB_SLOT_SELECTION_EXTENSION_NAME \ |
| 2581 |
"cl_arm_job_slot_selection" |
| 2582 |
|
| 2583 |
|
| 2584 |
#define CL_ARM_JOB_SLOT_SELECTION_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2585 |
|
| 2586 |
/* cl_device_info */ |
| 2587 |
#define CL_DEVICE_JOB_SLOTS_ARM 0x41E0 |
| 2588 |
|
| 2589 |
/* cl_queue_properties */ |
| 2590 |
#define CL_QUEUE_JOB_SLOT_ARM 0x41E1 |
| 2591 |
|
| 2592 |
/*************************************************************** |
| 2593 |
* cl_arm_scheduling_controls |
| 2594 |
***************************************************************/ |
| 2595 |
#define cl_arm_scheduling_controls 1 |
| 2596 |
#define CL_ARM_SCHEDULING_CONTROLS_EXTENSION_NAME \ |
| 2597 |
"cl_arm_scheduling_controls" |
| 2598 |
|
| 2599 |
|
| 2600 |
#define CL_ARM_SCHEDULING_CONTROLS_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2601 |
|
| 2602 |
/* Types */ |
| 2603 |
typedef cl_bitfield cl_device_scheduling_controls_capabilities_arm; |
| 2604 |
|
| 2605 |
/* cl_device_scheduling_controls_capabilities_arm */ |
| 2606 |
#define CL_DEVICE_SCHEDULING_KERNEL_BATCHING_ARM (1 << 0) |
| 2607 |
#define CL_DEVICE_SCHEDULING_WORKGROUP_BATCH_SIZE_ARM (1 << 1) |
| 2608 |
#define CL_DEVICE_SCHEDULING_WORKGROUP_BATCH_SIZE_MODIFIER_ARM (1 << 2) |
| 2609 |
#define CL_DEVICE_SCHEDULING_DEFERRED_FLUSH_ARM (1 << 3) |
| 2610 |
#define CL_DEVICE_SCHEDULING_REGISTER_ALLOCATION_ARM (1 << 4) |
| 2611 |
#define CL_DEVICE_SCHEDULING_WARP_THROTTLING_ARM (1 << 5) |
| 2612 |
#define CL_DEVICE_SCHEDULING_COMPUTE_UNIT_BATCH_QUEUE_SIZE_ARM (1 << 6) |
| 2613 |
#define CL_DEVICE_SCHEDULING_COMPUTE_UNIT_LIMIT_ARM (1 << 7) |
| 2614 |
|
| 2615 |
/* cl_device_info */ |
| 2616 |
#define CL_DEVICE_SCHEDULING_CONTROLS_CAPABILITIES_ARM 0x41E4 |
| 2617 |
#define CL_DEVICE_SUPPORTED_REGISTER_ALLOCATIONS_ARM 0x41EB |
| 2618 |
#define CL_DEVICE_MAX_WARP_COUNT_ARM 0x41EA |
| 2619 |
|
| 2620 |
/* cl_kernel_exec_info */ |
| 2621 |
#define CL_KERNEL_EXEC_INFO_WORKGROUP_BATCH_SIZE_ARM 0x41E5 |
| 2622 |
#define CL_KERNEL_EXEC_INFO_WORKGROUP_BATCH_SIZE_MODIFIER_ARM 0x41E6 |
| 2623 |
#define CL_KERNEL_EXEC_INFO_WARP_COUNT_LIMIT_ARM 0x41E8 |
| 2624 |
#define CL_KERNEL_EXEC_INFO_COMPUTE_UNIT_MAX_QUEUED_BATCHES_ARM 0x41F1 |
| 2625 |
|
| 2626 |
/* cl_kernel_info */ |
| 2627 |
#define CL_KERNEL_MAX_WARP_COUNT_ARM 0x41E9 |
| 2628 |
|
| 2629 |
/* cl_queue_properties */ |
| 2630 |
#define CL_QUEUE_KERNEL_BATCHING_ARM 0x41E7 |
| 2631 |
#define CL_QUEUE_DEFERRED_FLUSH_ARM 0x41EC |
| 2632 |
#define CL_QUEUE_COMPUTE_UNIT_LIMIT_ARM 0x41F3 |
| 2633 |
|
| 2634 |
/*************************************************************** |
| 2635 |
* cl_arm_controlled_kernel_termination |
| 2636 |
***************************************************************/ |
| 2637 |
#define cl_arm_controlled_kernel_termination 1 |
| 2638 |
#define CL_ARM_CONTROLLED_KERNEL_TERMINATION_EXTENSION_NAME \ |
| 2639 |
"cl_arm_controlled_kernel_termination" |
| 2640 |
|
| 2641 |
|
| 2642 |
#define CL_ARM_CONTROLLED_KERNEL_TERMINATION_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2643 |
|
| 2644 |
/* Types */ |
| 2645 |
typedef cl_bitfield cl_device_controlled_termination_capabilities_arm; |
| 2646 |
|
| 2647 |
/* Error codes */ |
| 2648 |
#define CL_COMMAND_TERMINATED_ITSELF_WITH_FAILURE_ARM -1108 |
| 2649 |
|
| 2650 |
/* cl_device_controlled_termination_capabilities_arm */ |
| 2651 |
#define CL_DEVICE_CONTROLLED_TERMINATION_SUCCESS_ARM (1 << 0) |
| 2652 |
#define CL_DEVICE_CONTROLLED_TERMINATION_FAILURE_ARM (1 << 1) |
| 2653 |
#define CL_DEVICE_CONTROLLED_TERMINATION_QUERY_ARM (1 << 2) |
| 2654 |
|
| 2655 |
/* cl_device_info */ |
| 2656 |
#define CL_DEVICE_CONTROLLED_TERMINATION_CAPABILITIES_ARM 0x41EE |
| 2657 |
|
| 2658 |
/* cl_event_info */ |
| 2659 |
#define CL_EVENT_COMMAND_TERMINATION_REASON_ARM 0x41ED |
| 2660 |
|
| 2661 |
/* cl_command_termination_reason_arm */ |
| 2662 |
#define CL_COMMAND_TERMINATION_COMPLETION_ARM 0 |
| 2663 |
#define CL_COMMAND_TERMINATION_CONTROLLED_SUCCESS_ARM 1 |
| 2664 |
#define CL_COMMAND_TERMINATION_CONTROLLED_FAILURE_ARM 2 |
| 2665 |
#define CL_COMMAND_TERMINATION_ERROR_ARM 3 |
| 2666 |
|
| 2667 |
/*************************************************************** |
| 2668 |
* cl_arm_protected_memory_allocation |
| 2669 |
***************************************************************/ |
| 2670 |
#define cl_arm_protected_memory_allocation 1 |
| 2671 |
#define CL_ARM_PROTECTED_MEMORY_ALLOCATION_EXTENSION_NAME \ |
| 2672 |
"cl_arm_protected_memory_allocation" |
| 2673 |
|
| 2674 |
|
| 2675 |
#define CL_ARM_PROTECTED_MEMORY_ALLOCATION_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2676 |
|
| 2677 |
#define CL_MEM_PROTECTED_ALLOC_ARM ((cl_bitfield)1 << 36) |
| 2678 |
|
| 2679 |
/*************************************************************** |
| 2680 |
* cl_intel_exec_by_local_thread |
| 2681 |
***************************************************************/ |
| 2682 |
#define cl_intel_exec_by_local_thread 1 |
| 2683 |
#define CL_INTEL_EXEC_BY_LOCAL_THREAD_EXTENSION_NAME \ |
| 2684 |
"cl_intel_exec_by_local_thread" |
| 2685 |
|
| 2686 |
|
| 2687 |
#define CL_INTEL_EXEC_BY_LOCAL_THREAD_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2688 |
|
| 2689 |
/* cl_command_queue_properties - bitfield */ |
| 2690 |
#define CL_QUEUE_THREAD_LOCAL_EXEC_ENABLE_INTEL ((cl_bitfield)1 << 31) |
| 2691 |
|
| 2692 |
/*************************************************************** |
| 2693 |
* cl_intel_device_attribute_query |
| 2694 |
***************************************************************/ |
| 2695 |
#define cl_intel_device_attribute_query 1 |
| 2696 |
#define CL_INTEL_DEVICE_ATTRIBUTE_QUERY_EXTENSION_NAME \ |
| 2697 |
"cl_intel_device_attribute_query" |
| 2698 |
|
| 2699 |
|
| 2700 |
#define CL_INTEL_DEVICE_ATTRIBUTE_QUERY_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2701 |
|
| 2702 |
typedef cl_bitfield cl_device_feature_capabilities_intel; |
| 2703 |
|
| 2704 |
/* cl_device_feature_capabilities_intel */ |
| 2705 |
#define CL_DEVICE_FEATURE_FLAG_DP4A_INTEL (1 << 0) |
| 2706 |
#define CL_DEVICE_FEATURE_FLAG_DPAS_INTEL (1 << 1) |
| 2707 |
|
| 2708 |
/* cl_device_info */ |
| 2709 |
#define CL_DEVICE_IP_VERSION_INTEL 0x4250 |
| 2710 |
#define CL_DEVICE_ID_INTEL 0x4251 |
| 2711 |
#define CL_DEVICE_NUM_SLICES_INTEL 0x4252 |
| 2712 |
#define CL_DEVICE_NUM_SUB_SLICES_PER_SLICE_INTEL 0x4253 |
| 2713 |
#define CL_DEVICE_NUM_EUS_PER_SUB_SLICE_INTEL 0x4254 |
| 2714 |
#define CL_DEVICE_NUM_THREADS_PER_EU_INTEL 0x4255 |
| 2715 |
#define CL_DEVICE_FEATURE_CAPABILITIES_INTEL 0x4256 |
| 2716 |
|
| 2717 |
/*************************************************************** |
| 2718 |
* cl_intel_device_partition_by_names |
| 2719 |
***************************************************************/ |
| 2720 |
#define cl_intel_device_partition_by_names 1 |
| 2721 |
#define CL_INTEL_DEVICE_PARTITION_BY_NAMES_EXTENSION_NAME \ |
| 2722 |
"cl_intel_device_partition_by_names" |
| 2723 |
|
| 2724 |
|
| 2725 |
#define CL_INTEL_DEVICE_PARTITION_BY_NAMES_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2726 |
|
| 2727 |
#define CL_DEVICE_PARTITION_BY_NAMES_INTEL 0x4052 |
| 2728 |
#define CL_PARTITION_BY_NAMES_LIST_END_INTEL -1 |
| 2729 |
|
| 2730 |
/*************************************************************** |
| 2731 |
* cl_intel_accelerator |
| 2732 |
***************************************************************/ |
| 2733 |
#define cl_intel_accelerator 1 |
| 2734 |
#define CL_INTEL_ACCELERATOR_EXTENSION_NAME \ |
| 2735 |
"cl_intel_accelerator" |
| 2736 |
|
| 2737 |
|
| 2738 |
#define CL_INTEL_ACCELERATOR_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2739 |
|
| 2740 |
typedef struct _cl_accelerator_intel* cl_accelerator_intel; |
| 2741 |
typedef cl_uint cl_accelerator_type_intel; |
| 2742 |
typedef cl_uint cl_accelerator_info_intel; |
| 2743 |
|
| 2744 |
/* cl_accelerator_info_intel */ |
| 2745 |
#define CL_ACCELERATOR_DESCRIPTOR_INTEL 0x4090 |
| 2746 |
#define CL_ACCELERATOR_REFERENCE_COUNT_INTEL 0x4091 |
| 2747 |
#define CL_ACCELERATOR_CONTEXT_INTEL 0x4092 |
| 2748 |
#define CL_ACCELERATOR_TYPE_INTEL 0x4093 |
| 2749 |
|
| 2750 |
/* Error codes */ |
| 2751 |
#define CL_INVALID_ACCELERATOR_INTEL -1094 |
| 2752 |
#define CL_INVALID_ACCELERATOR_TYPE_INTEL -1095 |
| 2753 |
#define CL_INVALID_ACCELERATOR_DESCRIPTOR_INTEL -1096 |
| 2754 |
#define CL_ACCELERATOR_TYPE_NOT_SUPPORTED_INTEL -1097 |
| 2755 |
|
| 2756 |
|
| 2757 |
typedef cl_accelerator_intel CL_API_CALL |
| 2758 |
clCreateAcceleratorINTEL_t( |
| 2759 |
cl_context context, |
| 2760 |
cl_accelerator_type_intel accelerator_type, |
| 2761 |
size_t descriptor_size, |
| 2762 |
const void* descriptor, |
| 2763 |
cl_int* errcode_ret); |
| 2764 |
|
| 2765 |
typedef clCreateAcceleratorINTEL_t * |
| 2766 |
clCreateAcceleratorINTEL_fn CL_API_SUFFIX__VERSION_1_2; |
| 2767 |
|
| 2768 |
typedef cl_int CL_API_CALL |
| 2769 |
clGetAcceleratorInfoINTEL_t( |
| 2770 |
cl_accelerator_intel accelerator, |
| 2771 |
cl_accelerator_info_intel param_name, |
| 2772 |
size_t param_value_size, |
| 2773 |
void* param_value, |
| 2774 |
size_t* param_value_size_ret); |
| 2775 |
|
| 2776 |
typedef clGetAcceleratorInfoINTEL_t * |
| 2777 |
clGetAcceleratorInfoINTEL_fn CL_API_SUFFIX__VERSION_1_2; |
| 2778 |
|
| 2779 |
typedef cl_int CL_API_CALL |
| 2780 |
clRetainAcceleratorINTEL_t( |
| 2781 |
cl_accelerator_intel accelerator); |
| 2782 |
|
| 2783 |
typedef clRetainAcceleratorINTEL_t * |
| 2784 |
clRetainAcceleratorINTEL_fn CL_API_SUFFIX__VERSION_1_2; |
| 2785 |
|
| 2786 |
typedef cl_int CL_API_CALL |
| 2787 |
clReleaseAcceleratorINTEL_t( |
| 2788 |
cl_accelerator_intel accelerator); |
| 2789 |
|
| 2790 |
typedef clReleaseAcceleratorINTEL_t * |
| 2791 |
clReleaseAcceleratorINTEL_fn CL_API_SUFFIX__VERSION_1_2; |
| 2792 |
|
| 2793 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 2794 |
|
| 2795 |
extern CL_API_ENTRY cl_accelerator_intel CL_API_CALL |
| 2796 |
clCreateAcceleratorINTEL( |
| 2797 |
cl_context context, |
| 2798 |
cl_accelerator_type_intel accelerator_type, |
| 2799 |
size_t descriptor_size, |
| 2800 |
const void* descriptor, |
| 2801 |
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2; |
| 2802 |
|
| 2803 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2804 |
clGetAcceleratorInfoINTEL( |
| 2805 |
cl_accelerator_intel accelerator, |
| 2806 |
cl_accelerator_info_intel param_name, |
| 2807 |
size_t param_value_size, |
| 2808 |
void* param_value, |
| 2809 |
size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_1_2; |
| 2810 |
|
| 2811 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2812 |
clRetainAcceleratorINTEL( |
| 2813 |
cl_accelerator_intel accelerator) CL_API_SUFFIX__VERSION_1_2; |
| 2814 |
|
| 2815 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 2816 |
clReleaseAcceleratorINTEL( |
| 2817 |
cl_accelerator_intel accelerator) CL_API_SUFFIX__VERSION_1_2; |
| 2818 |
|
| 2819 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 2820 |
|
| 2821 |
/*************************************************************** |
| 2822 |
* cl_intel_motion_estimation |
| 2823 |
***************************************************************/ |
| 2824 |
#define cl_intel_motion_estimation 1 |
| 2825 |
#define CL_INTEL_MOTION_ESTIMATION_EXTENSION_NAME \ |
| 2826 |
"cl_intel_motion_estimation" |
| 2827 |
|
| 2828 |
|
| 2829 |
#define CL_INTEL_MOTION_ESTIMATION_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2830 |
|
| 2831 |
typedef struct _cl_motion_estimation_desc_intel { |
| 2832 |
cl_uint mb_block_type; |
| 2833 |
cl_uint subpixel_mode; |
| 2834 |
cl_uint sad_adjust_mode; |
| 2835 |
cl_uint search_path_type; |
| 2836 |
} cl_motion_estimation_desc_intel; |
| 2837 |
|
| 2838 |
/* cl_accelerator_type_intel */ |
| 2839 |
#define CL_ACCELERATOR_TYPE_MOTION_ESTIMATION_INTEL 0x0 |
| 2840 |
|
| 2841 |
/* cl_uint mb_block_type */ |
| 2842 |
#define CL_ME_MB_TYPE_16x16_INTEL 0x0 |
| 2843 |
#define CL_ME_MB_TYPE_8x8_INTEL 0x1 |
| 2844 |
#define CL_ME_MB_TYPE_4x4_INTEL 0x2 |
| 2845 |
|
| 2846 |
/* cl_uint subpixel_mode */ |
| 2847 |
#define CL_ME_SUBPIXEL_MODE_INTEGER_INTEL 0x0 |
| 2848 |
#define CL_ME_SUBPIXEL_MODE_HPEL_INTEL 0x1 |
| 2849 |
#define CL_ME_SUBPIXEL_MODE_QPEL_INTEL 0x2 |
| 2850 |
|
| 2851 |
/* cl_uint sad_adjust_mode */ |
| 2852 |
#define CL_ME_SAD_ADJUST_MODE_NONE_INTEL 0x0 |
| 2853 |
#define CL_ME_SAD_ADJUST_MODE_HAAR_INTEL 0x1 |
| 2854 |
|
| 2855 |
/* cl_uint search_path_type */ |
| 2856 |
#define CL_ME_SEARCH_PATH_RADIUS_2_2_INTEL 0x0 |
| 2857 |
#define CL_ME_SEARCH_PATH_RADIUS_4_4_INTEL 0x1 |
| 2858 |
#define CL_ME_SEARCH_PATH_RADIUS_16_12_INTEL 0x5 |
| 2859 |
|
| 2860 |
/*************************************************************** |
| 2861 |
* cl_intel_advanced_motion_estimation |
| 2862 |
***************************************************************/ |
| 2863 |
#define cl_intel_advanced_motion_estimation 1 |
| 2864 |
#define CL_INTEL_ADVANCED_MOTION_ESTIMATION_EXTENSION_NAME \ |
| 2865 |
"cl_intel_advanced_motion_estimation" |
| 2866 |
|
| 2867 |
|
| 2868 |
#define CL_INTEL_ADVANCED_MOTION_ESTIMATION_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2869 |
|
| 2870 |
/* cl_device_info */ |
| 2871 |
#define CL_DEVICE_ME_VERSION_INTEL 0x407E |
| 2872 |
|
| 2873 |
#define CL_ME_VERSION_LEGACY_INTEL 0x0 |
| 2874 |
#define CL_ME_VERSION_ADVANCED_VER_1_INTEL 0x1 |
| 2875 |
#define CL_ME_VERSION_ADVANCED_VER_2_INTEL 0x2 |
| 2876 |
|
| 2877 |
#define CL_ME_CHROMA_INTRA_PREDICT_ENABLED_INTEL 0x1 |
| 2878 |
#define CL_ME_LUMA_INTRA_PREDICT_ENABLED_INTEL 0x2 |
| 2879 |
|
| 2880 |
#define CL_ME_SKIP_BLOCK_TYPE_16x16_INTEL 0x0 |
| 2881 |
#define CL_ME_SKIP_BLOCK_TYPE_8x8_INTEL 0x4 |
| 2882 |
|
| 2883 |
#define CL_ME_COST_PENALTY_NONE_INTEL 0x0 |
| 2884 |
#define CL_ME_COST_PENALTY_LOW_INTEL 0x1 |
| 2885 |
#define CL_ME_COST_PENALTY_NORMAL_INTEL 0x2 |
| 2886 |
#define CL_ME_COST_PENALTY_HIGH_INTEL 0x3 |
| 2887 |
|
| 2888 |
#define CL_ME_COST_PRECISION_QPEL_INTEL 0x0 |
| 2889 |
#define CL_ME_COST_PRECISION_HPEL_INTEL 0x1 |
| 2890 |
#define CL_ME_COST_PRECISION_PEL_INTEL 0x2 |
| 2891 |
#define CL_ME_COST_PRECISION_DPEL_INTEL 0x3 |
| 2892 |
|
| 2893 |
#define CL_ME_LUMA_PREDICTOR_MODE_VERTICAL_INTEL 0x0 |
| 2894 |
#define CL_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_INTEL 0x1 |
| 2895 |
#define CL_ME_LUMA_PREDICTOR_MODE_DC_INTEL 0x2 |
| 2896 |
#define CL_ME_LUMA_PREDICTOR_MODE_DIAGONAL_DOWN_LEFT_INTEL 0x3 |
| 2897 |
#define CL_ME_LUMA_PREDICTOR_MODE_DIAGONAL_DOWN_RIGHT_INTEL 0x4 |
| 2898 |
#define CL_ME_LUMA_PREDICTOR_MODE_PLANE_INTEL 0x4 |
| 2899 |
#define CL_ME_LUMA_PREDICTOR_MODE_VERTICAL_RIGHT_INTEL 0x5 |
| 2900 |
#define CL_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_DOWN_INTEL 0x6 |
| 2901 |
#define CL_ME_LUMA_PREDICTOR_MODE_VERTICAL_LEFT_INTEL 0x7 |
| 2902 |
#define CL_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_UP_INTEL 0x8 |
| 2903 |
|
| 2904 |
#define CL_ME_CHROMA_PREDICTOR_MODE_DC_INTEL 0x0 |
| 2905 |
#define CL_ME_CHROMA_PREDICTOR_MODE_HORIZONTAL_INTEL 0x1 |
| 2906 |
#define CL_ME_CHROMA_PREDICTOR_MODE_VERTICAL_INTEL 0x2 |
| 2907 |
#define CL_ME_CHROMA_PREDICTOR_MODE_PLANE_INTEL 0x3 |
| 2908 |
|
| 2909 |
#define CL_ME_FORWARD_INPUT_MODE_INTEL 0x1 |
| 2910 |
#define CL_ME_BACKWARD_INPUT_MODE_INTEL 0x2 |
| 2911 |
#define CL_ME_BIDIRECTION_INPUT_MODE_INTEL 0x3 |
| 2912 |
|
| 2913 |
#define CL_ME_BIDIR_WEIGHT_QUARTER_INTEL 16 |
| 2914 |
#define CL_ME_BIDIR_WEIGHT_THIRD_INTEL 21 |
| 2915 |
#define CL_ME_BIDIR_WEIGHT_HALF_INTEL 32 |
| 2916 |
#define CL_ME_BIDIR_WEIGHT_TWO_THIRD_INTEL 43 |
| 2917 |
#define CL_ME_BIDIR_WEIGHT_THREE_QUARTER_INTEL 48 |
| 2918 |
|
| 2919 |
/*************************************************************** |
| 2920 |
* cl_intel_simultaneous_sharing |
| 2921 |
***************************************************************/ |
| 2922 |
#define cl_intel_simultaneous_sharing 1 |
| 2923 |
#define CL_INTEL_SIMULTANEOUS_SHARING_EXTENSION_NAME \ |
| 2924 |
"cl_intel_simultaneous_sharing" |
| 2925 |
|
| 2926 |
|
| 2927 |
#define CL_INTEL_SIMULTANEOUS_SHARING_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2928 |
|
| 2929 |
/* cl_device_info */ |
| 2930 |
#define CL_DEVICE_SIMULTANEOUS_INTEROPS_INTEL 0x4104 |
| 2931 |
#define CL_DEVICE_NUM_SIMULTANEOUS_INTEROPS_INTEL 0x4105 |
| 2932 |
|
| 2933 |
/*************************************************************** |
| 2934 |
* cl_intel_egl_image_yuv |
| 2935 |
***************************************************************/ |
| 2936 |
#define cl_intel_egl_image_yuv 1 |
| 2937 |
#define CL_INTEL_EGL_IMAGE_YUV_EXTENSION_NAME \ |
| 2938 |
"cl_intel_egl_image_yuv" |
| 2939 |
|
| 2940 |
|
| 2941 |
#define CL_INTEL_EGL_IMAGE_YUV_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2942 |
|
| 2943 |
/* cl_egl_image_properties_khr */ |
| 2944 |
#define CL_EGL_YUV_PLANE_INTEL 0x4107 |
| 2945 |
|
| 2946 |
/*************************************************************** |
| 2947 |
* cl_intel_packed_yuv |
| 2948 |
***************************************************************/ |
| 2949 |
#define cl_intel_packed_yuv 1 |
| 2950 |
#define CL_INTEL_PACKED_YUV_EXTENSION_NAME \ |
| 2951 |
"cl_intel_packed_yuv" |
| 2952 |
|
| 2953 |
|
| 2954 |
#define CL_INTEL_PACKED_YUV_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2955 |
|
| 2956 |
/* cl_channel_order */ |
| 2957 |
#define CL_YUYV_INTEL 0x4076 |
| 2958 |
#define CL_UYVY_INTEL 0x4077 |
| 2959 |
#define CL_YVYU_INTEL 0x4078 |
| 2960 |
#define CL_VYUY_INTEL 0x4079 |
| 2961 |
|
| 2962 |
/*************************************************************** |
| 2963 |
* cl_intel_required_subgroup_size |
| 2964 |
***************************************************************/ |
| 2965 |
#define cl_intel_required_subgroup_size 1 |
| 2966 |
#define CL_INTEL_REQUIRED_SUBGROUP_SIZE_EXTENSION_NAME \ |
| 2967 |
"cl_intel_required_subgroup_size" |
| 2968 |
|
| 2969 |
|
| 2970 |
#define CL_INTEL_REQUIRED_SUBGROUP_SIZE_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2971 |
|
| 2972 |
/* cl_device_info */ |
| 2973 |
#define CL_DEVICE_SUB_GROUP_SIZES_INTEL 0x4108 |
| 2974 |
|
| 2975 |
/* cl_kernel_work_group_info */ |
| 2976 |
#define CL_KERNEL_SPILL_MEM_SIZE_INTEL 0x4109 |
| 2977 |
|
| 2978 |
/* cl_kernel_sub_group_info */ |
| 2979 |
#define CL_KERNEL_COMPILE_SUB_GROUP_SIZE_INTEL 0x410A |
| 2980 |
|
| 2981 |
/*************************************************************** |
| 2982 |
* cl_intel_driver_diagnostics |
| 2983 |
***************************************************************/ |
| 2984 |
#define cl_intel_driver_diagnostics 1 |
| 2985 |
#define CL_INTEL_DRIVER_DIAGNOSTICS_EXTENSION_NAME \ |
| 2986 |
"cl_intel_driver_diagnostics" |
| 2987 |
|
| 2988 |
|
| 2989 |
#define CL_INTEL_DRIVER_DIAGNOSTICS_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 2990 |
|
| 2991 |
typedef cl_bitfield cl_diagnostic_verbose_level_intel; |
| 2992 |
|
| 2993 |
/* cl_context_properties */ |
| 2994 |
#define CL_CONTEXT_SHOW_DIAGNOSTICS_INTEL 0x4106 |
| 2995 |
|
| 2996 |
/* cl_diagnostic_verbose_level_intel */ |
| 2997 |
#define CL_CONTEXT_DIAGNOSTICS_LEVEL_ALL_INTEL 0xff |
| 2998 |
#define CL_CONTEXT_DIAGNOSTICS_LEVEL_GOOD_INTEL (1 << 0) |
| 2999 |
#define CL_CONTEXT_DIAGNOSTICS_LEVEL_BAD_INTEL (1 << 1) |
| 3000 |
#define CL_CONTEXT_DIAGNOSTICS_LEVEL_NEUTRAL_INTEL (1 << 2) |
| 3001 |
|
| 3002 |
/*************************************************************** |
| 3003 |
* cl_intel_planar_yuv |
| 3004 |
***************************************************************/ |
| 3005 |
#define cl_intel_planar_yuv 1 |
| 3006 |
#define CL_INTEL_PLANAR_YUV_EXTENSION_NAME \ |
| 3007 |
"cl_intel_planar_yuv" |
| 3008 |
|
| 3009 |
|
| 3010 |
#define CL_INTEL_PLANAR_YUV_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 3011 |
|
| 3012 |
/* cl_channel_order */ |
| 3013 |
#define CL_NV12_INTEL 0x410E |
| 3014 |
|
| 3015 |
/* cl_mem_flags */ |
| 3016 |
#define CL_MEM_NO_ACCESS_INTEL (1 << 24) |
| 3017 |
#define CL_MEM_ACCESS_FLAGS_UNRESTRICTED_INTEL (1 << 25) |
| 3018 |
|
| 3019 |
/* cl_device_info */ |
| 3020 |
#define CL_DEVICE_PLANAR_YUV_MAX_WIDTH_INTEL 0x417E |
| 3021 |
#define CL_DEVICE_PLANAR_YUV_MAX_HEIGHT_INTEL 0x417F |
| 3022 |
|
| 3023 |
/*************************************************************** |
| 3024 |
* cl_intel_device_side_avc_motion_estimation |
| 3025 |
***************************************************************/ |
| 3026 |
#define cl_intel_device_side_avc_motion_estimation 1 |
| 3027 |
#define CL_INTEL_DEVICE_SIDE_AVC_MOTION_ESTIMATION_EXTENSION_NAME \ |
| 3028 |
"cl_intel_device_side_avc_motion_estimation" |
| 3029 |
|
| 3030 |
|
| 3031 |
#define CL_INTEL_DEVICE_SIDE_AVC_MOTION_ESTIMATION_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 3032 |
|
| 3033 |
/* cl_device_info */ |
| 3034 |
#define CL_DEVICE_AVC_ME_VERSION_INTEL 0x410B |
| 3035 |
#define CL_DEVICE_AVC_ME_SUPPORTS_TEXTURE_SAMPLER_USE_INTEL 0x410C |
| 3036 |
#define CL_DEVICE_AVC_ME_SUPPORTS_PREEMPTION_INTEL 0x410D |
| 3037 |
|
| 3038 |
/* returned by CL_DEVICE_AVC_ME_VERSION_INTEL */ |
| 3039 |
#define CL_AVC_ME_VERSION_0_INTEL 0x0 |
| 3040 |
#define CL_AVC_ME_VERSION_1_INTEL 0x1 |
| 3041 |
|
| 3042 |
/* Inter macro-block major shape values */ |
| 3043 |
#define CL_AVC_ME_MAJOR_16x16_INTEL 0x0 |
| 3044 |
#define CL_AVC_ME_MAJOR_16x8_INTEL 0x1 |
| 3045 |
#define CL_AVC_ME_MAJOR_8x16_INTEL 0x2 |
| 3046 |
#define CL_AVC_ME_MAJOR_8x8_INTEL 0x3 |
| 3047 |
|
| 3048 |
/* Inter macro-block minor shape values */ |
| 3049 |
#define CL_AVC_ME_MINOR_8x8_INTEL 0x0 |
| 3050 |
#define CL_AVC_ME_MINOR_8x4_INTEL 0x1 |
| 3051 |
#define CL_AVC_ME_MINOR_4x8_INTEL 0x2 |
| 3052 |
#define CL_AVC_ME_MINOR_4x4_INTEL 0x3 |
| 3053 |
|
| 3054 |
/* Inter macro-block major direction values */ |
| 3055 |
#define CL_AVC_ME_MAJOR_FORWARD_INTEL 0x0 |
| 3056 |
#define CL_AVC_ME_MAJOR_BACKWARD_INTEL 0x1 |
| 3057 |
#define CL_AVC_ME_MAJOR_BIDIRECTIONAL_INTEL 0x2 |
| 3058 |
|
| 3059 |
/* Inter (IME) partition mask values */ |
| 3060 |
#define CL_AVC_ME_PARTITION_MASK_ALL_INTEL 0x0 |
| 3061 |
#define CL_AVC_ME_PARTITION_MASK_16x16_INTEL 0x7E |
| 3062 |
#define CL_AVC_ME_PARTITION_MASK_16x8_INTEL 0x7D |
| 3063 |
#define CL_AVC_ME_PARTITION_MASK_8x16_INTEL 0x7B |
| 3064 |
#define CL_AVC_ME_PARTITION_MASK_8x8_INTEL 0x77 |
| 3065 |
#define CL_AVC_ME_PARTITION_MASK_8x4_INTEL 0x6F |
| 3066 |
#define CL_AVC_ME_PARTITION_MASK_4x8_INTEL 0x5F |
| 3067 |
#define CL_AVC_ME_PARTITION_MASK_4x4_INTEL 0x3F |
| 3068 |
|
| 3069 |
/* Search window configuration */ |
| 3070 |
#define CL_AVC_ME_SEARCH_WINDOW_EXHAUSTIVE_INTEL 0x0 |
| 3071 |
#define CL_AVC_ME_SEARCH_WINDOW_SMALL_INTEL 0x1 |
| 3072 |
#define CL_AVC_ME_SEARCH_WINDOW_TINY_INTEL 0x2 |
| 3073 |
#define CL_AVC_ME_SEARCH_WINDOW_EXTRA_TINY_INTEL 0x3 |
| 3074 |
#define CL_AVC_ME_SEARCH_WINDOW_DIAMOND_INTEL 0x4 |
| 3075 |
#define CL_AVC_ME_SEARCH_WINDOW_LARGE_DIAMOND_INTEL 0x5 |
| 3076 |
#define CL_AVC_ME_SEARCH_WINDOW_RESERVED0_INTEL 0x6 |
| 3077 |
#define CL_AVC_ME_SEARCH_WINDOW_RESERVED1_INTEL 0x7 |
| 3078 |
#define CL_AVC_ME_SEARCH_WINDOW_CUSTOM_INTEL 0x8 |
| 3079 |
#define CL_AVC_ME_SEARCH_WINDOW_16x12_RADIUS_INTEL 0x9 |
| 3080 |
#define CL_AVC_ME_SEARCH_WINDOW_4x4_RADIUS_INTEL 0x2 |
| 3081 |
#define CL_AVC_ME_SEARCH_WINDOW_2x2_RADIUS_INTEL 0xa |
| 3082 |
|
| 3083 |
/* SAD adjustment mode */ |
| 3084 |
#define CL_AVC_ME_SAD_ADJUST_MODE_NONE_INTEL 0x0 |
| 3085 |
#define CL_AVC_ME_SAD_ADJUST_MODE_HAAR_INTEL 0x2 |
| 3086 |
|
| 3087 |
/* Pixel resolution */ |
| 3088 |
#define CL_AVC_ME_SUBPIXEL_MODE_INTEGER_INTEL 0x0 |
| 3089 |
#define CL_AVC_ME_SUBPIXEL_MODE_HPEL_INTEL 0x1 |
| 3090 |
#define CL_AVC_ME_SUBPIXEL_MODE_QPEL_INTEL 0x3 |
| 3091 |
|
| 3092 |
/* Cost precision values */ |
| 3093 |
#define CL_AVC_ME_COST_PRECISION_QPEL_INTEL 0x0 |
| 3094 |
#define CL_AVC_ME_COST_PRECISION_HPEL_INTEL 0x1 |
| 3095 |
#define CL_AVC_ME_COST_PRECISION_PEL_INTEL 0x2 |
| 3096 |
#define CL_AVC_ME_COST_PRECISION_DPEL_INTEL 0x3 |
| 3097 |
|
| 3098 |
/* Inter bidirectional weights */ |
| 3099 |
#define CL_AVC_ME_BIDIR_WEIGHT_QUARTER_INTEL 0x10 |
| 3100 |
#define CL_AVC_ME_BIDIR_WEIGHT_THIRD_INTEL 0x15 |
| 3101 |
#define CL_AVC_ME_BIDIR_WEIGHT_HALF_INTEL 0x20 |
| 3102 |
#define CL_AVC_ME_BIDIR_WEIGHT_TWO_THIRD_INTEL 0x2B |
| 3103 |
#define CL_AVC_ME_BIDIR_WEIGHT_THREE_QUARTER_INTEL 0x30 |
| 3104 |
|
| 3105 |
/* Inter border reached values */ |
| 3106 |
#define CL_AVC_ME_BORDER_REACHED_LEFT_INTEL 0x0 |
| 3107 |
#define CL_AVC_ME_BORDER_REACHED_RIGHT_INTEL 0x2 |
| 3108 |
#define CL_AVC_ME_BORDER_REACHED_TOP_INTEL 0x4 |
| 3109 |
#define CL_AVC_ME_BORDER_REACHED_BOTTOM_INTEL 0x8 |
| 3110 |
|
| 3111 |
/* Inter skip block partition type */ |
| 3112 |
#define CL_AVC_ME_SKIP_BLOCK_PARTITION_16x16_INTEL 0x0 |
| 3113 |
#define CL_AVC_ME_SKIP_BLOCK_PARTITION_8x8_INTEL 0x4000 |
| 3114 |
|
| 3115 |
/* Inter skip motion vector mask */ |
| 3116 |
#define CL_AVC_ME_SKIP_BLOCK_16x16_FORWARD_ENABLE_INTEL (0x1 << 24) |
| 3117 |
#define CL_AVC_ME_SKIP_BLOCK_16x16_BACKWARD_ENABLE_INTEL (0x2 << 24) |
| 3118 |
#define CL_AVC_ME_SKIP_BLOCK_16x16_DUAL_ENABLE_INTEL (0x3 << 24) |
| 3119 |
#define CL_AVC_ME_SKIP_BLOCK_8x8_FORWARD_ENABLE_INTEL (0x55 << 24) |
| 3120 |
#define CL_AVC_ME_SKIP_BLOCK_8x8_BACKWARD_ENABLE_INTEL (0xAA << 24) |
| 3121 |
#define CL_AVC_ME_SKIP_BLOCK_8x8_DUAL_ENABLE_INTEL (0xFF << 24) |
| 3122 |
#define CL_AVC_ME_SKIP_BLOCK_8x8_0_FORWARD_ENABLE_INTEL (0x1 << 24) |
| 3123 |
#define CL_AVC_ME_SKIP_BLOCK_8x8_0_BACKWARD_ENABLE_INTEL (0x2 << 24) |
| 3124 |
#define CL_AVC_ME_SKIP_BLOCK_8x8_1_FORWARD_ENABLE_INTEL (0x1 << 26) |
| 3125 |
#define CL_AVC_ME_SKIP_BLOCK_8x8_1_BACKWARD_ENABLE_INTEL (0x2 << 26) |
| 3126 |
#define CL_AVC_ME_SKIP_BLOCK_8x8_2_FORWARD_ENABLE_INTEL (0x1 << 28) |
| 3127 |
#define CL_AVC_ME_SKIP_BLOCK_8x8_2_BACKWARD_ENABLE_INTEL (0x2 << 28) |
| 3128 |
#define CL_AVC_ME_SKIP_BLOCK_8x8_3_FORWARD_ENABLE_INTEL (0x1 << 30) |
| 3129 |
#define CL_AVC_ME_SKIP_BLOCK_8x8_3_BACKWARD_ENABLE_INTEL (0x2 << 30) |
| 3130 |
|
| 3131 |
/* Block based skip type values */ |
| 3132 |
#define CL_AVC_ME_BLOCK_BASED_SKIP_4x4_INTEL 0x00 |
| 3133 |
#define CL_AVC_ME_BLOCK_BASED_SKIP_8x8_INTEL 0x80 |
| 3134 |
|
| 3135 |
/* cl_intel_device_side_avc_motion_estimation.?? */ |
| 3136 |
#define CL_AVC_ME_INTRA_16x16_INTEL 0x0 |
| 3137 |
#define CL_AVC_ME_INTRA_8x8_INTEL 0x1 |
| 3138 |
#define CL_AVC_ME_INTRA_4x4_INTEL 0x2 |
| 3139 |
|
| 3140 |
/* Luma intra partition mask values */ |
| 3141 |
#define CL_AVC_ME_INTRA_LUMA_PARTITION_MASK_16x16_INTEL 0x6 |
| 3142 |
#define CL_AVC_ME_INTRA_LUMA_PARTITION_MASK_8x8_INTEL 0x5 |
| 3143 |
#define CL_AVC_ME_INTRA_LUMA_PARTITION_MASK_4x4_INTEL 0x3 |
| 3144 |
|
| 3145 |
/* Intra neighbor availability mask values */ |
| 3146 |
#define CL_AVC_ME_INTRA_NEIGHBOR_LEFT_MASK_ENABLE_INTEL 0x60 |
| 3147 |
#define CL_AVC_ME_INTRA_NEIGHBOR_UPPER_MASK_ENABLE_INTEL 0x10 |
| 3148 |
#define CL_AVC_ME_INTRA_NEIGHBOR_UPPER_RIGHT_MASK_ENABLE_INTEL 0x8 |
| 3149 |
#define CL_AVC_ME_INTRA_NEIGHBOR_UPPER_LEFT_MASK_ENABLE_INTEL 0x4 |
| 3150 |
|
| 3151 |
/* Luma intra modes */ |
| 3152 |
#define CL_AVC_ME_LUMA_PREDICTOR_MODE_VERTICAL_INTEL 0x0 |
| 3153 |
#define CL_AVC_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_INTEL 0x1 |
| 3154 |
#define CL_AVC_ME_LUMA_PREDICTOR_MODE_DC_INTEL 0x2 |
| 3155 |
#define CL_AVC_ME_LUMA_PREDICTOR_MODE_DIAGONAL_DOWN_LEFT_INTEL 0x3 |
| 3156 |
#define CL_AVC_ME_LUMA_PREDICTOR_MODE_DIAGONAL_DOWN_RIGHT_INTEL 0x4 |
| 3157 |
#define CL_AVC_ME_LUMA_PREDICTOR_MODE_PLANE_INTEL 0x4 |
| 3158 |
#define CL_AVC_ME_LUMA_PREDICTOR_MODE_VERTICAL_RIGHT_INTEL 0x5 |
| 3159 |
#define CL_AVC_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_DOWN_INTEL 0x6 |
| 3160 |
#define CL_AVC_ME_LUMA_PREDICTOR_MODE_VERTICAL_LEFT_INTEL 0x7 |
| 3161 |
#define CL_AVC_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_UP_INTEL 0x8 |
| 3162 |
|
| 3163 |
/* Chroma intra modes */ |
| 3164 |
#define CL_AVC_ME_CHROMA_PREDICTOR_MODE_DC_INTEL 0x0 |
| 3165 |
#define CL_AVC_ME_CHROMA_PREDICTOR_MODE_HORIZONTAL_INTEL 0x1 |
| 3166 |
#define CL_AVC_ME_CHROMA_PREDICTOR_MODE_VERTICAL_INTEL 0x2 |
| 3167 |
#define CL_AVC_ME_CHROMA_PREDICTOR_MODE_PLANE_INTEL 0x3 |
| 3168 |
|
| 3169 |
/* Reference image select values */ |
| 3170 |
#define CL_AVC_ME_FRAME_FORWARD_INTEL 0x1 |
| 3171 |
#define CL_AVC_ME_FRAME_BACKWARD_INTEL 0x2 |
| 3172 |
#define CL_AVC_ME_FRAME_DUAL_INTEL 0x3 |
| 3173 |
|
| 3174 |
/* Slice type values */ |
| 3175 |
#define CL_AVC_ME_SLICE_TYPE_PRED_INTEL 0x0 |
| 3176 |
#define CL_AVC_ME_SLICE_TYPE_BPRED_INTEL 0x1 |
| 3177 |
#define CL_AVC_ME_SLICE_TYPE_INTRA_INTEL 0x2 |
| 3178 |
|
| 3179 |
/* Interlaced image field polarity values */ |
| 3180 |
#define CL_AVC_ME_INTERLACED_SCAN_TOP_FIELD_INTEL 0x0 |
| 3181 |
#define CL_AVC_ME_INTERLACED_SCAN_BOTTOM_FIELD_INTEL 0x1 |
| 3182 |
|
| 3183 |
/*************************************************************** |
| 3184 |
* cl_intel_unified_shared_memory |
| 3185 |
***************************************************************/ |
| 3186 |
#define cl_intel_unified_shared_memory 1 |
| 3187 |
#define CL_INTEL_UNIFIED_SHARED_MEMORY_EXTENSION_NAME \ |
| 3188 |
"cl_intel_unified_shared_memory" |
| 3189 |
|
| 3190 |
|
| 3191 |
#define CL_INTEL_UNIFIED_SHARED_MEMORY_EXTENSION_VERSION CL_MAKE_VERSION(1, 1, 0) |
| 3192 |
|
| 3193 |
typedef cl_bitfield cl_device_unified_shared_memory_capabilities_intel; |
| 3194 |
typedef cl_properties cl_mem_properties_intel; |
| 3195 |
typedef cl_bitfield cl_mem_alloc_flags_intel; |
| 3196 |
typedef cl_uint cl_mem_info_intel; |
| 3197 |
typedef cl_uint cl_unified_shared_memory_type_intel; |
| 3198 |
typedef cl_uint cl_mem_advice_intel; |
| 3199 |
|
| 3200 |
/* cl_device_info */ |
| 3201 |
#define CL_DEVICE_HOST_MEM_CAPABILITIES_INTEL 0x4190 |
| 3202 |
#define CL_DEVICE_DEVICE_MEM_CAPABILITIES_INTEL 0x4191 |
| 3203 |
#define CL_DEVICE_SINGLE_DEVICE_SHARED_MEM_CAPABILITIES_INTEL 0x4192 |
| 3204 |
#define CL_DEVICE_CROSS_DEVICE_SHARED_MEM_CAPABILITIES_INTEL 0x4193 |
| 3205 |
#define CL_DEVICE_SHARED_SYSTEM_MEM_CAPABILITIES_INTEL 0x4194 |
| 3206 |
|
| 3207 |
/* cl_unified_shared_memory_capabilities_intel - bitfield */ |
| 3208 |
#define CL_UNIFIED_SHARED_MEMORY_ACCESS_INTEL (1 << 0) |
| 3209 |
#define CL_UNIFIED_SHARED_MEMORY_ATOMIC_ACCESS_INTEL (1 << 1) |
| 3210 |
#define CL_UNIFIED_SHARED_MEMORY_CONCURRENT_ACCESS_INTEL (1 << 2) |
| 3211 |
#define CL_UNIFIED_SHARED_MEMORY_CONCURRENT_ATOMIC_ACCESS_INTEL (1 << 3) |
| 3212 |
|
| 3213 |
/* cl_mem_properties_intel */ |
| 3214 |
#define CL_MEM_ALLOC_FLAGS_INTEL 0x4195 |
| 3215 |
|
| 3216 |
/* cl_mem_alloc_flags_intel - bitfield */ |
| 3217 |
#define CL_MEM_ALLOC_WRITE_COMBINED_INTEL (1 << 0) |
| 3218 |
#define CL_MEM_ALLOC_INITIAL_PLACEMENT_DEVICE_INTEL (1 << 1) |
| 3219 |
#define CL_MEM_ALLOC_INITIAL_PLACEMENT_HOST_INTEL (1 << 2) |
| 3220 |
|
| 3221 |
/* cl_mem_alloc_info_intel */ |
| 3222 |
#define CL_MEM_ALLOC_TYPE_INTEL 0x419A |
| 3223 |
#define CL_MEM_ALLOC_BASE_PTR_INTEL 0x419B |
| 3224 |
#define CL_MEM_ALLOC_SIZE_INTEL 0x419C |
| 3225 |
#define CL_MEM_ALLOC_DEVICE_INTEL 0x419D |
| 3226 |
|
| 3227 |
/* cl_unified_shared_memory_type_intel */ |
| 3228 |
#define CL_MEM_TYPE_UNKNOWN_INTEL 0x4196 |
| 3229 |
#define CL_MEM_TYPE_HOST_INTEL 0x4197 |
| 3230 |
#define CL_MEM_TYPE_DEVICE_INTEL 0x4198 |
| 3231 |
#define CL_MEM_TYPE_SHARED_INTEL 0x4199 |
| 3232 |
|
| 3233 |
/* cl_kernel_exec_info */ |
| 3234 |
#define CL_KERNEL_EXEC_INFO_INDIRECT_HOST_ACCESS_INTEL 0x4200 |
| 3235 |
#define CL_KERNEL_EXEC_INFO_INDIRECT_DEVICE_ACCESS_INTEL 0x4201 |
| 3236 |
#define CL_KERNEL_EXEC_INFO_INDIRECT_SHARED_ACCESS_INTEL 0x4202 |
| 3237 |
#define CL_KERNEL_EXEC_INFO_USM_PTRS_INTEL 0x4203 |
| 3238 |
|
| 3239 |
/* cl_command_type */ |
| 3240 |
#define CL_COMMAND_MEMFILL_INTEL 0x4204 |
| 3241 |
#define CL_COMMAND_MEMCPY_INTEL 0x4205 |
| 3242 |
#define CL_COMMAND_MIGRATEMEM_INTEL 0x4206 |
| 3243 |
#define CL_COMMAND_MEMADVISE_INTEL 0x4207 |
| 3244 |
|
| 3245 |
|
| 3246 |
typedef void* CL_API_CALL |
| 3247 |
clHostMemAllocINTEL_t( |
| 3248 |
cl_context context, |
| 3249 |
const cl_mem_properties_intel* properties, |
| 3250 |
size_t size, |
| 3251 |
cl_uint alignment, |
| 3252 |
cl_int* errcode_ret); |
| 3253 |
|
| 3254 |
typedef clHostMemAllocINTEL_t * |
| 3255 |
clHostMemAllocINTEL_fn ; |
| 3256 |
|
| 3257 |
typedef void* CL_API_CALL |
| 3258 |
clDeviceMemAllocINTEL_t( |
| 3259 |
cl_context context, |
| 3260 |
cl_device_id device, |
| 3261 |
const cl_mem_properties_intel* properties, |
| 3262 |
size_t size, |
| 3263 |
cl_uint alignment, |
| 3264 |
cl_int* errcode_ret); |
| 3265 |
|
| 3266 |
typedef clDeviceMemAllocINTEL_t * |
| 3267 |
clDeviceMemAllocINTEL_fn ; |
| 3268 |
|
| 3269 |
typedef void* CL_API_CALL |
| 3270 |
clSharedMemAllocINTEL_t( |
| 3271 |
cl_context context, |
| 3272 |
cl_device_id device, |
| 3273 |
const cl_mem_properties_intel* properties, |
| 3274 |
size_t size, |
| 3275 |
cl_uint alignment, |
| 3276 |
cl_int* errcode_ret); |
| 3277 |
|
| 3278 |
typedef clSharedMemAllocINTEL_t * |
| 3279 |
clSharedMemAllocINTEL_fn ; |
| 3280 |
|
| 3281 |
typedef cl_int CL_API_CALL |
| 3282 |
clMemFreeINTEL_t( |
| 3283 |
cl_context context, |
| 3284 |
void* ptr); |
| 3285 |
|
| 3286 |
typedef clMemFreeINTEL_t * |
| 3287 |
clMemFreeINTEL_fn ; |
| 3288 |
|
| 3289 |
typedef cl_int CL_API_CALL |
| 3290 |
clMemBlockingFreeINTEL_t( |
| 3291 |
cl_context context, |
| 3292 |
void* ptr); |
| 3293 |
|
| 3294 |
typedef clMemBlockingFreeINTEL_t * |
| 3295 |
clMemBlockingFreeINTEL_fn ; |
| 3296 |
|
| 3297 |
typedef cl_int CL_API_CALL |
| 3298 |
clGetMemAllocInfoINTEL_t( |
| 3299 |
cl_context context, |
| 3300 |
const void* ptr, |
| 3301 |
cl_mem_info_intel param_name, |
| 3302 |
size_t param_value_size, |
| 3303 |
void* param_value, |
| 3304 |
size_t* param_value_size_ret); |
| 3305 |
|
| 3306 |
typedef clGetMemAllocInfoINTEL_t * |
| 3307 |
clGetMemAllocInfoINTEL_fn ; |
| 3308 |
|
| 3309 |
typedef cl_int CL_API_CALL |
| 3310 |
clSetKernelArgMemPointerINTEL_t( |
| 3311 |
cl_kernel kernel, |
| 3312 |
cl_uint arg_index, |
| 3313 |
const void* arg_value); |
| 3314 |
|
| 3315 |
typedef clSetKernelArgMemPointerINTEL_t * |
| 3316 |
clSetKernelArgMemPointerINTEL_fn ; |
| 3317 |
|
| 3318 |
typedef cl_int CL_API_CALL |
| 3319 |
clEnqueueMemFillINTEL_t( |
| 3320 |
cl_command_queue command_queue, |
| 3321 |
void* dst_ptr, |
| 3322 |
const void* pattern, |
| 3323 |
size_t pattern_size, |
| 3324 |
size_t size, |
| 3325 |
cl_uint num_events_in_wait_list, |
| 3326 |
const cl_event* event_wait_list, |
| 3327 |
cl_event* event); |
| 3328 |
|
| 3329 |
typedef clEnqueueMemFillINTEL_t * |
| 3330 |
clEnqueueMemFillINTEL_fn ; |
| 3331 |
|
| 3332 |
typedef cl_int CL_API_CALL |
| 3333 |
clEnqueueMemcpyINTEL_t( |
| 3334 |
cl_command_queue command_queue, |
| 3335 |
cl_bool blocking, |
| 3336 |
void* dst_ptr, |
| 3337 |
const void* src_ptr, |
| 3338 |
size_t size, |
| 3339 |
cl_uint num_events_in_wait_list, |
| 3340 |
const cl_event* event_wait_list, |
| 3341 |
cl_event* event); |
| 3342 |
|
| 3343 |
typedef clEnqueueMemcpyINTEL_t * |
| 3344 |
clEnqueueMemcpyINTEL_fn ; |
| 3345 |
|
| 3346 |
typedef cl_int CL_API_CALL |
| 3347 |
clEnqueueMemAdviseINTEL_t( |
| 3348 |
cl_command_queue command_queue, |
| 3349 |
const void* ptr, |
| 3350 |
size_t size, |
| 3351 |
cl_mem_advice_intel advice, |
| 3352 |
cl_uint num_events_in_wait_list, |
| 3353 |
const cl_event* event_wait_list, |
| 3354 |
cl_event* event); |
| 3355 |
|
| 3356 |
typedef clEnqueueMemAdviseINTEL_t * |
| 3357 |
clEnqueueMemAdviseINTEL_fn ; |
| 3358 |
|
| 3359 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 3360 |
|
| 3361 |
extern CL_API_ENTRY void* CL_API_CALL |
| 3362 |
clHostMemAllocINTEL( |
| 3363 |
cl_context context, |
| 3364 |
const cl_mem_properties_intel* properties, |
| 3365 |
size_t size, |
| 3366 |
cl_uint alignment, |
| 3367 |
cl_int* errcode_ret) ; |
| 3368 |
|
| 3369 |
extern CL_API_ENTRY void* CL_API_CALL |
| 3370 |
clDeviceMemAllocINTEL( |
| 3371 |
cl_context context, |
| 3372 |
cl_device_id device, |
| 3373 |
const cl_mem_properties_intel* properties, |
| 3374 |
size_t size, |
| 3375 |
cl_uint alignment, |
| 3376 |
cl_int* errcode_ret) ; |
| 3377 |
|
| 3378 |
extern CL_API_ENTRY void* CL_API_CALL |
| 3379 |
clSharedMemAllocINTEL( |
| 3380 |
cl_context context, |
| 3381 |
cl_device_id device, |
| 3382 |
const cl_mem_properties_intel* properties, |
| 3383 |
size_t size, |
| 3384 |
cl_uint alignment, |
| 3385 |
cl_int* errcode_ret) ; |
| 3386 |
|
| 3387 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3388 |
clMemFreeINTEL( |
| 3389 |
cl_context context, |
| 3390 |
void* ptr) ; |
| 3391 |
|
| 3392 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3393 |
clMemBlockingFreeINTEL( |
| 3394 |
cl_context context, |
| 3395 |
void* ptr) ; |
| 3396 |
|
| 3397 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3398 |
clGetMemAllocInfoINTEL( |
| 3399 |
cl_context context, |
| 3400 |
const void* ptr, |
| 3401 |
cl_mem_info_intel param_name, |
| 3402 |
size_t param_value_size, |
| 3403 |
void* param_value, |
| 3404 |
size_t* param_value_size_ret) ; |
| 3405 |
|
| 3406 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3407 |
clSetKernelArgMemPointerINTEL( |
| 3408 |
cl_kernel kernel, |
| 3409 |
cl_uint arg_index, |
| 3410 |
const void* arg_value) ; |
| 3411 |
|
| 3412 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3413 |
clEnqueueMemFillINTEL( |
| 3414 |
cl_command_queue command_queue, |
| 3415 |
void* dst_ptr, |
| 3416 |
const void* pattern, |
| 3417 |
size_t pattern_size, |
| 3418 |
size_t size, |
| 3419 |
cl_uint num_events_in_wait_list, |
| 3420 |
const cl_event* event_wait_list, |
| 3421 |
cl_event* event) ; |
| 3422 |
|
| 3423 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3424 |
clEnqueueMemcpyINTEL( |
| 3425 |
cl_command_queue command_queue, |
| 3426 |
cl_bool blocking, |
| 3427 |
void* dst_ptr, |
| 3428 |
const void* src_ptr, |
| 3429 |
size_t size, |
| 3430 |
cl_uint num_events_in_wait_list, |
| 3431 |
const cl_event* event_wait_list, |
| 3432 |
cl_event* event) ; |
| 3433 |
|
| 3434 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3435 |
clEnqueueMemAdviseINTEL( |
| 3436 |
cl_command_queue command_queue, |
| 3437 |
const void* ptr, |
| 3438 |
size_t size, |
| 3439 |
cl_mem_advice_intel advice, |
| 3440 |
cl_uint num_events_in_wait_list, |
| 3441 |
const cl_event* event_wait_list, |
| 3442 |
cl_event* event) ; |
| 3443 |
|
| 3444 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 3445 |
|
| 3446 |
#if defined(CL_VERSION_1_2) |
| 3447 |
/* Requires OpenCL 1.2 for cl_mem_migration_flags: */ |
| 3448 |
|
| 3449 |
typedef cl_int CL_API_CALL |
| 3450 |
clEnqueueMigrateMemINTEL_t( |
| 3451 |
cl_command_queue command_queue, |
| 3452 |
const void* ptr, |
| 3453 |
size_t size, |
| 3454 |
cl_mem_migration_flags flags, |
| 3455 |
cl_uint num_events_in_wait_list, |
| 3456 |
const cl_event* event_wait_list, |
| 3457 |
cl_event* event); |
| 3458 |
|
| 3459 |
typedef clEnqueueMigrateMemINTEL_t * |
| 3460 |
clEnqueueMigrateMemINTEL_fn ; |
| 3461 |
|
| 3462 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 3463 |
|
| 3464 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3465 |
clEnqueueMigrateMemINTEL( |
| 3466 |
cl_command_queue command_queue, |
| 3467 |
const void* ptr, |
| 3468 |
size_t size, |
| 3469 |
cl_mem_migration_flags flags, |
| 3470 |
cl_uint num_events_in_wait_list, |
| 3471 |
const cl_event* event_wait_list, |
| 3472 |
cl_event* event) ; |
| 3473 |
|
| 3474 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 3475 |
|
| 3476 |
#endif /* defined(CL_VERSION_1_2) */ |
| 3477 |
|
| 3478 |
/* deprecated, use clEnqueueMemFillINTEL instead */ |
| 3479 |
|
| 3480 |
typedef cl_int CL_API_CALL |
| 3481 |
clEnqueueMemsetINTEL_t( |
| 3482 |
cl_command_queue command_queue, |
| 3483 |
void* dst_ptr, |
| 3484 |
cl_int value, |
| 3485 |
size_t size, |
| 3486 |
cl_uint num_events_in_wait_list, |
| 3487 |
const cl_event* event_wait_list, |
| 3488 |
cl_event* event); |
| 3489 |
|
| 3490 |
typedef clEnqueueMemsetINTEL_t * |
| 3491 |
clEnqueueMemsetINTEL_fn ; |
| 3492 |
|
| 3493 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 3494 |
|
| 3495 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3496 |
clEnqueueMemsetINTEL( |
| 3497 |
cl_command_queue command_queue, |
| 3498 |
void* dst_ptr, |
| 3499 |
cl_int value, |
| 3500 |
size_t size, |
| 3501 |
cl_uint num_events_in_wait_list, |
| 3502 |
const cl_event* event_wait_list, |
| 3503 |
cl_event* event) ; |
| 3504 |
|
| 3505 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 3506 |
|
| 3507 |
/*************************************************************** |
| 3508 |
* cl_intel_mem_alloc_buffer_location |
| 3509 |
***************************************************************/ |
| 3510 |
#define cl_intel_mem_alloc_buffer_location 1 |
| 3511 |
#define CL_INTEL_MEM_ALLOC_BUFFER_LOCATION_EXTENSION_NAME \ |
| 3512 |
"cl_intel_mem_alloc_buffer_location" |
| 3513 |
|
| 3514 |
|
| 3515 |
#define CL_INTEL_MEM_ALLOC_BUFFER_LOCATION_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 3516 |
|
| 3517 |
/* cl_mem_properties_intel */ |
| 3518 |
#define CL_MEM_ALLOC_BUFFER_LOCATION_INTEL 0x419E |
| 3519 |
|
| 3520 |
/* cl_mem_alloc_info_intel */ |
| 3521 |
/* enum CL_MEM_ALLOC_BUFFER_LOCATION_INTEL */ |
| 3522 |
|
| 3523 |
/*************************************************************** |
| 3524 |
* cl_intel_create_buffer_with_properties |
| 3525 |
***************************************************************/ |
| 3526 |
#define cl_intel_create_buffer_with_properties 1 |
| 3527 |
#define CL_INTEL_CREATE_BUFFER_WITH_PROPERTIES_EXTENSION_NAME \ |
| 3528 |
"cl_intel_create_buffer_with_properties" |
| 3529 |
|
| 3530 |
|
| 3531 |
#define CL_INTEL_CREATE_BUFFER_WITH_PROPERTIES_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 3532 |
|
| 3533 |
/* type cl_mem_properties_intel */ |
| 3534 |
|
| 3535 |
|
| 3536 |
typedef cl_mem CL_API_CALL |
| 3537 |
clCreateBufferWithPropertiesINTEL_t( |
| 3538 |
cl_context context, |
| 3539 |
const cl_mem_properties_intel* properties, |
| 3540 |
cl_mem_flags flags, |
| 3541 |
size_t size, |
| 3542 |
void* host_ptr, |
| 3543 |
cl_int* errcode_ret); |
| 3544 |
|
| 3545 |
typedef clCreateBufferWithPropertiesINTEL_t * |
| 3546 |
clCreateBufferWithPropertiesINTEL_fn CL_API_SUFFIX__VERSION_1_0; |
| 3547 |
|
| 3548 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 3549 |
|
| 3550 |
extern CL_API_ENTRY cl_mem CL_API_CALL |
| 3551 |
clCreateBufferWithPropertiesINTEL( |
| 3552 |
cl_context context, |
| 3553 |
const cl_mem_properties_intel* properties, |
| 3554 |
cl_mem_flags flags, |
| 3555 |
size_t size, |
| 3556 |
void* host_ptr, |
| 3557 |
cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_0; |
| 3558 |
|
| 3559 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 3560 |
|
| 3561 |
/*************************************************************** |
| 3562 |
* cl_intel_program_scope_host_pipe |
| 3563 |
***************************************************************/ |
| 3564 |
#define cl_intel_program_scope_host_pipe 1 |
| 3565 |
#define CL_INTEL_PROGRAM_SCOPE_HOST_PIPE_EXTENSION_NAME \ |
| 3566 |
"cl_intel_program_scope_host_pipe" |
| 3567 |
|
| 3568 |
|
| 3569 |
#define CL_INTEL_PROGRAM_SCOPE_HOST_PIPE_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 3570 |
|
| 3571 |
/* clGetEventInfo response when param_name is CL_EVENT_COMMAND_TYPE */ |
| 3572 |
#define CL_COMMAND_READ_HOST_PIPE_INTEL 0x4214 |
| 3573 |
#define CL_COMMAND_WRITE_HOST_PIPE_INTEL 0x4215 |
| 3574 |
|
| 3575 |
/* clGetProgramInfo param_name */ |
| 3576 |
#define CL_PROGRAM_NUM_HOST_PIPES_INTEL 0x4216 |
| 3577 |
#define CL_PROGRAM_HOST_PIPE_NAMES_INTEL 0x4217 |
| 3578 |
|
| 3579 |
|
| 3580 |
typedef cl_int CL_API_CALL |
| 3581 |
clEnqueueReadHostPipeINTEL_t( |
| 3582 |
cl_command_queue command_queue, |
| 3583 |
cl_program program, |
| 3584 |
const char* pipe_symbol, |
| 3585 |
cl_bool blocking_read, |
| 3586 |
void* ptr, |
| 3587 |
size_t size, |
| 3588 |
cl_uint num_events_in_wait_list, |
| 3589 |
const cl_event* event_wait_list, |
| 3590 |
cl_event* event); |
| 3591 |
|
| 3592 |
typedef clEnqueueReadHostPipeINTEL_t * |
| 3593 |
clEnqueueReadHostPipeINTEL_fn CL_API_SUFFIX__VERSION_1_0; |
| 3594 |
|
| 3595 |
typedef cl_int CL_API_CALL |
| 3596 |
clEnqueueWriteHostPipeINTEL_t( |
| 3597 |
cl_command_queue command_queue, |
| 3598 |
cl_program program, |
| 3599 |
const char* pipe_symbol, |
| 3600 |
cl_bool blocking_write, |
| 3601 |
const void* ptr, |
| 3602 |
size_t size, |
| 3603 |
cl_uint num_events_in_wait_list, |
| 3604 |
const cl_event* event_wait_list, |
| 3605 |
cl_event* event); |
| 3606 |
|
| 3607 |
typedef clEnqueueWriteHostPipeINTEL_t * |
| 3608 |
clEnqueueWriteHostPipeINTEL_fn CL_API_SUFFIX__VERSION_1_0; |
| 3609 |
|
| 3610 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 3611 |
|
| 3612 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3613 |
clEnqueueReadHostPipeINTEL( |
| 3614 |
cl_command_queue command_queue, |
| 3615 |
cl_program program, |
| 3616 |
const char* pipe_symbol, |
| 3617 |
cl_bool blocking_read, |
| 3618 |
void* ptr, |
| 3619 |
size_t size, |
| 3620 |
cl_uint num_events_in_wait_list, |
| 3621 |
const cl_event* event_wait_list, |
| 3622 |
cl_event* event) CL_API_SUFFIX__VERSION_1_0; |
| 3623 |
|
| 3624 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3625 |
clEnqueueWriteHostPipeINTEL( |
| 3626 |
cl_command_queue command_queue, |
| 3627 |
cl_program program, |
| 3628 |
const char* pipe_symbol, |
| 3629 |
cl_bool blocking_write, |
| 3630 |
const void* ptr, |
| 3631 |
size_t size, |
| 3632 |
cl_uint num_events_in_wait_list, |
| 3633 |
const cl_event* event_wait_list, |
| 3634 |
cl_event* event) CL_API_SUFFIX__VERSION_1_0; |
| 3635 |
|
| 3636 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 3637 |
|
| 3638 |
/*************************************************************** |
| 3639 |
* cl_intel_mem_channel_property |
| 3640 |
***************************************************************/ |
| 3641 |
#define cl_intel_mem_channel_property 1 |
| 3642 |
#define CL_INTEL_MEM_CHANNEL_PROPERTY_EXTENSION_NAME \ |
| 3643 |
"cl_intel_mem_channel_property" |
| 3644 |
|
| 3645 |
|
| 3646 |
#define CL_INTEL_MEM_CHANNEL_PROPERTY_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 3647 |
|
| 3648 |
/* cl_mem_properties_intel */ |
| 3649 |
#define CL_MEM_CHANNEL_INTEL 0x4213 |
| 3650 |
|
| 3651 |
/*************************************************************** |
| 3652 |
* cl_intel_mem_force_host_memory |
| 3653 |
***************************************************************/ |
| 3654 |
#define cl_intel_mem_force_host_memory 1 |
| 3655 |
#define CL_INTEL_MEM_FORCE_HOST_MEMORY_EXTENSION_NAME \ |
| 3656 |
"cl_intel_mem_force_host_memory" |
| 3657 |
|
| 3658 |
|
| 3659 |
#define CL_INTEL_MEM_FORCE_HOST_MEMORY_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 3660 |
|
| 3661 |
/* cl_mem_flags */ |
| 3662 |
#define CL_MEM_FORCE_HOST_MEMORY_INTEL (1 << 20) |
| 3663 |
|
| 3664 |
/*************************************************************** |
| 3665 |
* cl_intel_command_queue_families |
| 3666 |
***************************************************************/ |
| 3667 |
#define cl_intel_command_queue_families 1 |
| 3668 |
#define CL_INTEL_COMMAND_QUEUE_FAMILIES_EXTENSION_NAME \ |
| 3669 |
"cl_intel_command_queue_families" |
| 3670 |
|
| 3671 |
|
| 3672 |
#define CL_INTEL_COMMAND_QUEUE_FAMILIES_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 3673 |
|
| 3674 |
typedef cl_bitfield cl_command_queue_capabilities_intel; |
| 3675 |
|
| 3676 |
#define CL_QUEUE_FAMILY_MAX_NAME_SIZE_INTEL 64 |
| 3677 |
|
| 3678 |
typedef struct _cl_queue_family_properties_intel { |
| 3679 |
cl_command_queue_properties properties; |
| 3680 |
cl_command_queue_capabilities_intel capabilities; |
| 3681 |
cl_uint count; |
| 3682 |
char name[CL_QUEUE_FAMILY_MAX_NAME_SIZE_INTEL]; |
| 3683 |
} cl_queue_family_properties_intel; |
| 3684 |
|
| 3685 |
/* cl_device_info */ |
| 3686 |
#define CL_DEVICE_QUEUE_FAMILY_PROPERTIES_INTEL 0x418B |
| 3687 |
|
| 3688 |
/* cl_queue_properties */ |
| 3689 |
#define CL_QUEUE_FAMILY_INTEL 0x418C |
| 3690 |
#define CL_QUEUE_INDEX_INTEL 0x418D |
| 3691 |
|
| 3692 |
/* cl_command_queue_capabilities_intel */ |
| 3693 |
#define CL_QUEUE_DEFAULT_CAPABILITIES_INTEL 0 |
| 3694 |
#define CL_QUEUE_CAPABILITY_CREATE_SINGLE_QUEUE_EVENTS_INTEL (1 << 0) |
| 3695 |
#define CL_QUEUE_CAPABILITY_CREATE_CROSS_QUEUE_EVENTS_INTEL (1 << 1) |
| 3696 |
#define CL_QUEUE_CAPABILITY_SINGLE_QUEUE_EVENT_WAIT_LIST_INTEL (1 << 2) |
| 3697 |
#define CL_QUEUE_CAPABILITY_CROSS_QUEUE_EVENT_WAIT_LIST_INTEL (1 << 3) |
| 3698 |
#define CL_QUEUE_CAPABILITY_TRANSFER_BUFFER_INTEL (1 << 8) |
| 3699 |
#define CL_QUEUE_CAPABILITY_TRANSFER_BUFFER_RECT_INTEL (1 << 9) |
| 3700 |
#define CL_QUEUE_CAPABILITY_MAP_BUFFER_INTEL (1 << 10) |
| 3701 |
#define CL_QUEUE_CAPABILITY_FILL_BUFFER_INTEL (1 << 11) |
| 3702 |
#define CL_QUEUE_CAPABILITY_TRANSFER_IMAGE_INTEL (1 << 12) |
| 3703 |
#define CL_QUEUE_CAPABILITY_MAP_IMAGE_INTEL (1 << 13) |
| 3704 |
#define CL_QUEUE_CAPABILITY_FILL_IMAGE_INTEL (1 << 14) |
| 3705 |
#define CL_QUEUE_CAPABILITY_TRANSFER_BUFFER_IMAGE_INTEL (1 << 15) |
| 3706 |
#define CL_QUEUE_CAPABILITY_TRANSFER_IMAGE_BUFFER_INTEL (1 << 16) |
| 3707 |
#define CL_QUEUE_CAPABILITY_MARKER_INTEL (1 << 24) |
| 3708 |
#define CL_QUEUE_CAPABILITY_BARRIER_INTEL (1 << 25) |
| 3709 |
#define CL_QUEUE_CAPABILITY_KERNEL_INTEL (1 << 26) |
| 3710 |
|
| 3711 |
/*************************************************************** |
| 3712 |
* cl_intel_queue_no_sync_operations |
| 3713 |
***************************************************************/ |
| 3714 |
#define cl_intel_queue_no_sync_operations 1 |
| 3715 |
#define CL_INTEL_QUEUE_NO_SYNC_OPERATIONS_EXTENSION_NAME \ |
| 3716 |
"cl_intel_queue_no_sync_operations" |
| 3717 |
|
| 3718 |
|
| 3719 |
#define CL_INTEL_QUEUE_NO_SYNC_OPERATIONS_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 3720 |
|
| 3721 |
/* cl_command_queue_properties */ |
| 3722 |
#define CL_QUEUE_NO_SYNC_OPERATIONS_INTEL (1 << 29) |
| 3723 |
|
| 3724 |
/*************************************************************** |
| 3725 |
* cl_intel_sharing_format_query |
| 3726 |
***************************************************************/ |
| 3727 |
#define cl_intel_sharing_format_query 1 |
| 3728 |
#define CL_INTEL_SHARING_FORMAT_QUERY_EXTENSION_NAME \ |
| 3729 |
"cl_intel_sharing_format_query" |
| 3730 |
|
| 3731 |
|
| 3732 |
#define CL_INTEL_SHARING_FORMAT_QUERY_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 3733 |
|
| 3734 |
/*************************************************************** |
| 3735 |
* cl_ext_image_requirements_info |
| 3736 |
***************************************************************/ |
| 3737 |
#if defined(CL_VERSION_3_0) |
| 3738 |
|
| 3739 |
#define cl_ext_image_requirements_info 1 |
| 3740 |
#define CL_EXT_IMAGE_REQUIREMENTS_INFO_EXTENSION_NAME \ |
| 3741 |
"cl_ext_image_requirements_info" |
| 3742 |
|
| 3743 |
|
| 3744 |
#define CL_EXT_IMAGE_REQUIREMENTS_INFO_EXTENSION_VERSION CL_MAKE_VERSION(0, 5, 0) |
| 3745 |
|
| 3746 |
/* Types */ |
| 3747 |
typedef cl_uint cl_image_requirements_info_ext; |
| 3748 |
|
| 3749 |
/* cl_image_requirements_info_ext */ |
| 3750 |
#define CL_IMAGE_REQUIREMENTS_BASE_ADDRESS_ALIGNMENT_EXT 0x1292 |
| 3751 |
#define CL_IMAGE_REQUIREMENTS_ROW_PITCH_ALIGNMENT_EXT 0x1290 |
| 3752 |
#define CL_IMAGE_REQUIREMENTS_SIZE_EXT 0x12B2 |
| 3753 |
#define CL_IMAGE_REQUIREMENTS_MAX_WIDTH_EXT 0x12B3 |
| 3754 |
#define CL_IMAGE_REQUIREMENTS_MAX_HEIGHT_EXT 0x12B4 |
| 3755 |
#define CL_IMAGE_REQUIREMENTS_MAX_DEPTH_EXT 0x12B5 |
| 3756 |
#define CL_IMAGE_REQUIREMENTS_MAX_ARRAY_SIZE_EXT 0x12B6 |
| 3757 |
|
| 3758 |
/* Enqueued Commands APIs */ |
| 3759 |
|
| 3760 |
typedef cl_int CL_API_CALL |
| 3761 |
clGetImageRequirementsInfoEXT_t( |
| 3762 |
cl_context context, |
| 3763 |
const cl_mem_properties* properties, |
| 3764 |
cl_mem_flags flags, |
| 3765 |
const cl_image_format* image_format, |
| 3766 |
const cl_image_desc* image_desc, |
| 3767 |
cl_image_requirements_info_ext param_name, |
| 3768 |
size_t param_value_size, |
| 3769 |
void* param_value, |
| 3770 |
size_t* param_value_size_ret); |
| 3771 |
|
| 3772 |
typedef clGetImageRequirementsInfoEXT_t * |
| 3773 |
clGetImageRequirementsInfoEXT_fn CL_API_SUFFIX__VERSION_3_0; |
| 3774 |
|
| 3775 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 3776 |
|
| 3777 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3778 |
clGetImageRequirementsInfoEXT( |
| 3779 |
cl_context context, |
| 3780 |
const cl_mem_properties* properties, |
| 3781 |
cl_mem_flags flags, |
| 3782 |
const cl_image_format* image_format, |
| 3783 |
const cl_image_desc* image_desc, |
| 3784 |
cl_image_requirements_info_ext param_name, |
| 3785 |
size_t param_value_size, |
| 3786 |
void* param_value, |
| 3787 |
size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_3_0; |
| 3788 |
|
| 3789 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 3790 |
|
| 3791 |
#endif /* defined(CL_VERSION_3_0) */ |
| 3792 |
|
| 3793 |
/*************************************************************** |
| 3794 |
* cl_ext_image_from_buffer |
| 3795 |
***************************************************************/ |
| 3796 |
#if defined(CL_VERSION_3_0) |
| 3797 |
|
| 3798 |
#define cl_ext_image_from_buffer 1 |
| 3799 |
#define CL_EXT_IMAGE_FROM_BUFFER_EXTENSION_NAME \ |
| 3800 |
"cl_ext_image_from_buffer" |
| 3801 |
|
| 3802 |
|
| 3803 |
#define CL_EXT_IMAGE_FROM_BUFFER_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 3804 |
|
| 3805 |
/* cl_image_requirements_info_ext */ |
| 3806 |
#define CL_IMAGE_REQUIREMENTS_SLICE_PITCH_ALIGNMENT_EXT 0x1291 |
| 3807 |
|
| 3808 |
#endif /* defined(CL_VERSION_3_0) */ |
| 3809 |
|
| 3810 |
/*************************************************************** |
| 3811 |
* cl_loader_info |
| 3812 |
***************************************************************/ |
| 3813 |
#define cl_loader_info 1 |
| 3814 |
#define CL_LOADER_INFO_EXTENSION_NAME \ |
| 3815 |
"cl_loader_info" |
| 3816 |
|
| 3817 |
|
| 3818 |
#define CL_LOADER_INFO_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 3819 |
|
| 3820 |
typedef cl_uint cl_icdl_info; |
| 3821 |
|
| 3822 |
/* cl_icdl_info */ |
| 3823 |
#define CL_ICDL_OCL_VERSION 1 |
| 3824 |
#define CL_ICDL_VERSION 2 |
| 3825 |
#define CL_ICDL_NAME 3 |
| 3826 |
#define CL_ICDL_VENDOR 4 |
| 3827 |
|
| 3828 |
|
| 3829 |
typedef cl_int CL_API_CALL |
| 3830 |
clGetICDLoaderInfoOCLICD_t( |
| 3831 |
cl_icdl_info param_name, |
| 3832 |
size_t param_value_size, |
| 3833 |
void* param_value, |
| 3834 |
size_t* param_value_size_ret); |
| 3835 |
|
| 3836 |
typedef clGetICDLoaderInfoOCLICD_t * |
| 3837 |
clGetICDLoaderInfoOCLICD_fn ; |
| 3838 |
|
| 3839 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 3840 |
|
| 3841 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3842 |
clGetICDLoaderInfoOCLICD( |
| 3843 |
cl_icdl_info param_name, |
| 3844 |
size_t param_value_size, |
| 3845 |
void* param_value, |
| 3846 |
size_t* param_value_size_ret) ; |
| 3847 |
|
| 3848 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 3849 |
|
| 3850 |
/*************************************************************** |
| 3851 |
* cl_khr_depth_images |
| 3852 |
***************************************************************/ |
| 3853 |
#define cl_khr_depth_images 1 |
| 3854 |
#define CL_KHR_DEPTH_IMAGES_EXTENSION_NAME \ |
| 3855 |
"cl_khr_depth_images" |
| 3856 |
|
| 3857 |
|
| 3858 |
#define CL_KHR_DEPTH_IMAGES_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 3859 |
|
| 3860 |
#if !defined(CL_VERSION_2_0) |
| 3861 |
/* cl_channel_order - defined in CL.h for OpenCL 2.0 and newer */ |
| 3862 |
#define CL_DEPTH 0x10BD |
| 3863 |
|
| 3864 |
#endif /* !defined(CL_VERSION_2_0) */ |
| 3865 |
|
| 3866 |
/*************************************************************** |
| 3867 |
* cl_ext_float_atomics |
| 3868 |
***************************************************************/ |
| 3869 |
#define cl_ext_float_atomics 1 |
| 3870 |
#define CL_EXT_FLOAT_ATOMICS_EXTENSION_NAME \ |
| 3871 |
"cl_ext_float_atomics" |
| 3872 |
|
| 3873 |
|
| 3874 |
#define CL_EXT_FLOAT_ATOMICS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 3875 |
|
| 3876 |
typedef cl_bitfield cl_device_fp_atomic_capabilities_ext; |
| 3877 |
|
| 3878 |
/* cl_device_fp_atomic_capabilities_ext */ |
| 3879 |
#define CL_DEVICE_GLOBAL_FP_ATOMIC_LOAD_STORE_EXT (1 << 0) |
| 3880 |
#define CL_DEVICE_GLOBAL_FP_ATOMIC_ADD_EXT (1 << 1) |
| 3881 |
#define CL_DEVICE_GLOBAL_FP_ATOMIC_MIN_MAX_EXT (1 << 2) |
| 3882 |
#define CL_DEVICE_LOCAL_FP_ATOMIC_LOAD_STORE_EXT (1 << 16) |
| 3883 |
#define CL_DEVICE_LOCAL_FP_ATOMIC_ADD_EXT (1 << 17) |
| 3884 |
#define CL_DEVICE_LOCAL_FP_ATOMIC_MIN_MAX_EXT (1 << 18) |
| 3885 |
|
| 3886 |
/* cl_device_info */ |
| 3887 |
#define CL_DEVICE_SINGLE_FP_ATOMIC_CAPABILITIES_EXT 0x4231 |
| 3888 |
#define CL_DEVICE_DOUBLE_FP_ATOMIC_CAPABILITIES_EXT 0x4232 |
| 3889 |
#define CL_DEVICE_HALF_FP_ATOMIC_CAPABILITIES_EXT 0x4233 |
| 3890 |
|
| 3891 |
/*************************************************************** |
| 3892 |
* cl_intel_create_mem_object_properties |
| 3893 |
***************************************************************/ |
| 3894 |
#define cl_intel_create_mem_object_properties 1 |
| 3895 |
#define CL_INTEL_CREATE_MEM_OBJECT_PROPERTIES_EXTENSION_NAME \ |
| 3896 |
"cl_intel_create_mem_object_properties" |
| 3897 |
|
| 3898 |
|
| 3899 |
#define CL_INTEL_CREATE_MEM_OBJECT_PROPERTIES_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 3900 |
|
| 3901 |
/* cl_mem_properties */ |
| 3902 |
#define CL_MEM_LOCALLY_UNCACHED_RESOURCE_INTEL 0x4218 |
| 3903 |
#define CL_MEM_DEVICE_ID_INTEL 0x4219 |
| 3904 |
|
| 3905 |
/*************************************************************** |
| 3906 |
* cl_pocl_content_size |
| 3907 |
***************************************************************/ |
| 3908 |
#define cl_pocl_content_size 1 |
| 3909 |
#define CL_POCL_CONTENT_SIZE_EXTENSION_NAME \ |
| 3910 |
"cl_pocl_content_size" |
| 3911 |
|
| 3912 |
|
| 3913 |
#define CL_POCL_CONTENT_SIZE_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 3914 |
|
| 3915 |
|
| 3916 |
typedef cl_int CL_API_CALL |
| 3917 |
clSetContentSizeBufferPoCL_t( |
| 3918 |
cl_mem buffer, |
| 3919 |
cl_mem content_size_buffer); |
| 3920 |
|
| 3921 |
typedef clSetContentSizeBufferPoCL_t * |
| 3922 |
clSetContentSizeBufferPoCL_fn CL_API_SUFFIX__VERSION_1_0; |
| 3923 |
|
| 3924 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 3925 |
|
| 3926 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 3927 |
clSetContentSizeBufferPoCL( |
| 3928 |
cl_mem buffer, |
| 3929 |
cl_mem content_size_buffer) CL_API_SUFFIX__VERSION_1_0; |
| 3930 |
|
| 3931 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 3932 |
|
| 3933 |
/*************************************************************** |
| 3934 |
* cl_ext_image_raw10_raw12 |
| 3935 |
***************************************************************/ |
| 3936 |
#define cl_ext_image_raw10_raw12 1 |
| 3937 |
#define CL_EXT_IMAGE_RAW10_RAW12_EXTENSION_NAME \ |
| 3938 |
"cl_ext_image_raw10_raw12" |
| 3939 |
|
| 3940 |
|
| 3941 |
#define CL_EXT_IMAGE_RAW10_RAW12_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 3942 |
|
| 3943 |
/* cl_channel_type */ |
| 3944 |
#define CL_UNSIGNED_INT_RAW10_EXT 0x10E3 |
| 3945 |
#define CL_UNSIGNED_INT_RAW12_EXT 0x10E4 |
| 3946 |
|
| 3947 |
/*************************************************************** |
| 3948 |
* cl_khr_3d_image_writes |
| 3949 |
***************************************************************/ |
| 3950 |
#define cl_khr_3d_image_writes 1 |
| 3951 |
#define CL_KHR_3D_IMAGE_WRITES_EXTENSION_NAME \ |
| 3952 |
"cl_khr_3d_image_writes" |
| 3953 |
|
| 3954 |
|
| 3955 |
#define CL_KHR_3D_IMAGE_WRITES_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 3956 |
|
| 3957 |
/*************************************************************** |
| 3958 |
* cl_khr_async_work_group_copy_fence |
| 3959 |
***************************************************************/ |
| 3960 |
#define cl_khr_async_work_group_copy_fence 1 |
| 3961 |
#define CL_KHR_ASYNC_WORK_GROUP_COPY_FENCE_EXTENSION_NAME \ |
| 3962 |
"cl_khr_async_work_group_copy_fence" |
| 3963 |
|
| 3964 |
|
| 3965 |
#define CL_KHR_ASYNC_WORK_GROUP_COPY_FENCE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 3966 |
|
| 3967 |
/*************************************************************** |
| 3968 |
* cl_khr_byte_addressable_store |
| 3969 |
***************************************************************/ |
| 3970 |
#define cl_khr_byte_addressable_store 1 |
| 3971 |
#define CL_KHR_BYTE_ADDRESSABLE_STORE_EXTENSION_NAME \ |
| 3972 |
"cl_khr_byte_addressable_store" |
| 3973 |
|
| 3974 |
|
| 3975 |
#define CL_KHR_BYTE_ADDRESSABLE_STORE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 3976 |
|
| 3977 |
/*************************************************************** |
| 3978 |
* cl_khr_device_enqueue_local_arg_types |
| 3979 |
***************************************************************/ |
| 3980 |
#define cl_khr_device_enqueue_local_arg_types 1 |
| 3981 |
#define CL_KHR_DEVICE_ENQUEUE_LOCAL_ARG_TYPES_EXTENSION_NAME \ |
| 3982 |
"cl_khr_device_enqueue_local_arg_types" |
| 3983 |
|
| 3984 |
|
| 3985 |
#define CL_KHR_DEVICE_ENQUEUE_LOCAL_ARG_TYPES_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 3986 |
|
| 3987 |
/*************************************************************** |
| 3988 |
* cl_khr_expect_assume |
| 3989 |
***************************************************************/ |
| 3990 |
#define cl_khr_expect_assume 1 |
| 3991 |
#define CL_KHR_EXPECT_ASSUME_EXTENSION_NAME \ |
| 3992 |
"cl_khr_expect_assume" |
| 3993 |
|
| 3994 |
|
| 3995 |
#define CL_KHR_EXPECT_ASSUME_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 3996 |
|
| 3997 |
/*************************************************************** |
| 3998 |
* cl_khr_extended_async_copies |
| 3999 |
***************************************************************/ |
| 4000 |
#define cl_khr_extended_async_copies 1 |
| 4001 |
#define CL_KHR_EXTENDED_ASYNC_COPIES_EXTENSION_NAME \ |
| 4002 |
"cl_khr_extended_async_copies" |
| 4003 |
|
| 4004 |
|
| 4005 |
#define CL_KHR_EXTENDED_ASYNC_COPIES_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4006 |
|
| 4007 |
/*************************************************************** |
| 4008 |
* cl_khr_extended_bit_ops |
| 4009 |
***************************************************************/ |
| 4010 |
#define cl_khr_extended_bit_ops 1 |
| 4011 |
#define CL_KHR_EXTENDED_BIT_OPS_EXTENSION_NAME \ |
| 4012 |
"cl_khr_extended_bit_ops" |
| 4013 |
|
| 4014 |
|
| 4015 |
#define CL_KHR_EXTENDED_BIT_OPS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4016 |
|
| 4017 |
/*************************************************************** |
| 4018 |
* cl_khr_external_memory_android_hardware_buffer (beta) |
| 4019 |
***************************************************************/ |
| 4020 |
#if defined(CL_ENABLE_BETA_EXTENSIONS) |
| 4021 |
|
| 4022 |
#define cl_khr_external_memory_android_hardware_buffer 1 |
| 4023 |
#define CL_KHR_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_NAME \ |
| 4024 |
"cl_khr_external_memory_android_hardware_buffer" |
| 4025 |
|
| 4026 |
|
| 4027 |
#define CL_KHR_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 2) |
| 4028 |
|
| 4029 |
/* cl_external_memory_handle_type_khr */ |
| 4030 |
#define CL_EXTERNAL_MEMORY_HANDLE_ANDROID_HARDWARE_BUFFER_KHR 0x2070 |
| 4031 |
|
| 4032 |
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */ |
| 4033 |
|
| 4034 |
/*************************************************************** |
| 4035 |
* cl_khr_global_int32_base_atomics |
| 4036 |
***************************************************************/ |
| 4037 |
#define cl_khr_global_int32_base_atomics 1 |
| 4038 |
#define CL_KHR_GLOBAL_INT32_BASE_ATOMICS_EXTENSION_NAME \ |
| 4039 |
"cl_khr_global_int32_base_atomics" |
| 4040 |
|
| 4041 |
|
| 4042 |
#define CL_KHR_GLOBAL_INT32_BASE_ATOMICS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4043 |
|
| 4044 |
/*************************************************************** |
| 4045 |
* cl_khr_global_int32_extended_atomics |
| 4046 |
***************************************************************/ |
| 4047 |
#define cl_khr_global_int32_extended_atomics 1 |
| 4048 |
#define CL_KHR_GLOBAL_INT32_EXTENDED_ATOMICS_EXTENSION_NAME \ |
| 4049 |
"cl_khr_global_int32_extended_atomics" |
| 4050 |
|
| 4051 |
|
| 4052 |
#define CL_KHR_GLOBAL_INT32_EXTENDED_ATOMICS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4053 |
|
| 4054 |
/*************************************************************** |
| 4055 |
* cl_khr_int64_base_atomics |
| 4056 |
***************************************************************/ |
| 4057 |
#define cl_khr_int64_base_atomics 1 |
| 4058 |
#define CL_KHR_INT64_BASE_ATOMICS_EXTENSION_NAME \ |
| 4059 |
"cl_khr_int64_base_atomics" |
| 4060 |
|
| 4061 |
|
| 4062 |
#define CL_KHR_INT64_BASE_ATOMICS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4063 |
|
| 4064 |
/*************************************************************** |
| 4065 |
* cl_khr_int64_extended_atomics |
| 4066 |
***************************************************************/ |
| 4067 |
#define cl_khr_int64_extended_atomics 1 |
| 4068 |
#define CL_KHR_INT64_EXTENDED_ATOMICS_EXTENSION_NAME \ |
| 4069 |
"cl_khr_int64_extended_atomics" |
| 4070 |
|
| 4071 |
|
| 4072 |
#define CL_KHR_INT64_EXTENDED_ATOMICS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4073 |
|
| 4074 |
/*************************************************************** |
| 4075 |
* cl_khr_kernel_clock |
| 4076 |
***************************************************************/ |
| 4077 |
#define cl_khr_kernel_clock 1 |
| 4078 |
#define CL_KHR_KERNEL_CLOCK_EXTENSION_NAME \ |
| 4079 |
"cl_khr_kernel_clock" |
| 4080 |
|
| 4081 |
|
| 4082 |
#define CL_KHR_KERNEL_CLOCK_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4083 |
|
| 4084 |
/* cl_device_info */ |
| 4085 |
#define CL_DEVICE_KERNEL_CLOCK_CAPABILITIES_KHR 0x1076 |
| 4086 |
|
| 4087 |
typedef cl_bitfield cl_device_kernel_clock_capabilities_khr; |
| 4088 |
|
| 4089 |
/* cl_device_kernel_clock_capabilities_khr */ |
| 4090 |
#define CL_DEVICE_KERNEL_CLOCK_SCOPE_DEVICE_KHR (1 << 0) |
| 4091 |
#define CL_DEVICE_KERNEL_CLOCK_SCOPE_WORK_GROUP_KHR (1 << 1) |
| 4092 |
#define CL_DEVICE_KERNEL_CLOCK_SCOPE_SUB_GROUP_KHR (1 << 2) |
| 4093 |
|
| 4094 |
/*************************************************************** |
| 4095 |
* cl_khr_local_int32_base_atomics |
| 4096 |
***************************************************************/ |
| 4097 |
#define cl_khr_local_int32_base_atomics 1 |
| 4098 |
#define CL_KHR_LOCAL_INT32_BASE_ATOMICS_EXTENSION_NAME \ |
| 4099 |
"cl_khr_local_int32_base_atomics" |
| 4100 |
|
| 4101 |
|
| 4102 |
#define CL_KHR_LOCAL_INT32_BASE_ATOMICS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4103 |
|
| 4104 |
/*************************************************************** |
| 4105 |
* cl_khr_local_int32_extended_atomics |
| 4106 |
***************************************************************/ |
| 4107 |
#define cl_khr_local_int32_extended_atomics 1 |
| 4108 |
#define CL_KHR_LOCAL_INT32_EXTENDED_ATOMICS_EXTENSION_NAME \ |
| 4109 |
"cl_khr_local_int32_extended_atomics" |
| 4110 |
|
| 4111 |
|
| 4112 |
#define CL_KHR_LOCAL_INT32_EXTENDED_ATOMICS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4113 |
|
| 4114 |
/*************************************************************** |
| 4115 |
* cl_khr_mipmap_image_writes |
| 4116 |
***************************************************************/ |
| 4117 |
#define cl_khr_mipmap_image_writes 1 |
| 4118 |
#define CL_KHR_MIPMAP_IMAGE_WRITES_EXTENSION_NAME \ |
| 4119 |
"cl_khr_mipmap_image_writes" |
| 4120 |
|
| 4121 |
|
| 4122 |
#define CL_KHR_MIPMAP_IMAGE_WRITES_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4123 |
|
| 4124 |
/*************************************************************** |
| 4125 |
* cl_khr_select_fprounding_mode |
| 4126 |
***************************************************************/ |
| 4127 |
#define cl_khr_select_fprounding_mode 1 |
| 4128 |
#define CL_KHR_SELECT_FPROUNDING_MODE_EXTENSION_NAME \ |
| 4129 |
"cl_khr_select_fprounding_mode" |
| 4130 |
|
| 4131 |
|
| 4132 |
#define CL_KHR_SELECT_FPROUNDING_MODE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4133 |
|
| 4134 |
/*************************************************************** |
| 4135 |
* cl_khr_spirv_extended_debug_info |
| 4136 |
***************************************************************/ |
| 4137 |
#define cl_khr_spirv_extended_debug_info 1 |
| 4138 |
#define CL_KHR_SPIRV_EXTENDED_DEBUG_INFO_EXTENSION_NAME \ |
| 4139 |
"cl_khr_spirv_extended_debug_info" |
| 4140 |
|
| 4141 |
|
| 4142 |
#define CL_KHR_SPIRV_EXTENDED_DEBUG_INFO_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4143 |
|
| 4144 |
/*************************************************************** |
| 4145 |
* cl_khr_spirv_linkonce_odr |
| 4146 |
***************************************************************/ |
| 4147 |
#define cl_khr_spirv_linkonce_odr 1 |
| 4148 |
#define CL_KHR_SPIRV_LINKONCE_ODR_EXTENSION_NAME \ |
| 4149 |
"cl_khr_spirv_linkonce_odr" |
| 4150 |
|
| 4151 |
|
| 4152 |
#define CL_KHR_SPIRV_LINKONCE_ODR_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4153 |
|
| 4154 |
/*************************************************************** |
| 4155 |
* cl_khr_spirv_no_integer_wrap_decoration |
| 4156 |
***************************************************************/ |
| 4157 |
#define cl_khr_spirv_no_integer_wrap_decoration 1 |
| 4158 |
#define CL_KHR_SPIRV_NO_INTEGER_WRAP_DECORATION_EXTENSION_NAME \ |
| 4159 |
"cl_khr_spirv_no_integer_wrap_decoration" |
| 4160 |
|
| 4161 |
|
| 4162 |
#define CL_KHR_SPIRV_NO_INTEGER_WRAP_DECORATION_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4163 |
|
| 4164 |
/*************************************************************** |
| 4165 |
* cl_khr_spirv_queries |
| 4166 |
***************************************************************/ |
| 4167 |
#define cl_khr_spirv_queries 1 |
| 4168 |
#define CL_KHR_SPIRV_QUERIES_EXTENSION_NAME \ |
| 4169 |
"cl_khr_spirv_queries" |
| 4170 |
|
| 4171 |
|
| 4172 |
#define CL_KHR_SPIRV_QUERIES_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4173 |
|
| 4174 |
/* cl_device_info */ |
| 4175 |
#define CL_DEVICE_SPIRV_EXTENDED_INSTRUCTION_SETS_KHR 0x12B9 |
| 4176 |
#define CL_DEVICE_SPIRV_EXTENSIONS_KHR 0x12BA |
| 4177 |
#define CL_DEVICE_SPIRV_CAPABILITIES_KHR 0x12BB |
| 4178 |
|
| 4179 |
/*************************************************************** |
| 4180 |
* cl_khr_srgb_image_writes |
| 4181 |
***************************************************************/ |
| 4182 |
#define cl_khr_srgb_image_writes 1 |
| 4183 |
#define CL_KHR_SRGB_IMAGE_WRITES_EXTENSION_NAME \ |
| 4184 |
"cl_khr_srgb_image_writes" |
| 4185 |
|
| 4186 |
|
| 4187 |
#define CL_KHR_SRGB_IMAGE_WRITES_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4188 |
|
| 4189 |
/*************************************************************** |
| 4190 |
* cl_khr_subgroup_ballot |
| 4191 |
***************************************************************/ |
| 4192 |
#define cl_khr_subgroup_ballot 1 |
| 4193 |
#define CL_KHR_SUBGROUP_BALLOT_EXTENSION_NAME \ |
| 4194 |
"cl_khr_subgroup_ballot" |
| 4195 |
|
| 4196 |
|
| 4197 |
#define CL_KHR_SUBGROUP_BALLOT_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4198 |
|
| 4199 |
/*************************************************************** |
| 4200 |
* cl_khr_subgroup_clustered_reduce |
| 4201 |
***************************************************************/ |
| 4202 |
#define cl_khr_subgroup_clustered_reduce 1 |
| 4203 |
#define CL_KHR_SUBGROUP_CLUSTERED_REDUCE_EXTENSION_NAME \ |
| 4204 |
"cl_khr_subgroup_clustered_reduce" |
| 4205 |
|
| 4206 |
|
| 4207 |
#define CL_KHR_SUBGROUP_CLUSTERED_REDUCE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4208 |
|
| 4209 |
/*************************************************************** |
| 4210 |
* cl_khr_subgroup_extended_types |
| 4211 |
***************************************************************/ |
| 4212 |
#define cl_khr_subgroup_extended_types 1 |
| 4213 |
#define CL_KHR_SUBGROUP_EXTENDED_TYPES_EXTENSION_NAME \ |
| 4214 |
"cl_khr_subgroup_extended_types" |
| 4215 |
|
| 4216 |
|
| 4217 |
#define CL_KHR_SUBGROUP_EXTENDED_TYPES_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4218 |
|
| 4219 |
/*************************************************************** |
| 4220 |
* cl_khr_subgroup_non_uniform_arithmetic |
| 4221 |
***************************************************************/ |
| 4222 |
#define cl_khr_subgroup_non_uniform_arithmetic 1 |
| 4223 |
#define CL_KHR_SUBGROUP_NON_UNIFORM_ARITHMETIC_EXTENSION_NAME \ |
| 4224 |
"cl_khr_subgroup_non_uniform_arithmetic" |
| 4225 |
|
| 4226 |
|
| 4227 |
#define CL_KHR_SUBGROUP_NON_UNIFORM_ARITHMETIC_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4228 |
|
| 4229 |
/*************************************************************** |
| 4230 |
* cl_khr_subgroup_non_uniform_vote |
| 4231 |
***************************************************************/ |
| 4232 |
#define cl_khr_subgroup_non_uniform_vote 1 |
| 4233 |
#define CL_KHR_SUBGROUP_NON_UNIFORM_VOTE_EXTENSION_NAME \ |
| 4234 |
"cl_khr_subgroup_non_uniform_vote" |
| 4235 |
|
| 4236 |
|
| 4237 |
#define CL_KHR_SUBGROUP_NON_UNIFORM_VOTE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4238 |
|
| 4239 |
/*************************************************************** |
| 4240 |
* cl_khr_subgroup_rotate |
| 4241 |
***************************************************************/ |
| 4242 |
#define cl_khr_subgroup_rotate 1 |
| 4243 |
#define CL_KHR_SUBGROUP_ROTATE_EXTENSION_NAME \ |
| 4244 |
"cl_khr_subgroup_rotate" |
| 4245 |
|
| 4246 |
|
| 4247 |
#define CL_KHR_SUBGROUP_ROTATE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4248 |
|
| 4249 |
/*************************************************************** |
| 4250 |
* cl_khr_subgroup_shuffle |
| 4251 |
***************************************************************/ |
| 4252 |
#define cl_khr_subgroup_shuffle 1 |
| 4253 |
#define CL_KHR_SUBGROUP_SHUFFLE_EXTENSION_NAME \ |
| 4254 |
"cl_khr_subgroup_shuffle" |
| 4255 |
|
| 4256 |
|
| 4257 |
#define CL_KHR_SUBGROUP_SHUFFLE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4258 |
|
| 4259 |
/*************************************************************** |
| 4260 |
* cl_khr_subgroup_shuffle_relative |
| 4261 |
***************************************************************/ |
| 4262 |
#define cl_khr_subgroup_shuffle_relative 1 |
| 4263 |
#define CL_KHR_SUBGROUP_SHUFFLE_RELATIVE_EXTENSION_NAME \ |
| 4264 |
"cl_khr_subgroup_shuffle_relative" |
| 4265 |
|
| 4266 |
|
| 4267 |
#define CL_KHR_SUBGROUP_SHUFFLE_RELATIVE_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4268 |
|
| 4269 |
/*************************************************************** |
| 4270 |
* cl_khr_unified_svm (beta) |
| 4271 |
***************************************************************/ |
| 4272 |
#if defined(CL_ENABLE_BETA_EXTENSIONS) |
| 4273 |
|
| 4274 |
#if defined(CL_VERSION_2_0) |
| 4275 |
|
| 4276 |
#define cl_khr_unified_svm 1 |
| 4277 |
#define CL_KHR_UNIFIED_SVM_EXTENSION_NAME \ |
| 4278 |
"cl_khr_unified_svm" |
| 4279 |
|
| 4280 |
|
| 4281 |
#define CL_KHR_UNIFIED_SVM_EXTENSION_VERSION CL_MAKE_VERSION(0, 9, 0) |
| 4282 |
|
| 4283 |
/* cl_platform_info */ |
| 4284 |
#define CL_PLATFORM_SVM_TYPE_CAPABILITIES_KHR 0x0909 |
| 4285 |
|
| 4286 |
/* cl_device_info */ |
| 4287 |
#define CL_DEVICE_SVM_TYPE_CAPABILITIES_KHR 0x1077 |
| 4288 |
|
| 4289 |
typedef cl_bitfield cl_svm_capabilities_khr; |
| 4290 |
|
| 4291 |
/* cl_svm_capabilities_khr - bitfield */ |
| 4292 |
#define CL_SVM_CAPABILITY_SINGLE_ADDRESS_SPACE_KHR (1 << 0) |
| 4293 |
#define CL_SVM_CAPABILITY_SYSTEM_ALLOCATED_KHR (1 << 1) |
| 4294 |
#define CL_SVM_CAPABILITY_DEVICE_OWNED_KHR (1 << 2) |
| 4295 |
#define CL_SVM_CAPABILITY_DEVICE_UNASSOCIATED_KHR (1 << 3) |
| 4296 |
#define CL_SVM_CAPABILITY_CONTEXT_ACCESS_KHR (1 << 4) |
| 4297 |
#define CL_SVM_CAPABILITY_HOST_OWNED_KHR (1 << 5) |
| 4298 |
#define CL_SVM_CAPABILITY_HOST_READ_KHR (1 << 6) |
| 4299 |
#define CL_SVM_CAPABILITY_HOST_WRITE_KHR (1 << 7) |
| 4300 |
#define CL_SVM_CAPABILITY_HOST_MAP_KHR (1 << 8) |
| 4301 |
#define CL_SVM_CAPABILITY_DEVICE_READ_KHR (1 << 9) |
| 4302 |
#define CL_SVM_CAPABILITY_DEVICE_WRITE_KHR (1 << 10) |
| 4303 |
#define CL_SVM_CAPABILITY_DEVICE_ATOMIC_ACCESS_KHR (1 << 11) |
| 4304 |
#define CL_SVM_CAPABILITY_CONCURRENT_ACCESS_KHR (1 << 12) |
| 4305 |
#define CL_SVM_CAPABILITY_CONCURRENT_ATOMIC_ACCESS_KHR (1 << 13) |
| 4306 |
#define CL_SVM_CAPABILITY_INDIRECT_ACCESS_KHR (1 << 14) |
| 4307 |
|
| 4308 |
typedef cl_properties cl_svm_alloc_properties_khr; |
| 4309 |
typedef cl_bitfield cl_svm_alloc_access_flags_khr; |
| 4310 |
typedef cl_properties cl_svm_free_properties_khr; |
| 4311 |
typedef cl_bitfield cl_svm_free_flags_khr; |
| 4312 |
typedef cl_uint cl_svm_pointer_info_khr; |
| 4313 |
|
| 4314 |
/* cl_svm_alloc_properties_khr */ |
| 4315 |
#define CL_SVM_ALLOC_ASSOCIATED_DEVICE_HANDLE_KHR 0x2078 |
| 4316 |
#define CL_SVM_ALLOC_ACCESS_FLAGS_KHR 0x2079 |
| 4317 |
#define CL_SVM_ALLOC_ALIGNMENT_KHR 0x207A |
| 4318 |
|
| 4319 |
/* cl_svm_alloc_access_flags_khr */ |
| 4320 |
#define CL_SVM_ALLOC_ACCESS_HOST_NOREAD_KHR (1 << 0) |
| 4321 |
#define CL_SVM_ALLOC_ACCESS_HOST_NOWRITE_KHR (1 << 1) |
| 4322 |
#define CL_SVM_ALLOC_ACCESS_DEVICE_NOREAD_KHR (1 << 8) |
| 4323 |
#define CL_SVM_ALLOC_ACCESS_DEVICE_NOWRITE_KHR (1 << 9) |
| 4324 |
|
| 4325 |
/* cl_svm_pointer_info_khr */ |
| 4326 |
#define CL_SVM_INFO_TYPE_INDEX_KHR 0x2088 |
| 4327 |
#define CL_SVM_INFO_CAPABILITIES_KHR 0x2089 |
| 4328 |
#define CL_SVM_INFO_PROPERTIES_KHR 0x208A |
| 4329 |
#define CL_SVM_INFO_ACCESS_FLAGS_KHR 0x208B |
| 4330 |
#define CL_SVM_INFO_BASE_PTR_KHR 0x419B |
| 4331 |
#define CL_SVM_INFO_SIZE_KHR 0x419C |
| 4332 |
#define CL_SVM_INFO_ASSOCIATED_DEVICE_HANDLE_KHR 0x419D |
| 4333 |
|
| 4334 |
/* cl_kernel_exec_info */ |
| 4335 |
#define CL_KERNEL_EXEC_INFO_SVM_INDIRECT_ACCESS_KHR 0x11BB |
| 4336 |
|
| 4337 |
/* SVM type convenience macros */ |
| 4338 |
#define CL_SVM_TYPE_MACRO_COARSE_GRAIN_BUFFER_KHR \ |
| 4339 |
(CL_SVM_CAPABILITY_SINGLE_ADDRESS_SPACE_KHR | \ |
| 4340 |
CL_SVM_CAPABILITY_DEVICE_UNASSOCIATED_KHR | \ |
| 4341 |
CL_SVM_CAPABILITY_CONTEXT_ACCESS_KHR | \ |
| 4342 |
CL_SVM_CAPABILITY_HOST_MAP_KHR | \ |
| 4343 |
CL_SVM_CAPABILITY_DEVICE_READ_KHR | \ |
| 4344 |
CL_SVM_CAPABILITY_DEVICE_WRITE_KHR | \ |
| 4345 |
CL_SVM_CAPABILITY_DEVICE_ATOMIC_ACCESS_KHR) |
| 4346 |
#define CL_SVM_TYPE_MACRO_FINE_GRAIN_BUFFER_KHR \ |
| 4347 |
(CL_SVM_CAPABILITY_SINGLE_ADDRESS_SPACE_KHR | \ |
| 4348 |
CL_SVM_CAPABILITY_DEVICE_UNASSOCIATED_KHR | \ |
| 4349 |
CL_SVM_CAPABILITY_CONTEXT_ACCESS_KHR | \ |
| 4350 |
CL_SVM_CAPABILITY_HOST_READ_KHR | \ |
| 4351 |
CL_SVM_CAPABILITY_HOST_WRITE_KHR | \ |
| 4352 |
CL_SVM_CAPABILITY_HOST_MAP_KHR | \ |
| 4353 |
CL_SVM_CAPABILITY_DEVICE_READ_KHR | \ |
| 4354 |
CL_SVM_CAPABILITY_DEVICE_WRITE_KHR | \ |
| 4355 |
CL_SVM_CAPABILITY_DEVICE_ATOMIC_ACCESS_KHR | \ |
| 4356 |
CL_SVM_CAPABILITY_CONCURRENT_ACCESS_KHR) |
| 4357 |
#define CL_SVM_TYPE_MACRO_DEVICE_KHR \ |
| 4358 |
(CL_SVM_CAPABILITY_SINGLE_ADDRESS_SPACE_KHR | \ |
| 4359 |
CL_SVM_CAPABILITY_DEVICE_OWNED_KHR | \ |
| 4360 |
CL_SVM_CAPABILITY_DEVICE_READ_KHR | \ |
| 4361 |
CL_SVM_CAPABILITY_DEVICE_WRITE_KHR | \ |
| 4362 |
CL_SVM_CAPABILITY_DEVICE_ATOMIC_ACCESS_KHR | \ |
| 4363 |
CL_SVM_CAPABILITY_INDIRECT_ACCESS_KHR) |
| 4364 |
#define CL_SVM_TYPE_MACRO_HOST_KHR \ |
| 4365 |
(CL_SVM_CAPABILITY_SINGLE_ADDRESS_SPACE_KHR | \ |
| 4366 |
CL_SVM_CAPABILITY_DEVICE_UNASSOCIATED_KHR | \ |
| 4367 |
CL_SVM_CAPABILITY_CONTEXT_ACCESS_KHR | \ |
| 4368 |
CL_SVM_CAPABILITY_HOST_OWNED_KHR | \ |
| 4369 |
CL_SVM_CAPABILITY_HOST_READ_KHR | \ |
| 4370 |
CL_SVM_CAPABILITY_HOST_WRITE_KHR | \ |
| 4371 |
CL_SVM_CAPABILITY_DEVICE_READ_KHR | \ |
| 4372 |
CL_SVM_CAPABILITY_DEVICE_WRITE_KHR | \ |
| 4373 |
CL_SVM_CAPABILITY_INDIRECT_ACCESS_KHR) |
| 4374 |
#define CL_SVM_TYPE_MACRO_SINGLE_DEVICE_SHARED_KHR \ |
| 4375 |
(CL_SVM_CAPABILITY_SINGLE_ADDRESS_SPACE_KHR | \ |
| 4376 |
CL_SVM_CAPABILITY_HOST_READ_KHR | \ |
| 4377 |
CL_SVM_CAPABILITY_HOST_WRITE_KHR | \ |
| 4378 |
CL_SVM_CAPABILITY_DEVICE_READ_KHR | \ |
| 4379 |
CL_SVM_CAPABILITY_DEVICE_WRITE_KHR | \ |
| 4380 |
CL_SVM_CAPABILITY_INDIRECT_ACCESS_KHR) |
| 4381 |
#define CL_SVM_TYPE_MACRO_SYSTEM_KHR \ |
| 4382 |
(CL_SVM_CAPABILITY_SINGLE_ADDRESS_SPACE_KHR | \ |
| 4383 |
CL_SVM_CAPABILITY_SYSTEM_ALLOCATED_KHR | \ |
| 4384 |
CL_SVM_CAPABILITY_DEVICE_UNASSOCIATED_KHR | \ |
| 4385 |
CL_SVM_CAPABILITY_CONTEXT_ACCESS_KHR | \ |
| 4386 |
CL_SVM_CAPABILITY_HOST_READ_KHR | \ |
| 4387 |
CL_SVM_CAPABILITY_HOST_WRITE_KHR | \ |
| 4388 |
CL_SVM_CAPABILITY_HOST_MAP_KHR | \ |
| 4389 |
CL_SVM_CAPABILITY_DEVICE_READ_KHR | \ |
| 4390 |
CL_SVM_CAPABILITY_DEVICE_WRITE_KHR | \ |
| 4391 |
CL_SVM_CAPABILITY_DEVICE_ATOMIC_ACCESS_KHR | \ |
| 4392 |
CL_SVM_CAPABILITY_CONCURRENT_ACCESS_KHR | \ |
| 4393 |
CL_SVM_CAPABILITY_CONCURRENT_ATOMIC_ACCESS_KHR | \ |
| 4394 |
CL_SVM_CAPABILITY_INDIRECT_ACCESS_KHR) |
| 4395 |
|
| 4396 |
|
| 4397 |
typedef void* CL_API_CALL |
| 4398 |
clSVMAllocWithPropertiesKHR_t( |
| 4399 |
cl_context context, |
| 4400 |
const cl_svm_alloc_properties_khr* properties, |
| 4401 |
cl_uint svm_type_index, |
| 4402 |
size_t size, |
| 4403 |
cl_int* errcode_ret); |
| 4404 |
|
| 4405 |
typedef clSVMAllocWithPropertiesKHR_t * |
| 4406 |
clSVMAllocWithPropertiesKHR_fn ; |
| 4407 |
|
| 4408 |
typedef cl_int CL_API_CALL |
| 4409 |
clSVMFreeWithPropertiesKHR_t( |
| 4410 |
cl_context context, |
| 4411 |
const cl_svm_free_properties_khr* properties, |
| 4412 |
cl_svm_free_flags_khr flags, |
| 4413 |
void* ptr); |
| 4414 |
|
| 4415 |
typedef clSVMFreeWithPropertiesKHR_t * |
| 4416 |
clSVMFreeWithPropertiesKHR_fn ; |
| 4417 |
|
| 4418 |
typedef cl_int CL_API_CALL |
| 4419 |
clGetSVMPointerInfoKHR_t( |
| 4420 |
cl_context context, |
| 4421 |
cl_device_id device, |
| 4422 |
const void* ptr, |
| 4423 |
cl_svm_pointer_info_khr param_name, |
| 4424 |
size_t param_value_size, |
| 4425 |
void* param_value, |
| 4426 |
size_t* param_value_size_ret); |
| 4427 |
|
| 4428 |
typedef clGetSVMPointerInfoKHR_t * |
| 4429 |
clGetSVMPointerInfoKHR_fn ; |
| 4430 |
|
| 4431 |
typedef cl_int CL_API_CALL |
| 4432 |
clGetSVMSuggestedTypeIndexKHR_t( |
| 4433 |
cl_context context, |
| 4434 |
cl_svm_capabilities_khr required_capabilities, |
| 4435 |
cl_svm_capabilities_khr desired_capabilities, |
| 4436 |
const cl_svm_alloc_properties_khr* properties, |
| 4437 |
size_t size, |
| 4438 |
cl_uint* suggested_svm_type_index); |
| 4439 |
|
| 4440 |
typedef clGetSVMSuggestedTypeIndexKHR_t * |
| 4441 |
clGetSVMSuggestedTypeIndexKHR_fn ; |
| 4442 |
|
| 4443 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 4444 |
|
| 4445 |
extern CL_API_ENTRY void* CL_API_CALL |
| 4446 |
clSVMAllocWithPropertiesKHR( |
| 4447 |
cl_context context, |
| 4448 |
const cl_svm_alloc_properties_khr* properties, |
| 4449 |
cl_uint svm_type_index, |
| 4450 |
size_t size, |
| 4451 |
cl_int* errcode_ret) ; |
| 4452 |
|
| 4453 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 4454 |
clSVMFreeWithPropertiesKHR( |
| 4455 |
cl_context context, |
| 4456 |
const cl_svm_free_properties_khr* properties, |
| 4457 |
cl_svm_free_flags_khr flags, |
| 4458 |
void* ptr) ; |
| 4459 |
|
| 4460 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 4461 |
clGetSVMPointerInfoKHR( |
| 4462 |
cl_context context, |
| 4463 |
cl_device_id device, |
| 4464 |
const void* ptr, |
| 4465 |
cl_svm_pointer_info_khr param_name, |
| 4466 |
size_t param_value_size, |
| 4467 |
void* param_value, |
| 4468 |
size_t* param_value_size_ret) ; |
| 4469 |
|
| 4470 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 4471 |
clGetSVMSuggestedTypeIndexKHR( |
| 4472 |
cl_context context, |
| 4473 |
cl_svm_capabilities_khr required_capabilities, |
| 4474 |
cl_svm_capabilities_khr desired_capabilities, |
| 4475 |
const cl_svm_alloc_properties_khr* properties, |
| 4476 |
size_t size, |
| 4477 |
cl_uint* suggested_svm_type_index) ; |
| 4478 |
|
| 4479 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 4480 |
|
| 4481 |
#endif /* defined(CL_VERSION_2_0) */ |
| 4482 |
|
| 4483 |
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */ |
| 4484 |
|
| 4485 |
/*************************************************************** |
| 4486 |
* cl_khr_work_group_uniform_arithmetic |
| 4487 |
***************************************************************/ |
| 4488 |
#define cl_khr_work_group_uniform_arithmetic 1 |
| 4489 |
#define CL_KHR_WORK_GROUP_UNIFORM_ARITHMETIC_EXTENSION_NAME \ |
| 4490 |
"cl_khr_work_group_uniform_arithmetic" |
| 4491 |
|
| 4492 |
|
| 4493 |
#define CL_KHR_WORK_GROUP_UNIFORM_ARITHMETIC_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4494 |
|
| 4495 |
/*************************************************************** |
| 4496 |
* cl_ext_buffer_device_address |
| 4497 |
***************************************************************/ |
| 4498 |
#define cl_ext_buffer_device_address 1 |
| 4499 |
#define CL_EXT_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME \ |
| 4500 |
"cl_ext_buffer_device_address" |
| 4501 |
|
| 4502 |
|
| 4503 |
#define CL_EXT_BUFFER_DEVICE_ADDRESS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 2) |
| 4504 |
|
| 4505 |
typedef cl_ulong cl_mem_device_address_ext; |
| 4506 |
|
| 4507 |
|
| 4508 |
typedef cl_int CL_API_CALL |
| 4509 |
clSetKernelArgDevicePointerEXT_t( |
| 4510 |
cl_kernel kernel, |
| 4511 |
cl_uint arg_index, |
| 4512 |
cl_mem_device_address_ext arg_value); |
| 4513 |
|
| 4514 |
typedef clSetKernelArgDevicePointerEXT_t * |
| 4515 |
clSetKernelArgDevicePointerEXT_fn CL_API_SUFFIX__VERSION_3_0; |
| 4516 |
|
| 4517 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 4518 |
|
| 4519 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 4520 |
clSetKernelArgDevicePointerEXT( |
| 4521 |
cl_kernel kernel, |
| 4522 |
cl_uint arg_index, |
| 4523 |
cl_mem_device_address_ext arg_value) CL_API_SUFFIX__VERSION_3_0; |
| 4524 |
|
| 4525 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 4526 |
|
| 4527 |
/* cl_mem_properties */ |
| 4528 |
#define CL_MEM_DEVICE_PRIVATE_ADDRESS_EXT 0x5000 |
| 4529 |
|
| 4530 |
/* cl_mem_info */ |
| 4531 |
#define CL_MEM_DEVICE_ADDRESS_EXT 0x5001 |
| 4532 |
|
| 4533 |
/* cl_kernel_exec_info */ |
| 4534 |
#define CL_KERNEL_EXEC_INFO_DEVICE_PTRS_EXT 0x5002 |
| 4535 |
|
| 4536 |
/*************************************************************** |
| 4537 |
* cl_ext_image_unorm_int_2_101010 |
| 4538 |
***************************************************************/ |
| 4539 |
#define cl_ext_image_unorm_int_2_101010 1 |
| 4540 |
#define CL_EXT_IMAGE_UNORM_INT_2_101010_EXTENSION_NAME \ |
| 4541 |
"cl_ext_image_unorm_int_2_101010" |
| 4542 |
|
| 4543 |
|
| 4544 |
#define CL_EXT_IMAGE_UNORM_INT_2_101010_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4545 |
|
| 4546 |
/* cl_channel_type */ |
| 4547 |
#define CL_UNORM_INT_2_101010_EXT 0x10E5 |
| 4548 |
|
| 4549 |
/*************************************************************** |
| 4550 |
* cl_ext_image_unsigned_10x6_12x4_14x2 |
| 4551 |
***************************************************************/ |
| 4552 |
#define cl_ext_image_unsigned_10x6_12x4_14x2 1 |
| 4553 |
#define CL_EXT_IMAGE_UNSIGNED_10X6_12X4_14X2_EXTENSION_NAME \ |
| 4554 |
"cl_ext_image_unsigned_10x6_12x4_14x2" |
| 4555 |
|
| 4556 |
|
| 4557 |
#define CL_EXT_IMAGE_UNSIGNED_10X6_12X4_14X2_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4558 |
|
| 4559 |
/* cl_channel_type */ |
| 4560 |
#define CL_UNSIGNED_INT10X6_EXT 0x10E6 |
| 4561 |
#define CL_UNSIGNED_INT12X4_EXT 0x10E7 |
| 4562 |
#define CL_UNSIGNED_INT14X2_EXT 0x10E8 |
| 4563 |
#define CL_UNORM_INT10X6_EXT 0x10E1 |
| 4564 |
#define CL_UNORM_INT12X4_EXT 0x10E9 |
| 4565 |
#define CL_UNORM_INT14X2_EXT 0x10EA |
| 4566 |
|
| 4567 |
/*************************************************************** |
| 4568 |
* cl_ext_immutable_memory_objects |
| 4569 |
***************************************************************/ |
| 4570 |
#define cl_ext_immutable_memory_objects 1 |
| 4571 |
#define CL_EXT_IMMUTABLE_MEMORY_OBJECTS_EXTENSION_NAME \ |
| 4572 |
"cl_ext_immutable_memory_objects" |
| 4573 |
|
| 4574 |
|
| 4575 |
#define CL_EXT_IMMUTABLE_MEMORY_OBJECTS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4576 |
|
| 4577 |
/* cl_mem_flags */ |
| 4578 |
#define CL_MEM_IMMUTABLE_EXT (1 << 6) |
| 4579 |
|
| 4580 |
/*************************************************************** |
| 4581 |
* cl_img_cancel_command |
| 4582 |
***************************************************************/ |
| 4583 |
#define cl_img_cancel_command 1 |
| 4584 |
#define CL_IMG_CANCEL_COMMAND_EXTENSION_NAME \ |
| 4585 |
"cl_img_cancel_command" |
| 4586 |
|
| 4587 |
|
| 4588 |
#define CL_IMG_CANCEL_COMMAND_EXTENSION_VERSION CL_MAKE_VERSION(0, 0, 0) |
| 4589 |
|
| 4590 |
/* Error codes */ |
| 4591 |
#define CL_CANCELLED_IMG -1126 |
| 4592 |
|
| 4593 |
|
| 4594 |
typedef cl_int CL_API_CALL |
| 4595 |
clCancelCommandsIMG_t( |
| 4596 |
const cl_event* event_list, |
| 4597 |
size_t num_events_in_list); |
| 4598 |
|
| 4599 |
typedef clCancelCommandsIMG_t * |
| 4600 |
clCancelCommandsIMG_fn ; |
| 4601 |
|
| 4602 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 4603 |
|
| 4604 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 4605 |
clCancelCommandsIMG( |
| 4606 |
const cl_event* event_list, |
| 4607 |
size_t num_events_in_list) ; |
| 4608 |
|
| 4609 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 4610 |
|
| 4611 |
/*************************************************************** |
| 4612 |
* cl_img_safety_mechanisms |
| 4613 |
***************************************************************/ |
| 4614 |
#define cl_img_safety_mechanisms 1 |
| 4615 |
#define CL_IMG_SAFETY_MECHANISMS_EXTENSION_NAME \ |
| 4616 |
"cl_img_safety_mechanisms" |
| 4617 |
|
| 4618 |
|
| 4619 |
#define CL_IMG_SAFETY_MECHANISMS_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0) |
| 4620 |
|
| 4621 |
/* cl_context_properties */ |
| 4622 |
#define CL_CONTEXT_SAFETY_PROPERTIES_IMG 0x40D9 |
| 4623 |
|
| 4624 |
/* Types */ |
| 4625 |
typedef cl_bitfield cl_context_safety_properties_img; |
| 4626 |
|
| 4627 |
/* cl_context_safety_properties_img */ |
| 4628 |
#define CL_CONTEXT_WORKGROUP_PROTECTION_IMG (1 << 0) |
| 4629 |
#define CL_CONTEXT_ENHANCED_EVENT_EXECUTION_STATUS_IMG (1 << 1) |
| 4630 |
|
| 4631 |
/* cl_device_info */ |
| 4632 |
#define CL_DEVICE_WORKGROUP_PROTECTION_SVM_CAPABILITIES_IMG 0x40DA |
| 4633 |
#define CL_DEVICE_WORKGROUP_PROTECTION_DEVICE_ENQUEUE_CAPABILITIES_IMG 0x40DB |
| 4634 |
#define CL_DEVICE_SAFETY_MEM_SIZE_IMG 0x40DC |
| 4635 |
|
| 4636 |
/* Error codes */ |
| 4637 |
#define CL_ECC_RECOVERED_IMG 0x40DD |
| 4638 |
#define CL_PAGE_FAULT_IMG -1127 |
| 4639 |
#define CL_SAFETY_FAULT_IMG -1128 |
| 4640 |
#define CL_GENERAL_FAULT_IMG -1129 |
| 4641 |
#define CL_ECC_UNRECOVERED_IMG -1130 |
| 4642 |
|
| 4643 |
/*************************************************************** |
| 4644 |
* cl_img_unified_svm_external_memory_dma_buf (beta) |
| 4645 |
***************************************************************/ |
| 4646 |
#if defined(CL_ENABLE_BETA_EXTENSIONS) |
| 4647 |
|
| 4648 |
#define cl_img_unified_svm_external_memory_dma_buf 1 |
| 4649 |
#define CL_IMG_UNIFIED_SVM_EXTERNAL_MEMORY_DMA_BUF_EXTENSION_NAME \ |
| 4650 |
"cl_img_unified_svm_external_memory_dma_buf" |
| 4651 |
|
| 4652 |
|
| 4653 |
#define CL_IMG_UNIFIED_SVM_EXTERNAL_MEMORY_DMA_BUF_EXTENSION_VERSION CL_MAKE_VERSION(1, 1, 0) |
| 4654 |
|
| 4655 |
/* cl_svm_alloc_properties_khr */ |
| 4656 |
#define CL_SVM_ALLOC_EXTERNAL_MEMORY_DMA_BUF_VIRTUAL_ADDRESS_IMG 0x4220 |
| 4657 |
#define CL_SVM_ALLOC_EXTERNAL_MEMORY_DMA_BUF_IMG 0x4221 |
| 4658 |
|
| 4659 |
#endif /* defined(CL_ENABLE_BETA_EXTENSIONS) */ |
| 4660 |
|
| 4661 |
/*************************************************************** |
| 4662 |
* cl_qcom_perf_hint |
| 4663 |
***************************************************************/ |
| 4664 |
#define cl_qcom_perf_hint 1 |
| 4665 |
#define CL_QCOM_PERF_HINT_EXTENSION_NAME \ |
| 4666 |
"cl_qcom_perf_hint" |
| 4667 |
|
| 4668 |
|
| 4669 |
#define CL_QCOM_PERF_HINT_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 5) |
| 4670 |
|
| 4671 |
typedef cl_uint cl_perf_hint_qcom; |
| 4672 |
|
| 4673 |
/* cl_perf_hint_qcom */ |
| 4674 |
#define CL_PERF_HINT_HIGH_QCOM 0x40C3 |
| 4675 |
#define CL_PERF_HINT_NORMAL_QCOM 0x40C4 |
| 4676 |
#define CL_PERF_HINT_LOW_QCOM 0x40C5 |
| 4677 |
|
| 4678 |
/* cl_context_info */ |
| 4679 |
#define CL_CONTEXT_PERF_HINT_QCOM 0x40C2 |
| 4680 |
|
| 4681 |
|
| 4682 |
typedef cl_int CL_API_CALL |
| 4683 |
clSetPerfHintQCOM_t( |
| 4684 |
cl_context context, |
| 4685 |
cl_perf_hint_qcom perf_hint); |
| 4686 |
|
| 4687 |
typedef clSetPerfHintQCOM_t * |
| 4688 |
clSetPerfHintQCOM_fn ; |
| 4689 |
|
| 4690 |
#if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) |
| 4691 |
|
| 4692 |
extern CL_API_ENTRY cl_int CL_API_CALL |
| 4693 |
clSetPerfHintQCOM( |
| 4694 |
cl_context context, |
| 4695 |
cl_perf_hint_qcom perf_hint) ; |
| 4696 |
|
| 4697 |
#endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ |
| 4698 |
|
| 4699 |
#ifdef __cplusplus |
| 4700 |
} |
| 4701 |
#endif |
| 4702 |
|
| 4703 |
#endif /* OPENCL_CL_EXT_H_ */ |