137
137
* cl_khr_initalize_memory extension *
138
138
*************************************/
140
#define CL_CONTEXT_MEMORY_INITIALIZE_KHR 0x200E
140
#define CL_CONTEXT_MEMORY_INITIALIZE_KHR 0x2030
143
143
/**************************************
144
144
* cl_khr_terminate_context extension *
145
145
**************************************/
147
#define CL_DEVICE_TERMINATE_CAPABILITY_KHR 0x200F
148
#define CL_CONTEXT_TERMINATE_KHR 0x2010
147
#define CL_DEVICE_TERMINATE_CAPABILITY_KHR 0x2031
148
#define CL_CONTEXT_TERMINATE_KHR 0x2032
150
150
#define cl_khr_terminate_context 1
151
151
extern CL_API_ENTRY cl_int CL_API_CALL clTerminateContextKHR(cl_context /* context */) CL_EXT_SUFFIX__VERSION_1_2;
325
325
/* Legal values will be defined in layered extensions. */
326
326
cl_uint allocation_type;
328
/* Host cache policy for this external memory allocation. */
328
/* Host cache policy for this external memory allocation. */
329
329
cl_uint host_cache_policy;
331
331
} cl_mem_ext_host_ptr;
353
353
#endif /* CL_VERSION_1_1 */
356
#ifdef CL_VERSION_2_0
357
/*********************************
358
* cl_khr_sub_groups extension
359
*********************************/
360
#define cl_khr_sub_groups 1
362
typedef cl_uint cl_kernel_sub_group_info;
364
/* cl_khr_sub_group_info */
365
#define CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHR 0x2033
366
#define CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHR 0x2034
368
extern CL_API_ENTRY cl_int CL_API_CALL
369
clGetKernelSubGroupInfoKHR(cl_kernel /* in_kernel */,
370
cl_device_id /*in_device*/,
371
cl_kernel_sub_group_info /* param_name */,
372
size_t /*input_value_size*/,
373
const void * /*input_value*/,
374
size_t * /*param_value_size*/,
375
void* /*param_value*/,
376
size_t* /*param_value_size_ret*/ ) CL_EXT_SUFFIX__VERSION_2_0;
378
typedef CL_API_ENTRY cl_int
379
( CL_API_CALL * clGetKernelSubGroupInfoKHR_fn)(cl_kernel /* in_kernel */,
380
cl_device_id /*in_device*/,
381
cl_kernel_sub_group_info /* param_name */,
382
size_t /*input_value_size*/,
383
const void * /*input_value*/,
384
size_t * /*param_value_size*/,
385
void* /*param_value*/,
386
size_t* /*param_value_size_ret*/ ) CL_EXT_SUFFIX__VERSION_2_0;
387
#endif /* CL_VERSION_2_0 */
355
389
#ifdef __cplusplus