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
b46f1e37
authored
Mar 30, 2015
by
Christian Kern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected wrong data sizes (data size are now as described in the OpenCL standard.
parent
572d8d00
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mtapi_opencl_c/src/embb_mtapi_opencl.c
+5
-4
No files found.
mtapi_opencl_c/src/embb_mtapi_opencl.c
View file @
b46f1e37
...
@@ -46,8 +46,8 @@ struct embb_mtapi_opencl_plugin_struct {
...
@@ -46,8 +46,8 @@ struct embb_mtapi_opencl_plugin_struct {
cl_device_id
device_id
;
cl_device_id
device_id
;
cl_context
context
;
cl_context
context
;
cl_command_queue
command_queue
;
cl_command_queue
command_queue
;
cl_uin
t
work_group_size
;
size_
t
work_group_size
;
cl_uin
t
work_item_sizes
[
3
];
size_
t
work_item_sizes
[
3
];
};
};
typedef
struct
embb_mtapi_opencl_plugin_struct
embb_mtapi_opencl_plugin_t
;
typedef
struct
embb_mtapi_opencl_plugin_struct
embb_mtapi_opencl_plugin_t
;
...
@@ -270,12 +270,13 @@ void mtapi_opencl_plugin_initialize(
...
@@ -270,12 +270,13 @@ void mtapi_opencl_plugin_initialize(
NULL
,
NULL
,
&
err
);
NULL
,
NULL
,
&
err
);
}
}
if
(
CL_SUCCESS
==
err
)
{
if
(
CL_SUCCESS
==
err
)
{
size_t
work_group_size
;
err
=
clGetDeviceInfo
(
plugin
->
device_id
,
CL_DEVICE_MAX_WORK_GROUP_SIZE
,
err
=
clGetDeviceInfo
(
plugin
->
device_id
,
CL_DEVICE_MAX_WORK_GROUP_SIZE
,
sizeof
(
cl_uin
t
),
&
plugin
->
work_group_size
,
NULL
);
sizeof
(
size_
t
),
&
plugin
->
work_group_size
,
NULL
);
}
}
if
(
CL_SUCCESS
==
err
)
{
if
(
CL_SUCCESS
==
err
)
{
err
=
clGetDeviceInfo
(
plugin
->
device_id
,
CL_DEVICE_MAX_WORK_ITEM_SIZES
,
err
=
clGetDeviceInfo
(
plugin
->
device_id
,
CL_DEVICE_MAX_WORK_ITEM_SIZES
,
3
*
sizeof
(
cl_uin
t
),
&
plugin
->
work_item_sizes
[
0
],
NULL
);
3
*
sizeof
(
size_
t
),
&
plugin
->
work_item_sizes
[
0
],
NULL
);
}
}
if
(
CL_SUCCESS
==
err
)
{
if
(
CL_SUCCESS
==
err
)
{
plugin
->
command_queue
=
clCreateCommandQueue
(
plugin
->
context
,
plugin
->
command_queue
=
clCreateCommandQueue
(
plugin
->
context
,
...
...
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