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
3800d2b4
authored
Mar 31, 2015
by
Tobias Fuchs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dataflow_cpp: increased number of task queues in unit test
parent
52a5d250
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
+17
-1
dataflow_cpp/test/dataflow_cpp_test_simple.cc
+17
-1
No files found.
dataflow_cpp/test/dataflow_cpp_test_simple.cc
View file @
3800d2b4
...
@@ -142,8 +142,22 @@ SimpleTest::SimpleTest() {
...
@@ -142,8 +142,22 @@ SimpleTest::SimpleTest() {
CreateUnit
(
"dataflow_cpp simple test"
).
Add
(
&
SimpleTest
::
TestBasic
,
this
);
CreateUnit
(
"dataflow_cpp simple test"
).
Add
(
&
SimpleTest
::
TestBasic
,
this
);
}
}
#define MTAPI_DOMAIN_ID 1
#define MTAPI_NODE_ID 1
void
SimpleTest
::
TestBasic
()
{
void
SimpleTest
::
TestBasic
()
{
embb
::
tasks
::
Node
::
Initialize
(
1
,
1
);
// All available cores
embb
::
base
::
CoreSet
core_set
(
true
);
embb
::
tasks
::
Node
::
Initialize
(
MTAPI_DOMAIN_ID
,
MTAPI_NODE_ID
,
core_set
,
1024
,
// max tasks (default: 1024)
128
,
// max groups (default: 128)
128
,
// max queues (default: 16)
1024
,
// queue capacity (default: 1024)
4
// num priorities (default: 4)
);
for
(
int
ii
=
0
;
ii
<
10000
;
ii
++
)
{
for
(
int
ii
=
0
;
ii
<
10000
;
ii
++
)
{
ArraySink
<
TEST_COUNT
>
asink
;
ArraySink
<
TEST_COUNT
>
asink
;
...
@@ -163,6 +177,7 @@ void SimpleTest::TestBasic() {
...
@@ -163,6 +177,7 @@ void SimpleTest::TestBasic() {
filter_array
[
kk
]
=
-
1
;
filter_array
[
kk
]
=
-
1
;
mult_array
[
kk
]
=
-
1
;
mult_array
[
kk
]
=
-
1
;
}
}
source_counter
=
0
;
source_counter
=
0
;
pred_counter
=
0
;
pred_counter
=
0
;
mult_counter
=
0
;
mult_counter
=
0
;
...
@@ -198,3 +213,4 @@ void SimpleTest::TestBasic() {
...
@@ -198,3 +213,4 @@ void SimpleTest::TestBasic() {
PT_EXPECT
(
embb_get_bytes_allocated
()
==
0
);
PT_EXPECT
(
embb_get_bytes_allocated
()
==
0
);
}
}
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