2 * Copyright 2021 Zebediah Figura
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_UNIX_PRIVATE_H
20 #define __WINE_UNIX_PRIVATE_H
26 #define WIN32_NO_STATUS
31 #include "wine/debug.h"
33 #define CL_SILENCE_DEPRECATION
34 #if defined(HAVE_CL_CL_H)
35 #define CL_USE_DEPRECATED_OPENCL_1_0_APIS
36 #define CL_USE_DEPRECATED_OPENCL_1_1_APIS
37 #define CL_USE_DEPRECATED_OPENCL_1_2_APIS
38 #define CL_USE_DEPRECATED_OPENCL_2_0_APIS
39 #define CL_TARGET_OPENCL_VERSION 220
41 #elif defined(HAVE_OPENCL_OPENCL_H)
42 #include <OpenCL/opencl.h>
47 cl_int WINAPI
wrap_clBuildProgram( cl_program program
, cl_uint num_devices
,
48 const cl_device_id
*device_list
, const char *options
,
49 void (WINAPI
*pfn_notify
)(cl_program program
, void *user_data
),
50 void *user_data
) DECLSPEC_HIDDEN
;
52 cl_context WINAPI
wrap_clCreateContext( const cl_context_properties
*properties
,
53 cl_uint num_devices
, const cl_device_id
*devices
,
54 void (WINAPI
*pfn_notify
)(const char *errinfo
, const void *private_info
, size_t cb
, void *user_data
),
55 void *user_data
, cl_int
*errcode_ret
) DECLSPEC_HIDDEN
;
57 cl_context WINAPI
wrap_clCreateContextFromType( const cl_context_properties
*properties
, cl_device_type device_type
,
58 void (WINAPI
*pfn_notify
)(const char *errinfo
, const void *private_info
, size_t cb
, void *user_data
),
59 void *user_data
, cl_int
*errcode_ret
) DECLSPEC_HIDDEN
;
61 cl_int WINAPI
wrap_clEnqueueNativeKernel( cl_command_queue command_queue
,
62 void (WINAPI
*user_func
)(void *),
63 void *args
, size_t cb_args
, cl_uint num_mem_objects
, const cl_mem
*mem_list
, const void **args_mem_loc
,
64 cl_uint num_events_in_wait_list
, const cl_event
*event_wait_list
, cl_event
*event
) DECLSPEC_HIDDEN
;
66 cl_int WINAPI
wrap_clSetEventCallback( cl_event event
, cl_int type
,
67 void (WINAPI
*pfn_notify
)(cl_event
, cl_int
, void *),
68 void *user_data
) DECLSPEC_HIDDEN
;
70 cl_int WINAPI
wrap_clSetMemObjectDestructorCallback(cl_mem memobj
,
71 void (WINAPI
*pfn_notify
)(cl_mem
, void *),
72 void *user_data
) DECLSPEC_HIDDEN
;
74 cl_int WINAPI
wrap_clCompileProgram( cl_program program
, cl_uint num_devices
,
75 const cl_device_id
*device_list
, const char *options
, cl_uint num_input_headers
,
76 const cl_program
*input_headers
, const char **header_include_names
,
77 void (WINAPI
*pfn_notify
)(cl_program program
, void *user_data
),
78 void *user_data
) DECLSPEC_HIDDEN
;
80 cl_program WINAPI
wrap_clLinkProgram( cl_context context
, cl_uint num_devices
, const cl_device_id
*device_list
,
81 const char *options
, cl_uint num_input_programs
, const cl_program
*input_programs
,
82 void (WINAPI
*pfn_notify
)(cl_program program
, void *user_data
),
83 void *user_data
, cl_int
*errcode_ret
) DECLSPEC_HIDDEN
;
85 extern const struct opencl_funcs funcs
;