Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
O
openfpm_vcluster
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_vcluster
Commits
922c19a3
Commit
922c19a3
authored
May 24, 2015
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing long communication
parent
24fe4273
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/VCluster_unit_tests.hpp
src/VCluster_unit_tests.hpp
+7
-0
No files found.
src/VCluster_unit_tests.hpp
View file @
922c19a3
...
...
@@ -23,6 +23,7 @@
BOOST_AUTO_TEST_SUITE
(
VCluster_test
)
size_t
global_step
=
0
;
size_t
global_rank
;
// Alloc the buffer to receive the messages
...
...
@@ -30,6 +31,11 @@ void * msg_alloc(size_t msg_i ,size_t total_msg, size_t total_p, size_t i,size_t
{
openfpm
::
vector
<
openfpm
::
vector
<
unsigned
char
>>
*
v
=
static_cast
<
openfpm
::
vector
<
openfpm
::
vector
<
unsigned
char
>>
*>
(
ptr
);
// Debug
if
(
global_rank
==
48
)
std
::
cout
<<
"Total message: "
<<
total_p
<<
" from: "
<<
msg_i
<<
"
\n
"
;
if
(
global_v_cluster
->
getProcessingUnits
()
<=
8
)
BOOST_REQUIRE_EQUAL
(
total_p
,
global_v_cluster
->
getProcessingUnits
()
-
1
);
else
...
...
@@ -154,6 +160,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
// send/recv messages
global_rank
=
vcl
.
getProcessUnitID
();
size_t
n_proc
=
vcl
.
getProcessingUnits
();
// Checking short communication pattern
...
...
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