Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_vcluster
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_vcluster
Commits
dba6676c
Commit
dba6676c
authored
Feb 15, 2018
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing communications in case of known size and processors
parent
d2f79fe7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
src/VCluster/VCluster.hpp
src/VCluster/VCluster.hpp
+1
-0
src/VCluster/VCluster_semantic_unit_tests.hpp
src/VCluster/VCluster_semantic_unit_tests.hpp
+13
-0
No files found.
src/VCluster/VCluster.hpp
View file @
dba6676c
...
...
@@ -144,6 +144,7 @@ class Vcluster: public Vcluster_base
{
Vcluster_base
::
sendrecvMultipleMessagesNBX
(
prc_send
.
size
(),(
size_t
*
)
send_sz_byte
.
getPointer
(),(
size_t
*
)
prc_send
.
getPointer
(),(
void
**
)
send_buf
.
getPointer
(),
prc_recv
.
size
(),(
size_t
*
)
prc_recv
.
getPointer
(),
msg_alloc_known
,(
void
*
)
&
bi
);
sz_recv_byte
=
sz_recv_tmp
;
}
}
else
...
...
src/VCluster/VCluster_semantic_unit_tests.hpp
View file @
dba6676c
...
...
@@ -782,6 +782,11 @@ BOOST_AUTO_TEST_CASE (Vcluster_semantic_sendrecv_receive_size_known)
prc_send
.
add
((
i
+
vcl
.
getProcessUnitID
())
%
vcl
.
getProcessingUnits
());
}
// We receive to fill prc_recv2 and sz_recv2
vcl
.
SSendRecv
(
v1
,
v2
,
prc_send
,
prc_recv2
,
sz_recv2
);
// We reset v2 and we receive again saying that the processors are known and we know the elements
v2
.
clear
();
vcl
.
SSendRecv
(
v1
,
v2
,
prc_send
,
prc_recv2
,
sz_recv2
,
RECEIVE_KNOWN
|
KNOWN_ELEMENT_OR_BYTE
);
vcl
.
SSendRecv
(
v1
,
v3
,
prc_send
,
prc_recv3
,
sz_recv3
);
...
...
@@ -858,6 +863,14 @@ BOOST_AUTO_TEST_CASE (Vcluster_semantic_sendrecv_receive_known)
prc_send
.
add
((
i
+
vcl
.
getProcessUnitID
())
%
vcl
.
getProcessingUnits
());
}
// Receive to fill prc_recv2
vcl
.
SSendRecv
(
v1
,
v2
,
prc_send
,
prc_recv2
,
sz_recv2
);
// Reset v2 and sz_recv2
v2
.
clear
();
sz_recv2
.
clear
();
vcl
.
SSendRecv
(
v1
,
v2
,
prc_send
,
prc_recv2
,
sz_recv2
,
RECEIVE_KNOWN
);
vcl
.
SSendRecv
(
v1
,
v3
,
prc_send
,
prc_recv3
,
sz_recv3
);
...
...
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