~ubuntu-branches/ubuntu/wily/khronos-opencl-headers/wily

« back to all changes in this revision

Viewing changes to cl_ext.h

  • Committer: Package Import Robot
  • Author(s): Andreas Beckmann
  • Date: 2015-04-27 17:42:50 UTC
  • mfrom: (14.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20150427174250-fao1wjg2wfpoz0rg
Tags: 2.0~svn28973-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
 * cl_khr_initalize_memory extension *
138
138
 *************************************/
139
139
    
140
 
#define CL_CONTEXT_MEMORY_INITIALIZE_KHR            0x200E
 
140
#define CL_CONTEXT_MEMORY_INITIALIZE_KHR            0x2030
141
141
    
142
142
    
143
143
/**************************************
144
144
 * cl_khr_terminate_context extension *
145
145
 **************************************/
146
146
    
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
149
149
 
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;
327
327
            
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;
330
330
 
331
331
} cl_mem_ext_host_ptr;
352
352
 
353
353
#endif /* CL_VERSION_1_1 */
354
354
 
 
355
 
 
356
#ifdef CL_VERSION_2_0
 
357
/*********************************
 
358
* cl_khr_sub_groups extension
 
359
*********************************/
 
360
#define cl_khr_sub_groups 1
 
361
 
 
362
typedef cl_uint  cl_kernel_sub_group_info;
 
363
 
 
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
 
367
 
 
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;
 
377
                                                   
 
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 */
 
388
 
355
389
#ifdef __cplusplus
356
390
}
357
391
#endif