134
134
* cl_khr_initalize_memory extension *
135
135
*************************************/
137
#define CL_CONTEXT_MEMORY_INITIALIZE_KHR 0x200E
137
#define CL_CONTEXT_MEMORY_INITIALIZE_KHR 0x2030
140
140
/**************************************
141
141
* cl_khr_terminate_context extension *
142
142
**************************************/
144
#define CL_DEVICE_TERMINATE_CAPABILITY_KHR 0x200F
145
#define CL_CONTEXT_TERMINATE_KHR 0x2010
144
#define CL_DEVICE_TERMINATE_CAPABILITY_KHR 0x2031
145
#define CL_CONTEXT_TERMINATE_KHR 0x2032
147
147
#define cl_khr_terminate_context 1
148
148
extern CL_API_ENTRY cl_int CL_API_CALL clTerminateContextKHR(cl_context /* context */) CL_EXT_SUFFIX__VERSION_1_2;
281
281
/* Legal values will be defined in layered extensions. */
282
282
cl_uint allocation_type;
284
/* Host cache policy for this external memory allocation. */
284
/* Host cache policy for this external memory allocation. */
285
285
cl_uint host_cache_policy;
287
287
} cl_mem_ext_host_ptr;
309
309
#endif /* CL_VERSION_1_1 */
312
#ifdef CL_VERSION_2_0
313
/*********************************
314
* cl_khr_sub_groups extension
315
*********************************/
316
#define cl_khr_sub_groups 1
318
typedef cl_uint cl_kernel_sub_group_info;
320
/* cl_khr_sub_group_info */
321
#define CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHR 0x2033
322
#define CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHR 0x2034
324
extern CL_API_ENTRY cl_int CL_API_CALL
325
clGetKernelSubGroupInfoKHR(cl_kernel /* in_kernel */,
326
cl_device_id /*in_device*/,
327
cl_kernel_sub_group_info /* param_name */,
328
size_t /*input_value_size*/,
329
const void * /*input_value*/,
330
size_t * /*param_value_size*/,
331
void* /*param_value*/,
332
size_t* /*param_value_size_ret*/ ) CL_EXT_SUFFIX__VERSION_2_0;
334
typedef CL_API_ENTRY cl_int
335
( CL_API_CALL * clGetKernelSubGroupInfoKHR_fn)(cl_kernel /* in_kernel */,
336
cl_device_id /*in_device*/,
337
cl_kernel_sub_group_info /* param_name */,
338
size_t /*input_value_size*/,
339
const void * /*input_value*/,
340
size_t * /*param_value_size*/,
341
void* /*param_value*/,
342
size_t* /*param_value_size_ret*/ ) CL_EXT_SUFFIX__VERSION_2_0;
343
#endif /* CL_VERSION_2_0 */
311
345
#ifdef __cplusplus