@@ -39,8 +39,9 @@ typedef struct _cl_command_buffer_khr* cl_command_buffer_khr;
3939typedef cl_uint cl_sync_point_khr ;
4040typedef cl_uint cl_command_buffer_info_khr ;
4141typedef cl_uint cl_command_buffer_state_khr ;
42- typedef cl_bitfield cl_command_buffer_properties_khr ;
43- typedef cl_bitfield cl_ndrange_kernel_command_properties_khr ;
42+ typedef cl_properties cl_command_buffer_properties_khr ;
43+ typedef cl_bitfield cl_command_buffer_flags_khr ;
44+ typedef cl_properties cl_ndrange_kernel_command_properties_khr ;
4445typedef struct _cl_mutable_command_khr * cl_mutable_command_khr ;
4546
4647/* cl_device_info */
@@ -54,7 +55,9 @@ typedef struct _cl_mutable_command_khr* cl_mutable_command_khr;
5455#define CL_COMMAND_BUFFER_CAPABILITY_OUT_OF_ORDER_KHR (1 << 3)
5556
5657/* cl_command_buffer_properties_khr */
57- #define CL_COMMAND_BUFFER_PROPERTIES_KHR 0x1293
58+ #define CL_COMMAND_BUFFER_FLAGS_KHR 0x1293
59+
60+ /* cl_command_buffer_flags_khr - bitfield */
5861#define CL_COMMAND_BUFFER_SIMULTANEOUS_USE_KHR (1 << 0)
5962
6063/* Error codes */
@@ -645,7 +648,7 @@ clGetSemaphoreHandleForTypeKHR_fn)(
645648 cl_external_semaphore_handle_type_khr handle_type ,
646649 size_t handle_size ,
647650 void * handle_ptr ,
648- size_t * handle_size_ret ) CL_API_SUFFIX__VERSION_3_0 ;
651+ size_t * handle_size_ret ) CL_API_SUFFIX__VERSION_1_2 ;
649652
650653#ifndef CL_NO_PROTOTYPES
651654
@@ -656,7 +659,7 @@ clGetSemaphoreHandleForTypeKHR(
656659 cl_external_semaphore_handle_type_khr handle_type ,
657660 size_t handle_size ,
658661 void * handle_ptr ,
659- size_t * handle_size_ret ) CL_API_SUFFIX__VERSION_3_0 ;
662+ size_t * handle_size_ret ) CL_API_SUFFIX__VERSION_1_2 ;
660663
661664#endif /* CL_NO_PROTOTYPES */
662665
@@ -925,7 +928,7 @@ typedef cl_semaphore_khr (CL_API_CALL *
925928clCreateSemaphoreWithPropertiesKHR_fn )(
926929 cl_context context ,
927930 const cl_semaphore_properties_khr * sema_props ,
928- cl_int * errcode_ret ) CL_API_SUFFIX__VERSION_3_0 ;
931+ cl_int * errcode_ret ) CL_API_SUFFIX__VERSION_1_2 ;
929932
930933typedef cl_int (CL_API_CALL *
931934clEnqueueWaitSemaphoresKHR_fn )(
@@ -935,7 +938,7 @@ clEnqueueWaitSemaphoresKHR_fn)(
935938 const cl_semaphore_payload_khr * sema_payload_list ,
936939 cl_uint num_events_in_wait_list ,
937940 const cl_event * event_wait_list ,
938- cl_event * event ) CL_API_SUFFIX__VERSION_3_0 ;
941+ cl_event * event ) CL_API_SUFFIX__VERSION_1_2 ;
939942
940943typedef cl_int (CL_API_CALL *
941944clEnqueueSignalSemaphoresKHR_fn )(
@@ -945,31 +948,31 @@ clEnqueueSignalSemaphoresKHR_fn)(
945948 const cl_semaphore_payload_khr * sema_payload_list ,
946949 cl_uint num_events_in_wait_list ,
947950 const cl_event * event_wait_list ,
948- cl_event * event ) CL_API_SUFFIX__VERSION_3_0 ;
951+ cl_event * event ) CL_API_SUFFIX__VERSION_1_2 ;
949952
950953typedef cl_int (CL_API_CALL *
951954clGetSemaphoreInfoKHR_fn )(
952955 cl_semaphore_khr sema_object ,
953956 cl_semaphore_info_khr param_name ,
954957 size_t param_value_size ,
955958 void * param_value ,
956- size_t * param_value_size_ret ) CL_API_SUFFIX__VERSION_3_0 ;
959+ size_t * param_value_size_ret ) CL_API_SUFFIX__VERSION_1_2 ;
957960
958961typedef cl_int (CL_API_CALL *
959962clReleaseSemaphoreKHR_fn )(
960- cl_semaphore_khr sema_object ) CL_API_SUFFIX__VERSION_3_0 ;
963+ cl_semaphore_khr sema_object ) CL_API_SUFFIX__VERSION_1_2 ;
961964
962965typedef cl_int (CL_API_CALL *
963966clRetainSemaphoreKHR_fn )(
964- cl_semaphore_khr sema_object ) CL_API_SUFFIX__VERSION_3_0 ;
967+ cl_semaphore_khr sema_object ) CL_API_SUFFIX__VERSION_1_2 ;
965968
966969#ifndef CL_NO_PROTOTYPES
967970
968971extern CL_API_ENTRY cl_semaphore_khr CL_API_CALL
969972clCreateSemaphoreWithPropertiesKHR (
970973 cl_context context ,
971974 const cl_semaphore_properties_khr * sema_props ,
972- cl_int * errcode_ret ) CL_API_SUFFIX__VERSION_3_0 ;
975+ cl_int * errcode_ret ) CL_API_SUFFIX__VERSION_1_2 ;
973976
974977extern CL_API_ENTRY cl_int CL_API_CALL
975978clEnqueueWaitSemaphoresKHR (
@@ -979,7 +982,7 @@ clEnqueueWaitSemaphoresKHR(
979982 const cl_semaphore_payload_khr * sema_payload_list ,
980983 cl_uint num_events_in_wait_list ,
981984 const cl_event * event_wait_list ,
982- cl_event * event ) CL_API_SUFFIX__VERSION_3_0 ;
985+ cl_event * event ) CL_API_SUFFIX__VERSION_1_2 ;
983986
984987extern CL_API_ENTRY cl_int CL_API_CALL
985988clEnqueueSignalSemaphoresKHR (
@@ -989,23 +992,23 @@ clEnqueueSignalSemaphoresKHR(
989992 const cl_semaphore_payload_khr * sema_payload_list ,
990993 cl_uint num_events_in_wait_list ,
991994 const cl_event * event_wait_list ,
992- cl_event * event ) CL_API_SUFFIX__VERSION_3_0 ;
995+ cl_event * event ) CL_API_SUFFIX__VERSION_1_2 ;
993996
994997extern CL_API_ENTRY cl_int CL_API_CALL
995998clGetSemaphoreInfoKHR (
996999 cl_semaphore_khr sema_object ,
9971000 cl_semaphore_info_khr param_name ,
9981001 size_t param_value_size ,
9991002 void * param_value ,
1000- size_t * param_value_size_ret ) CL_API_SUFFIX__VERSION_3_0 ;
1003+ size_t * param_value_size_ret ) CL_API_SUFFIX__VERSION_1_2 ;
10011004
10021005extern CL_API_ENTRY cl_int CL_API_CALL
10031006clReleaseSemaphoreKHR (
1004- cl_semaphore_khr sema_object ) CL_API_SUFFIX__VERSION_3_0 ;
1007+ cl_semaphore_khr sema_object ) CL_API_SUFFIX__VERSION_1_2 ;
10051008
10061009extern CL_API_ENTRY cl_int CL_API_CALL
10071010clRetainSemaphoreKHR (
1008- cl_semaphore_khr sema_object ) CL_API_SUFFIX__VERSION_3_0 ;
1011+ cl_semaphore_khr sema_object ) CL_API_SUFFIX__VERSION_1_2 ;
10091012
10101013#endif /* CL_NO_PROTOTYPES */
10111014
@@ -2270,6 +2273,16 @@ typedef cl_uint cl_diagnostics_verbose_level;
22702273/* cl_egl_image_properties_khr */
22712274#define CL_EGL_YUV_PLANE_INTEL 0x4107
22722275
2276+ /***************************************************************
2277+ * cl_intel_exec_by_local_thread
2278+ ***************************************************************/
2279+ #define cl_intel_exec_by_local_thread 1
2280+ #define CL_INTEL_EXEC_BY_LOCAL_THREAD_EXTENSION_NAME \
2281+ "cl_intel_exec_by_local_thread"
2282+
2283+ /* cl_command_queue_properties - bitfield */
2284+ #define CL_QUEUE_THREAD_LOCAL_EXEC_ENABLE_INTEL (1 << 31)
2285+
22732286/***************************************************************
22742287* cl_intel_mem_channel_property
22752288***************************************************************/
@@ -2391,16 +2404,6 @@ typedef struct _cl_motion_estimation_desc_intel {
23912404#define CL_DEVICE_SIMULTANEOUS_INTEROPS_INTEL 0x4104
23922405#define CL_DEVICE_NUM_SIMULTANEOUS_INTEROPS_INTEL 0x4105
23932406
2394- /***************************************************************
2395- * cl_intel_thread_local_exec
2396- ***************************************************************/
2397- #define cl_intel_thread_local_exec 1
2398- #define CL_INTEL_THREAD_LOCAL_EXEC_EXTENSION_NAME \
2399- "cl_intel_thread_local_exec"
2400-
2401- /* cl_command_queue_properties - bitfield */
2402- #define CL_QUEUE_THREAD_LOCAL_EXEC_ENABLE_INTEL (1 << 31)
2403-
24042407/***************************************************************
24052408* cl_intel_unified_shared_memory
24062409***************************************************************/
@@ -2433,6 +2436,8 @@ typedef cl_uint cl_mem_advice_intel;
24332436
24342437/* cl_mem_alloc_flags_intel - bitfield */
24352438#define CL_MEM_ALLOC_WRITE_COMBINED_INTEL (1 << 0)
2439+ #define CL_MEM_ALLOC_INITIAL_PLACEMENT_DEVICE_INTEL (1 << 1)
2440+ #define CL_MEM_ALLOC_INITIAL_PLACEMENT_HOST_INTEL (1 << 2)
24362441
24372442/* cl_mem_alloc_info_intel */
24382443#define CL_MEM_ALLOC_TYPE_INTEL 0x419A
@@ -2510,16 +2515,6 @@ clSetKernelArgMemPointerINTEL_fn)(
25102515 cl_uint arg_index ,
25112516 const void * arg_value ) ;
25122517
2513- typedef cl_int (CL_API_CALL *
2514- clEnqueueMemsetINTEL_fn )(
2515- cl_command_queue command_queue ,
2516- void * dst_ptr ,
2517- cl_int value ,
2518- size_t size ,
2519- cl_uint num_events_in_wait_list ,
2520- const cl_event * event_wait_list ,
2521- cl_event * event ) ;
2522-
25232518typedef cl_int (CL_API_CALL *
25242519clEnqueueMemFillINTEL_fn )(
25252520 cl_command_queue command_queue ,
@@ -2605,16 +2600,6 @@ clSetKernelArgMemPointerINTEL(
26052600 cl_uint arg_index ,
26062601 const void * arg_value ) ;
26072602
2608- extern CL_API_ENTRY cl_int CL_API_CALL
2609- clEnqueueMemsetINTEL (
2610- cl_command_queue command_queue ,
2611- void * dst_ptr ,
2612- cl_int value ,
2613- size_t size ,
2614- cl_uint num_events_in_wait_list ,
2615- const cl_event * event_wait_list ,
2616- cl_event * event ) ;
2617-
26182603extern CL_API_ENTRY cl_int CL_API_CALL
26192604clEnqueueMemFillINTEL (
26202605 cl_command_queue command_queue ,
@@ -2678,6 +2663,32 @@ clEnqueueMigrateMemINTEL(
26782663
26792664#endif /* defined(CL_VERSION_1_2) */
26802665
2666+ /* deprecated, use clEnqueueMemFillINTEL instead */
2667+
2668+ typedef cl_int (CL_API_CALL *
2669+ clEnqueueMemsetINTEL_fn )(
2670+ cl_command_queue command_queue ,
2671+ void * dst_ptr ,
2672+ cl_int value ,
2673+ size_t size ,
2674+ cl_uint num_events_in_wait_list ,
2675+ const cl_event * event_wait_list ,
2676+ cl_event * event ) ;
2677+
2678+ #ifndef CL_NO_PROTOTYPES
2679+
2680+ extern CL_API_ENTRY cl_int CL_API_CALL
2681+ clEnqueueMemsetINTEL (
2682+ cl_command_queue command_queue ,
2683+ void * dst_ptr ,
2684+ cl_int value ,
2685+ size_t size ,
2686+ cl_uint num_events_in_wait_list ,
2687+ const cl_event * event_wait_list ,
2688+ cl_event * event ) ;
2689+
2690+ #endif /* CL_NO_PROTOTYPES */
2691+
26812692/***************************************************************
26822693* cl_nv_device_attribute_query
26832694***************************************************************/
0 commit comments