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
e456f46c
authored
9 years ago
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed cpplint problems
parent
124898bc
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
34 additions
and
31 deletions
+34
-31
base_c/src/internal/thread_index.c
+0
-0
mtapi_plugins_c/mtapi_network_c/src/embb_mtapi_network.c
+4
-2
mtapi_plugins_c/mtapi_network_c/src/embb_mtapi_network.h
+3
-3
mtapi_plugins_c/mtapi_network_c/src/embb_mtapi_network_buffer.h
+3
-3
mtapi_plugins_c/mtapi_network_c/src/embb_mtapi_network_socket.h
+3
-3
mtapi_plugins_c/mtapi_network_c/test/embb_mtapi_network_test_buffer.h
+3
-3
mtapi_plugins_c/mtapi_network_c/test/embb_mtapi_network_test_socket.h
+3
-3
mtapi_plugins_c/mtapi_network_c/test/embb_mtapi_network_test_task.h
+3
-3
mtapi_plugins_c/mtapi_opencl_c/src/embb_mtapi_opencl.c
+2
-1
mtapi_plugins_c/mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.h
+3
-3
mtapi_plugins_c/mtapi_opencl_c/test/embb_mtapi_opencl_test_linker.h
+3
-3
mtapi_plugins_c/mtapi_opencl_c/test/embb_mtapi_opencl_test_task.h
+3
-3
scripts/run_cpplint.sh
+1
-1
No files found.
base_c/src/internal/thread_index.c
View file @
e456f46c
This diff is collapsed.
Click to expand it.
mtapi_plugins_c/mtapi_network_c/src/embb_mtapi_network.c
View file @
e456f46c
...
...
@@ -162,7 +162,8 @@ static void embb_mtapi_network_task_complete(
send_buf
,
(
int32_t
)
local_task
->
result_size
);
assert
(
err
==
4
);
err
=
embb_mtapi_network_buffer_push_back_rawdata
(
send_buf
,
(
int32_t
)
local_task
->
result_size
,
local_task
->
result_buffer
);
send_buf
,
(
int32_t
)
local_task
->
result_size
,
local_task
->
result_buffer
);
assert
(
err
==
(
int
)
local_task
->
result_size
);
err
=
embb_mtapi_network_socket_sendbuffer
(
...
...
@@ -303,7 +304,8 @@ static int embb_mtapi_network_thread(void * args) {
mtapi_taskattr_set
(
&
task_attr
,
MTAPI_TASK_COMPLETE_FUNCTION
,
func_void
,
0
,
&
local_status
);
assert
(
local_status
==
MTAPI_SUCCESS
);
job_hndl
=
mtapi_job_get
((
mtapi_job_id_t
)
job_id
,
(
mtapi_domain_t
)
domain_id
,
&
local_status
);
job_hndl
=
mtapi_job_get
((
mtapi_job_id_t
)
job_id
,
(
mtapi_domain_t
)
domain_id
,
&
local_status
);
assert
(
local_status
==
MTAPI_SUCCESS
);
mtapi_task_start
(
MTAPI_TASK_ID_NONE
,
job_hndl
,
...
...
This diff is collapsed.
Click to expand it.
mtapi_plugins_c/mtapi_network_c/src/embb_mtapi_network.h
View file @
e456f46c
...
...
@@ -24,8 +24,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_NETWORK_C_SRC_EMBB_MTAPI_NETWORK_H_
#define MTAPI_NETWORK_C_SRC_EMBB_MTAPI_NETWORK_H_
#ifndef MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_SRC_EMBB_MTAPI_NETWORK_H_
#define MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_SRC_EMBB_MTAPI_NETWORK_H_
#include <stdint.h>
...
...
@@ -43,4 +43,4 @@ void embb_mtapi_network_finalize();
}
#endif
#endif // MTAPI_NETWORK_C_SRC_EMBB_MTAPI_NETWORK_H_
#endif // MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_SRC_EMBB_MTAPI_NETWORK_H_
This diff is collapsed.
Click to expand it.
mtapi_plugins_c/mtapi_network_c/src/embb_mtapi_network_buffer.h
View file @
e456f46c
...
...
@@ -24,8 +24,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_NETWORK_C_SRC_EMBB_MTAPI_NETWORK_BUFFER_H_
#define MTAPI_NETWORK_C_SRC_EMBB_MTAPI_NETWORK_BUFFER_H_
#ifndef MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_SRC_EMBB_MTAPI_NETWORK_BUFFER_H_
#define MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_SRC_EMBB_MTAPI_NETWORK_BUFFER_H_
#include <stdint.h>
...
...
@@ -103,4 +103,4 @@ int embb_mtapi_network_buffer_pop_front_rawdata(
}
#endif
#endif // MTAPI_NETWORK_C_SRC_EMBB_MTAPI_NETWORK_BUFFER_H_
#endif // MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_SRC_EMBB_MTAPI_NETWORK_BUFFER_H_
This diff is collapsed.
Click to expand it.
mtapi_plugins_c/mtapi_network_c/src/embb_mtapi_network_socket.h
View file @
e456f46c
...
...
@@ -24,8 +24,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_NETWORK_C_SRC_EMBB_MTAPI_NETWORK_SOCKET_H_
#define MTAPI_NETWORK_C_SRC_EMBB_MTAPI_NETWORK_SOCKET_H_
#ifndef MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_SRC_EMBB_MTAPI_NETWORK_SOCKET_H_
#define MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_SRC_EMBB_MTAPI_NETWORK_SOCKET_H_
#include <stdint.h>
#include <embb_mtapi_network_buffer.h>
...
...
@@ -101,4 +101,4 @@ int embb_mtapi_network_socket_recvbuffer_sized(
}
#endif
#endif // MTAPI_NETWORK_C_SRC_EMBB_MTAPI_NETWORK_SOCKET_H_
#endif // MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_SRC_EMBB_MTAPI_NETWORK_SOCKET_H_
This diff is collapsed.
Click to expand it.
mtapi_plugins_c/mtapi_network_c/test/embb_mtapi_network_test_buffer.h
View file @
e456f46c
...
...
@@ -24,8 +24,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_BUFFER_H_
#define MTAPI_NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_BUFFER_H_
#ifndef MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_BUFFER_H_
#define MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_BUFFER_H_
#include <partest/partest.h>
...
...
@@ -37,4 +37,4 @@ class NetworkBufferTest : public partest::TestCase {
void
TestBasic
();
};
#endif // MTAPI_NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_BUFFER_H_
#endif // MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_BUFFER_H_
This diff is collapsed.
Click to expand it.
mtapi_plugins_c/mtapi_network_c/test/embb_mtapi_network_test_socket.h
View file @
e456f46c
...
...
@@ -24,8 +24,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_SOCKET_H_
#define MTAPI_NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_SOCKET_H_
#ifndef MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_SOCKET_H_
#define MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_SOCKET_H_
#include <partest/partest.h>
...
...
@@ -37,4 +37,4 @@ class NetworkSocketTest : public partest::TestCase {
void
TestBasic
();
};
#endif // MTAPI_NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_SOCKET_H_
#endif // MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_SOCKET_H_
This diff is collapsed.
Click to expand it.
mtapi_plugins_c/mtapi_network_c/test/embb_mtapi_network_test_task.h
View file @
e456f46c
...
...
@@ -24,8 +24,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_TASK_H_
#define MTAPI_NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_TASK_H_
#ifndef MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_TASK_H_
#define MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_TASK_H_
#include <partest/partest.h>
...
...
@@ -37,4 +37,4 @@ class NetworkTaskTest : public partest::TestCase {
void
TestBasic
();
};
#endif // MTAPI_NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_TASK_H_
#endif // MTAPI_
PLUGINS_C_MTAPI_
NETWORK_C_TEST_EMBB_MTAPI_NETWORK_TEST_TASK_H_
This diff is collapsed.
Click to expand it.
mtapi_plugins_c/mtapi_opencl_c/src/embb_mtapi_opencl.c
View file @
e456f46c
...
...
@@ -184,7 +184,8 @@ static void opencl_task_start(
err
=
clEnqueueWriteBuffer
(
plugin
->
command_queue
,
opencl_task
->
arguments
,
CL_FALSE
,
0
,
(
size_t
)
opencl_task
->
arguments_size
,
local_task
->
arguments
,
0
,
NULL
,
NULL
);
(
size_t
)
opencl_task
->
arguments_size
,
local_task
->
arguments
,
0
,
NULL
,
NULL
);
err
=
clEnqueueNDRangeKernel
(
plugin
->
command_queue
,
opencl_action
->
kernel
,
1
,
NULL
,
&
global_work_size
,
&
opencl_action
->
local_work_size
,
0
,
NULL
,
NULL
);
...
...
This diff is collapsed.
Click to expand it.
mtapi_plugins_c/mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.h
View file @
e456f46c
...
...
@@ -24,8 +24,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_OPENCL_C_SRC_EMBB_MTAPI_OPENCL_RUNTIMELINKER_H_
#define MTAPI_OPENCL_C_SRC_EMBB_MTAPI_OPENCL_RUNTIMELINKER_H_
#ifndef MTAPI_
PLUGINS_C_MTAPI_
OPENCL_C_SRC_EMBB_MTAPI_OPENCL_RUNTIMELINKER_H_
#define MTAPI_
PLUGINS_C_MTAPI_
OPENCL_C_SRC_EMBB_MTAPI_OPENCL_RUNTIMELINKER_H_
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -37,4 +37,4 @@ int embb_mtapi_opencl_link_at_runtime();
}
#endif
#endif // MTAPI_OPENCL_C_SRC_EMBB_MTAPI_OPENCL_RUNTIMELINKER_H_
#endif // MTAPI_
PLUGINS_C_MTAPI_
OPENCL_C_SRC_EMBB_MTAPI_OPENCL_RUNTIMELINKER_H_
This diff is collapsed.
Click to expand it.
mtapi_plugins_c/mtapi_opencl_c/test/embb_mtapi_opencl_test_linker.h
View file @
e456f46c
...
...
@@ -24,8 +24,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_OPENCL_C_TEST_EMBB_MTAPI_OPENCL_TEST_LINKER_H_
#define MTAPI_OPENCL_C_TEST_EMBB_MTAPI_OPENCL_TEST_LINKER_H_
#ifndef MTAPI_
PLUGINS_C_MTAPI_
OPENCL_C_TEST_EMBB_MTAPI_OPENCL_TEST_LINKER_H_
#define MTAPI_
PLUGINS_C_MTAPI_
OPENCL_C_TEST_EMBB_MTAPI_OPENCL_TEST_LINKER_H_
#include <partest/partest.h>
...
...
@@ -37,4 +37,4 @@ class LinkerTest : public partest::TestCase {
void
TestBasic
();
};
#endif // MTAPI_OPENCL_C_TEST_EMBB_MTAPI_OPENCL_TEST_LINKER_H_
#endif // MTAPI_
PLUGINS_C_MTAPI_
OPENCL_C_TEST_EMBB_MTAPI_OPENCL_TEST_LINKER_H_
This diff is collapsed.
Click to expand it.
mtapi_plugins_c/mtapi_opencl_c/test/embb_mtapi_opencl_test_task.h
View file @
e456f46c
...
...
@@ -24,8 +24,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef MTAPI_OPENCL_C_TEST_EMBB_MTAPI_OPENCL_TEST_TASK_H_
#define MTAPI_OPENCL_C_TEST_EMBB_MTAPI_OPENCL_TEST_TASK_H_
#ifndef MTAPI_
PLUGINS_C_MTAPI_
OPENCL_C_TEST_EMBB_MTAPI_OPENCL_TEST_TASK_H_
#define MTAPI_
PLUGINS_C_MTAPI_
OPENCL_C_TEST_EMBB_MTAPI_OPENCL_TEST_TASK_H_
#include <partest/partest.h>
...
...
@@ -37,4 +37,4 @@ class TaskTest : public partest::TestCase {
void
TestBasic
();
};
#endif // MTAPI_OPENCL_C_TEST_EMBB_MTAPI_OPENCL_TEST_TASK_H_
#endif // MTAPI_
PLUGINS_C_MTAPI_
OPENCL_C_TEST_EMBB_MTAPI_OPENCL_TEST_TASK_H_
This diff is collapsed.
Click to expand it.
scripts/run_cpplint.sh
View file @
e456f46c
...
...
@@ -79,7 +79,7 @@ retval=0
##Excluded files
RAND_FILES
=(
embb_mtapi_test_group.cc embb_mtapi_test_queue.cc embb_mtapi_test_task.cc queue_test-inl.h
)
for
project
in
base_c mtapi_c mtapi_
network_c
mtapi_opencl_c base_cpp mtapi_cpp tasks_cpp algorithms_cpp containers_cpp dataflow_cpp
for
project
in
base_c mtapi_c mtapi_
plugins_c/mtapi_network_c mtapi_plugins_c/
mtapi_opencl_c base_cpp mtapi_cpp tasks_cpp algorithms_cpp containers_cpp dataflow_cpp
do
echo
"-> Doing project:
$project
"
dir
=
$d
/
$project
...
...
This diff is collapsed.
Click to expand it.
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