@@ -42,92 +42,92 @@ namespace detail {
4242// may be removed after removing the deprecated 'get_native()' methods
4343// from the corresponding classes.
4444template <> struct interop <backend::opencl, context> {
45- using type = cl_context ;
45+ using type = OpenCLContextT ;
4646};
4747
4848template <> struct interop <backend::opencl, device> {
49- using type = cl_device_id ;
49+ using type = OpenCLDeviceIdT ;
5050};
5151
5252template <> struct interop <backend::opencl, queue> {
53- using type = cl_command_queue ;
53+ using type = OpenCLCommandQueueT ;
5454};
5555
5656template <> struct interop <backend::opencl, platform> {
57- using type = cl_platform_id ;
57+ using type = OpenCLPlatformT ;
5858};
5959
6060template <typename DataT, int Dimensions, typename AllocatorT>
6161struct BackendInput <backend::opencl, buffer<DataT, Dimensions, AllocatorT>> {
62- using type = cl_mem ;
62+ using type = OpenCLMemT ;
6363};
6464
6565template <typename DataT, int Dimensions, typename AllocatorT>
6666struct BackendReturn <backend::opencl, buffer<DataT, Dimensions, AllocatorT>> {
67- using type = std::vector<cl_mem >;
67+ using type = std::vector<OpenCLMemT >;
6868};
6969
7070template <> struct BackendInput <backend::opencl, context> {
71- using type = cl_context ;
71+ using type = OpenCLContextT ;
7272};
7373
7474template <> struct BackendReturn <backend::opencl, context> {
75- using type = cl_context ;
75+ using type = OpenCLContextT ;
7676};
7777
7878template <> struct BackendInput <backend::opencl, device> {
79- using type = cl_device_id ;
79+ using type = OpenCLDeviceIdT ;
8080};
8181
8282template <> struct BackendReturn <backend::opencl, device> {
83- using type = cl_device_id ;
83+ using type = OpenCLDeviceIdT ;
8484};
8585
8686template <> struct interop <backend::opencl, event> {
87- using type = std::vector<cl_event >;
88- using value_type = cl_event ;
87+ using type = std::vector<OpenCLEventT >;
88+ using value_type = OpenCLEventT ;
8989};
9090template <> struct BackendInput <backend::opencl, event> {
91- using type = std::vector<cl_event >;
92- using value_type = cl_event ;
91+ using type = std::vector<OpenCLEventT >;
92+ using value_type = OpenCLEventT ;
9393};
9494template <> struct BackendReturn <backend::opencl, event> {
95- using type = std::vector<cl_event >;
96- using value_type = cl_event ;
95+ using type = std::vector<OpenCLEventT >;
96+ using value_type = OpenCLEventT ;
9797};
9898
9999template <> struct BackendInput <backend::opencl, queue> {
100- using type = cl_command_queue ;
100+ using type = OpenCLCommandQueueT ;
101101};
102102
103103template <> struct BackendReturn <backend::opencl, queue> {
104- using type = cl_command_queue ;
104+ using type = OpenCLCommandQueueT ;
105105};
106106
107107template <> struct BackendInput <backend::opencl, platform> {
108- using type = cl_platform_id ;
108+ using type = OpenCLPlatformT ;
109109};
110110
111111template <> struct BackendReturn <backend::opencl, platform> {
112- using type = cl_platform_id ;
112+ using type = OpenCLPlatformT ;
113113};
114114
115115template <bundle_state State>
116116struct BackendInput <backend::opencl, kernel_bundle<State>> {
117- using type = cl_program ;
117+ using type = OpenCLProgramT ;
118118};
119119
120120template <bundle_state State>
121121struct BackendReturn <backend::opencl, kernel_bundle<State>> {
122- using type = std::vector<cl_program >;
122+ using type = std::vector<OpenCLProgramT >;
123123};
124124
125125template <> struct BackendInput <backend::opencl, kernel> {
126- using type = cl_kernel ;
126+ using type = OpenCLKernelT ;
127127};
128128
129129template <> struct BackendReturn <backend::opencl, kernel> {
130- using type = cl_kernel ;
130+ using type = OpenCLKernelT ;
131131};
132132
133133using graph = ext::oneapi::experimental::command_graph<
@@ -156,7 +156,7 @@ template <> struct InteropFeatureSupportMap<backend::opencl> {
156156namespace ur {
157157// Cast for std::vector<cl_event>, according to the spec, make_event
158158// should create one(?) event from a vector of cl_event
159- template <class To > inline To cast (std::vector<cl_event > value) {
159+ template <class To > inline To cast (std::vector<OpenCLEventT > value) {
160160 assert (value.size () == 1 &&
161161 " Temporary workaround requires that the "
162162 " size of the input vector for make_event be equal to one." );
@@ -166,11 +166,11 @@ template <class To> inline To cast(std::vector<cl_event> value) {
166166// These conversions should use UR interop API.
167167template <>
168168inline ur_program_handle_t
169- cast (cl_program ) = delete ; // Use urProgramCreateWithNativeHandle
169+ cast (OpenCLProgramT ) = delete ; // Use urProgramCreateWithNativeHandle
170170
171171template <>
172172inline ur_device_handle_t
173- cast (cl_device_id ) = delete ; // Use urDeviceCreateWithNativeHandle
173+ cast (OpenCLDeviceIdT ) = delete ; // Use urDeviceCreateWithNativeHandle
174174} // namespace ur
175175} // namespace detail
176176} // namespace _V1
0 commit comments