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
cbefe5bf
authored
Dec 19, 2014
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_opencl_c: fixed cpplint warnings
parent
db96b18a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.c
+0
-0
mtapi_opencl_c/test/embb_mtapi_opencl_test_task.cc
+9
-9
No files found.
mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.c
View file @
cbefe5bf
This diff is collapsed.
Click to expand it.
mtapi_opencl_c/test/embb_mtapi_opencl_test_task.cc
View file @
cbefe5bf
...
...
@@ -65,13 +65,13 @@ void TaskTest::TestBasic() {
mtapi_task_hndl_t
task
;
mtapi_action_hndl_t
action
;
const
int
e
lements
=
64
;
float
arguments
[
elements
*
2
];
float
results
[
e
lements
];
const
int
kE
lements
=
64
;
float
arguments
[
kElements
*
2
];
float
results
[
kE
lements
];
for
(
int
ii
=
0
;
ii
<
e
lements
;
ii
++
)
{
arguments
[
ii
]
=
(
float
)
ii
;
arguments
[
ii
+
elements
]
=
(
float
)
ii
;
for
(
int
ii
=
0
;
ii
<
kE
lements
;
ii
++
)
{
arguments
[
ii
]
=
static_cast
<
float
>
(
ii
)
;
arguments
[
ii
+
kElements
]
=
static_cast
<
float
>
(
ii
)
;
}
mtapi_opencl_plugin_initialize
(
&
status
);
...
...
@@ -100,8 +100,8 @@ void TaskTest::TestBasic() {
task
=
mtapi_task_start
(
MTAPI_TASK_ID_NONE
,
job
,
arguments
,
e
lements
*
2
*
sizeof
(
float
),
results
,
e
lements
*
sizeof
(
float
),
arguments
,
kE
lements
*
2
*
sizeof
(
float
),
results
,
kE
lements
*
sizeof
(
float
),
MTAPI_DEFAULT_TASK_ATTRIBUTES
,
MTAPI_GROUP_NONE
,
&
status
);
...
...
@@ -110,7 +110,7 @@ void TaskTest::TestBasic() {
mtapi_task_wait
(
task
,
MTAPI_INFINITE
,
&
status
);
MTAPI_CHECK_STATUS
(
status
);
for
(
int
ii
=
0
;
ii
<
e
lements
;
ii
++
)
{
for
(
int
ii
=
0
;
ii
<
kE
lements
;
ii
++
)
{
PT_EXPECT_EQ
(
results
[
ii
],
ii
*
2
+
1
);
}
...
...
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