Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
318574bc
authored
Dec 19, 2014
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_opencl_c: fixed cpplint warnings
parent
cbefe5bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.c
+6
-7
mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.h
+1
-1
No files found.
mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.c
View file @
318574bc
...
...
@@ -29,7 +29,7 @@
//////////////////////////////////////////////////////////////////////////
// function pointer wrappers to hide runtime linking
#define DECLARECLFUNC(
rettype, name, params
) typedef CL_API_ENTRY rettype\
#define DECLARECLFUNC(
rettype, name, params
) typedef CL_API_ENTRY rettype\
(CL_API_CALL *name##Proc)params;\
name##Proc name##_Dynamic = 0;\
\
...
...
@@ -189,8 +189,7 @@ DECLARECLFUNC(cl_sampler, clCreateSampler, (cl_context context,
filter_mode
,
errcode_ret
);
}
DECLARECLFUNC
(
cl_int
,
clReleaseSampler
,
(
cl_sampler
sampler
))
{
DECLARECLFUNC
(
cl_int
,
clReleaseSampler
,
(
cl_sampler
sampler
))
{
return
clReleaseSampler_Dynamic
(
sampler
);
}
...
...
@@ -240,16 +239,16 @@ DECLARECLFUNC(cl_mem, clCreateFromGLBuffer, (cl_context context,
#include <Windows.h>
#define CHECKEDIMPORT(name) name##_Dynamic = \
(name##Proc)GetProcAddress(
opencl_dll_handle, #name
); \
if (
name##_Dynamic == 0
) return 0;
(name##Proc)GetProcAddress(
opencl_dll_handle, #name
); \
if (
name##_Dynamic == 0
) return 0;
#else
#include <dlfcn.h>
#define CHECKEDIMPORT(name) name##_Dynamic = \
(name##Proc)dlsym(
opencl_dll_handle, #name
); \
if (
name##_Dynamic == 0
) return 0;
(name##Proc)dlsym(
opencl_dll_handle, #name
); \
if (
name##_Dynamic == 0
) return 0;
#endif
...
...
mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.h
View file @
318574bc
...
...
@@ -30,7 +30,7 @@
#ifdef __cplusplus
extern
"C"
{
#endif
int
embb_mtapi_opencl_link_at_runtime
();
#ifdef __cplusplus
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment