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
e2ab7bbe
Commit
e2ab7bbe
authored
May 26, 2015
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing bug no resize of status vector potentially memory corruption
parent
6ba41e3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
src/VCluster.hpp
src/VCluster.hpp
+5
-0
src/VCluster_unit_tests.hpp
src/VCluster_unit_tests.hpp
+5
-5
No files found.
src/VCluster.hpp
View file @
e2ab7bbe
...
...
@@ -406,7 +406,12 @@ public:
{
int
err
=
0
;
// if req == 0 return
if
(
req
.
size
()
==
0
)
return
;
// Wait for all the requests
stat
.
resize
(
req
.
size
());
err
=
MPI_Waitall
(
req
.
size
(),
&
req
.
get
(
0
),
&
stat
.
get
(
0
));
// MPI error get the message and abort MPI
...
...
src/VCluster_unit_tests.hpp
View file @
e2ab7bbe
...
...
@@ -198,7 +198,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
else
p_id
=
p_id
%
n_proc
;
if
(
p_id
!=
vcl
.
getProcessUnitID
())
if
(
p_id
!=
(
long
int
)
vcl
.
getProcessUnitID
())
recv_message
.
get
(
p_id
).
resize
(
j
);
}
...
...
@@ -232,7 +232,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
else
p_id
=
p_id
%
n_proc
;
if
(
p_id
!=
vcl
.
getProcessUnitID
())
if
(
p_id
!=
(
long
int
)
vcl
.
getProcessUnitID
())
{
std
::
ostringstream
msg
;
msg
<<
"Hello from "
<<
p_id
<<
" to "
<<
vcl
.
getProcessUnitID
();
...
...
@@ -407,7 +407,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
else
p_id
=
p_id
%
n_proc
;
if
(
p_id
!=
vcl
.
getProcessUnitID
())
if
(
p_id
!=
(
long
int
)
vcl
.
getProcessUnitID
())
recv_message
.
get
(
p_id
).
resize
(
j
);
}
...
...
@@ -433,7 +433,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
#endif
// Check the message
for
(
long
int
i
=
0
;
i
<
8
&&
i
<
n_proc
;
i
++
)
for
(
long
int
i
=
0
;
i
<
8
&&
i
<
(
long
int
)
n_proc
;
i
++
)
{
long
int
p_id
=
(
-
(
i
+
1
)
*
ps
+
(
long
int
)
vcl
.
getProcessUnitID
());
if
(
p_id
<
0
)
...
...
@@ -441,7 +441,7 @@ BOOST_AUTO_TEST_CASE( VCluster_use_sendrecv)
else
p_id
=
p_id
%
n_proc
;
if
(
p_id
!=
vcl
.
getProcessUnitID
())
if
(
p_id
!=
(
long
int
)
vcl
.
getProcessUnitID
())
{
std
::
ostringstream
msg
;
msg
<<
"Hello from "
<<
p_id
<<
" to "
<<
vcl
.
getProcessUnitID
();
...
...
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