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
33355366
authored
Jul 11, 2016
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_cuda_c: fixed cpplint warnings
parent
89f0fff5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mtapi_plugins_c/mtapi_cuda_c/src/embb_mtapi_cuda.c
+2
-2
mtapi_plugins_c/mtapi_cuda_c/test/embb_mtapi_cuda_test_task.cc
+1
-1
No files found.
mtapi_plugins_c/mtapi_cuda_c/src/embb_mtapi_cuda.c
View file @
33355366
...
@@ -261,9 +261,9 @@ void mtapi_cuda_plugin_initialize(
...
@@ -261,9 +261,9 @@ void mtapi_cuda_plugin_initialize(
mtapi_status_t
local_status
=
MTAPI_ERR_UNKNOWN
;
mtapi_status_t
local_status
=
MTAPI_ERR_UNKNOWN
;
CUresult
err
;
CUresult
err
;
embb_mtapi_cuda_plugin_t
*
plugin
=
&
embb_mtapi_cuda_plugin
;
embb_mtapi_cuda_plugin_t
*
plugin
=
&
embb_mtapi_cuda_plugin
;
mtapi_status_set
(
status
,
MTAPI_ERR_UNKNOWN
);
mtapi_status_set
(
status
,
MTAPI_ERR_UNKNOWN
);
err
=
cuInit
(
0
);
err
=
cuInit
(
0
);
if
(
CUDA_SUCCESS
!=
err
)
return
;
if
(
CUDA_SUCCESS
!=
err
)
return
;
err
=
cuDeviceGet
(
&
plugin
->
device
,
0
);
err
=
cuDeviceGet
(
&
plugin
->
device
,
0
);
...
...
mtapi_plugins_c/mtapi_cuda_c/test/embb_mtapi_cuda_test_task.cc
View file @
33355366
...
@@ -36,7 +36,7 @@ PT_ASSERT(MTAPI_SUCCESS == status)
...
@@ -36,7 +36,7 @@ PT_ASSERT(MTAPI_SUCCESS == status)
#define CUDA_JOB 2
#define CUDA_JOB 2
// CUDA Kernel Function for element by element vector addition
// CUDA Kernel Function for element by element vector addition
#include
"embb_mtapi_cuda_test_kernel.h"
#include
<embb_mtapi_cuda_test_kernel.h>
TaskTest
::
TaskTest
()
{
TaskTest
::
TaskTest
()
{
CreateUnit
(
"mtapi cuda task test"
).
Add
(
&
TaskTest
::
TestBasic
,
this
);
CreateUnit
(
"mtapi cuda task test"
).
Add
(
&
TaskTest
::
TestBasic
,
this
);
...
...
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