@@ -924,6 +924,34 @@ typedef cl_int (CL_API_CALL* clEnqueueReleaseDX9ObjectsINTEL_clextfn)(
924
924
#endif // defined(cl_intel_dx9_media_sharing)
925
925
#endif // defined(CLEXT_INCLUDE_DX9)
926
926
927
+ #if defined(cl_intel_program_scope_host_pipe)
928
+
929
+ typedef cl_int (CL_API_CALL* clEnqueueReadHostPipeINTEL_clextfn)(
930
+ cl_command_queue command_queue,
931
+ cl_program program,
932
+ const char * pipe_symbol,
933
+ cl_bool blocking_read,
934
+ void * ptr,
935
+ size_t size,
936
+ cl_uint num_events_in_wait_list,
937
+ const cl_event* event_wait_list,
938
+ cl_event* event);
939
+
940
+ typedef cl_int (CL_API_CALL* clEnqueueWriteHostPipeINTEL_clextfn)(
941
+ cl_command_queue command_queue,
942
+ cl_program program,
943
+ const char * pipe_symbol,
944
+ cl_bool blocking_write,
945
+ const void * ptr,
946
+ size_t size,
947
+ cl_uint num_events_in_wait_list,
948
+ const cl_event* event_wait_list,
949
+ cl_event* event);
950
+
951
+ #else
952
+ #pragma message("Define for cl_intel_program_scope_host_pipe was not found! Please update your headers.")
953
+ #endif // defined(cl_intel_program_scope_host_pipe)
954
+
927
955
#if defined(CLEXT_INCLUDE_D3D10)
928
956
#if defined(cl_intel_sharing_format_query_d3d10)
929
957
@@ -1053,15 +1081,6 @@ typedef cl_int (CL_API_CALL* clSetKernelArgMemPointerINTEL_clextfn)(
1053
1081
cl_uint arg_index,
1054
1082
const void * arg_value);
1055
1083
1056
- typedef cl_int (CL_API_CALL* clEnqueueMemsetINTEL_clextfn)(
1057
- cl_command_queue command_queue,
1058
- void * dst_ptr,
1059
- cl_int value,
1060
- size_t size,
1061
- cl_uint num_events_in_wait_list,
1062
- const cl_event* event_wait_list,
1063
- cl_event* event);
1064
-
1065
1084
typedef cl_int (CL_API_CALL* clEnqueueMemFillINTEL_clextfn)(
1066
1085
cl_command_queue command_queue,
1067
1086
void * dst_ptr,
@@ -1104,6 +1123,15 @@ typedef cl_int (CL_API_CALL* clEnqueueMigrateMemINTEL_clextfn)(
1104
1123
1105
1124
#endif // defined(CL_VERSION_1_2)
1106
1125
1126
+ typedef cl_int (CL_API_CALL* clEnqueueMemsetINTEL_clextfn)(
1127
+ cl_command_queue command_queue,
1128
+ void * dst_ptr,
1129
+ cl_int value,
1130
+ size_t size,
1131
+ cl_uint num_events_in_wait_list,
1132
+ const cl_event* event_wait_list,
1133
+ cl_event* event);
1134
+
1107
1135
#else
1108
1136
#pragma message("Define for cl_intel_unified_shared_memory was not found! Please update your headers.")
1109
1137
#endif // defined(cl_intel_unified_shared_memory)
@@ -1348,6 +1376,11 @@ struct openclext_dispatch_table {
1348
1376
#endif // defined(cl_intel_dx9_media_sharing)
1349
1377
#endif // defined(CLEXT_INCLUDE_DX9)
1350
1378
1379
+ #if defined(cl_intel_program_scope_host_pipe)
1380
+ clEnqueueReadHostPipeINTEL_clextfn clEnqueueReadHostPipeINTEL;
1381
+ clEnqueueWriteHostPipeINTEL_clextfn clEnqueueWriteHostPipeINTEL;
1382
+ #endif // defined(cl_intel_program_scope_host_pipe)
1383
+
1351
1384
#if defined(CLEXT_INCLUDE_D3D10)
1352
1385
#if defined(cl_intel_sharing_format_query_d3d10)
1353
1386
clGetSupportedD3D10TextureFormatsINTEL_clextfn clGetSupportedD3D10TextureFormatsINTEL;
@@ -1386,13 +1419,13 @@ struct openclext_dispatch_table {
1386
1419
clMemBlockingFreeINTEL_clextfn clMemBlockingFreeINTEL;
1387
1420
clGetMemAllocInfoINTEL_clextfn clGetMemAllocInfoINTEL;
1388
1421
clSetKernelArgMemPointerINTEL_clextfn clSetKernelArgMemPointerINTEL;
1389
- clEnqueueMemsetINTEL_clextfn clEnqueueMemsetINTEL;
1390
1422
clEnqueueMemFillINTEL_clextfn clEnqueueMemFillINTEL;
1391
1423
clEnqueueMemcpyINTEL_clextfn clEnqueueMemcpyINTEL;
1392
1424
clEnqueueMemAdviseINTEL_clextfn clEnqueueMemAdviseINTEL;
1393
1425
#if defined(CL_VERSION_1_2)
1394
1426
clEnqueueMigrateMemINTEL_clextfn clEnqueueMigrateMemINTEL;
1395
1427
#endif // defined(CL_VERSION_1_2)
1428
+ clEnqueueMemsetINTEL_clextfn clEnqueueMemsetINTEL;
1396
1429
#endif // defined(cl_intel_unified_shared_memory)
1397
1430
1398
1431
#if defined(CLEXT_INCLUDE_VA_API)
@@ -1593,6 +1626,11 @@ static void _init(cl_platform_id platform, openclext_dispatch_table* dispatch_pt
1593
1626
#endif // defined(cl_intel_dx9_media_sharing)
1594
1627
#endif // defined(CLEXT_INCLUDE_DX9)
1595
1628
1629
+ #if defined(cl_intel_program_scope_host_pipe)
1630
+ CLEXT_GET_EXTENSION (clEnqueueReadHostPipeINTEL);
1631
+ CLEXT_GET_EXTENSION (clEnqueueWriteHostPipeINTEL);
1632
+ #endif // defined(cl_intel_program_scope_host_pipe)
1633
+
1596
1634
#if defined(CLEXT_INCLUDE_D3D10)
1597
1635
#if defined(cl_intel_sharing_format_query_d3d10)
1598
1636
CLEXT_GET_EXTENSION (clGetSupportedD3D10TextureFormatsINTEL);
@@ -1631,13 +1669,13 @@ static void _init(cl_platform_id platform, openclext_dispatch_table* dispatch_pt
1631
1669
CLEXT_GET_EXTENSION (clMemBlockingFreeINTEL);
1632
1670
CLEXT_GET_EXTENSION (clGetMemAllocInfoINTEL);
1633
1671
CLEXT_GET_EXTENSION (clSetKernelArgMemPointerINTEL);
1634
- CLEXT_GET_EXTENSION (clEnqueueMemsetINTEL);
1635
1672
CLEXT_GET_EXTENSION (clEnqueueMemFillINTEL);
1636
1673
CLEXT_GET_EXTENSION (clEnqueueMemcpyINTEL);
1637
1674
CLEXT_GET_EXTENSION (clEnqueueMemAdviseINTEL);
1638
1675
#if defined(CL_VERSION_1_2)
1639
1676
CLEXT_GET_EXTENSION (clEnqueueMigrateMemINTEL);
1640
1677
#endif // defined(CL_VERSION_1_2)
1678
+ CLEXT_GET_EXTENSION (clEnqueueMemsetINTEL);
1641
1679
#endif // defined(cl_intel_unified_shared_memory)
1642
1680
1643
1681
#if defined(CLEXT_INCLUDE_VA_API)
@@ -3553,6 +3591,64 @@ cl_int CL_API_CALL clEnqueueReleaseDX9ObjectsINTEL(
3553
3591
#endif // defined(CLEXT_INCLUDE_DX9)
3554
3592
3555
3593
3594
+ #if defined(cl_intel_program_scope_host_pipe)
3595
+
3596
+ cl_int CL_API_CALL clEnqueueReadHostPipeINTEL (
3597
+ cl_command_queue command_queue,
3598
+ cl_program program,
3599
+ const char * pipe_symbol,
3600
+ cl_bool blocking_read,
3601
+ 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
+ struct openclext_dispatch_table * dispatch_ptr = _get_dispatch (command_queue);
3608
+ if (dispatch_ptr == NULL || dispatch_ptr->clEnqueueReadHostPipeINTEL == NULL ) {
3609
+ return CL_INVALID_OPERATION;
3610
+ }
3611
+ return dispatch_ptr->clEnqueueReadHostPipeINTEL (
3612
+ command_queue,
3613
+ program,
3614
+ pipe_symbol,
3615
+ blocking_read,
3616
+ ptr,
3617
+ size,
3618
+ num_events_in_wait_list,
3619
+ event_wait_list,
3620
+ event);
3621
+ }
3622
+
3623
+ cl_int CL_API_CALL clEnqueueWriteHostPipeINTEL (
3624
+ cl_command_queue command_queue,
3625
+ cl_program program,
3626
+ const char * pipe_symbol,
3627
+ cl_bool blocking_write,
3628
+ const void * ptr,
3629
+ size_t size,
3630
+ cl_uint num_events_in_wait_list,
3631
+ const cl_event* event_wait_list,
3632
+ cl_event* event)
3633
+ {
3634
+ struct openclext_dispatch_table * dispatch_ptr = _get_dispatch (command_queue);
3635
+ if (dispatch_ptr == NULL || dispatch_ptr->clEnqueueWriteHostPipeINTEL == NULL ) {
3636
+ return CL_INVALID_OPERATION;
3637
+ }
3638
+ return dispatch_ptr->clEnqueueWriteHostPipeINTEL (
3639
+ command_queue,
3640
+ program,
3641
+ pipe_symbol,
3642
+ blocking_write,
3643
+ ptr,
3644
+ size,
3645
+ num_events_in_wait_list,
3646
+ event_wait_list,
3647
+ event);
3648
+ }
3649
+
3650
+ #endif // defined(cl_intel_program_scope_host_pipe)
3651
+
3556
3652
#if defined(CLEXT_INCLUDE_D3D10)
3557
3653
#if defined(cl_intel_sharing_format_query_d3d10)
3558
3654
@@ -3827,29 +3923,6 @@ cl_int CL_API_CALL clSetKernelArgMemPointerINTEL(
3827
3923
arg_value);
3828
3924
}
3829
3925
3830
- cl_int CL_API_CALL clEnqueueMemsetINTEL (
3831
- cl_command_queue command_queue,
3832
- void * dst_ptr,
3833
- cl_int value,
3834
- size_t size,
3835
- cl_uint num_events_in_wait_list,
3836
- const cl_event* event_wait_list,
3837
- cl_event* event)
3838
- {
3839
- struct openclext_dispatch_table * dispatch_ptr = _get_dispatch (command_queue);
3840
- if (dispatch_ptr == NULL || dispatch_ptr->clEnqueueMemsetINTEL == NULL ) {
3841
- return CL_INVALID_OPERATION;
3842
- }
3843
- return dispatch_ptr->clEnqueueMemsetINTEL (
3844
- command_queue,
3845
- dst_ptr,
3846
- value,
3847
- size,
3848
- num_events_in_wait_list,
3849
- event_wait_list,
3850
- event);
3851
- }
3852
-
3853
3926
cl_int CL_API_CALL clEnqueueMemFillINTEL (
3854
3927
cl_command_queue command_queue,
3855
3928
void * dst_ptr,
@@ -3950,6 +4023,29 @@ cl_int CL_API_CALL clEnqueueMigrateMemINTEL(
3950
4023
3951
4024
#endif // defined(CL_VERSION_1_2)
3952
4025
4026
+ cl_int CL_API_CALL clEnqueueMemsetINTEL (
4027
+ cl_command_queue command_queue,
4028
+ void * dst_ptr,
4029
+ cl_int value,
4030
+ size_t size,
4031
+ cl_uint num_events_in_wait_list,
4032
+ const cl_event* event_wait_list,
4033
+ cl_event* event)
4034
+ {
4035
+ struct openclext_dispatch_table * dispatch_ptr = _get_dispatch (command_queue);
4036
+ if (dispatch_ptr == NULL || dispatch_ptr->clEnqueueMemsetINTEL == NULL ) {
4037
+ return CL_INVALID_OPERATION;
4038
+ }
4039
+ return dispatch_ptr->clEnqueueMemsetINTEL (
4040
+ command_queue,
4041
+ dst_ptr,
4042
+ value,
4043
+ size,
4044
+ num_events_in_wait_list,
4045
+ event_wait_list,
4046
+ event);
4047
+ }
4048
+
3953
4049
#endif // defined(cl_intel_unified_shared_memory)
3954
4050
3955
4051
#if defined(CLEXT_INCLUDE_VA_API)
0 commit comments