This repository has been archived by the owner on Jan 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
program.c
54 lines (45 loc) · 1.74 KB
/
program.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include "api.h"
extern void cl30GoProgramBuildCallback(cl_program, uintptr_t *);
static CL_CALLBACK void cl30CProgramBuildCallback(cl_program program, void *userData)
{
cl30GoProgramBuildCallback(program, (uintptr_t *)(userData));
}
cl_int cl30BuildProgram(cl_program program,
cl_uint numDevices, cl_device_id *devices,
char *options, uintptr_t *userData)
{
return clBuildProgram(program, numDevices, devices, options,
(userData != NULL) ? cl30CProgramBuildCallback : NULL, userData);
}
extern void cl30GoProgramCompileCallback(cl_program, uintptr_t *);
static CL_CALLBACK void cl30CProgramCompileCallback(cl_program program, void *userData)
{
cl30GoProgramCompileCallback(program, (uintptr_t *)(userData));
}
cl_int cl30CompileProgram(cl_program program,
cl_uint numDevices, cl_device_id *devices,
char *options,
cl_uint numInputHeaders, cl_program *headers, char const **includeNames,
uintptr_t *userData)
{
return clCompileProgram(program, numDevices, devices, options,
numInputHeaders, headers, includeNames,
(userData != NULL) ? cl30CProgramCompileCallback : NULL, userData);
}
extern void cl30GoProgramLinkCallback(cl_program, uintptr_t *);
static CL_CALLBACK void cl30CProgramLinkCallback(cl_program program, void *userData)
{
cl30GoProgramLinkCallback(program, (uintptr_t *)(userData));
}
cl_program cl30LinkProgram(cl_context context,
cl_uint numDevices, cl_device_id *devices,
char *options,
cl_uint numInputPrograms, cl_program *programs,
uintptr_t *userData,
cl_int *errReturn)
{
return clLinkProgram(context, numDevices, devices, options,
numInputPrograms, programs,
(userData != NULL) ? cl30CProgramLinkCallback : NULL, userData,
errReturn);
}