Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
39bf10b3
Commit
39bf10b3
authored
Nov 11, 2015
by
Misbah Mubarak
Browse files
memory fixes in mpi sim layer
parent
f5539ee1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/models/network-workloads/model-net-mpi-wrklds.c
View file @
39bf10b3
...
...
@@ -459,6 +459,8 @@ static void codes_exec_mpi_wait_rc(nw_state* s, nw_message* m, tw_lp* lp, struct
{
if
(
s
->
pending_waits
)
{
struct
pending_waits
*
wait_op
=
s
->
pending_waits
;
free
(
wait_op
);
s
->
pending_waits
=
NULL
;
return
;
}
...
...
@@ -520,6 +522,8 @@ static void codes_exec_mpi_wait_all_rc(nw_state* s, nw_message* m, tw_lp* lp, st
}
else
{
struct
pending_waits
*
wait_op
=
s
->
pending_waits
;
free
(
wait_op
);
s
->
pending_waits
=
NULL
;
assert
(
!
s
->
pending_waits
);
if
(
lp
->
gid
==
TRACE
)
...
...
@@ -573,7 +577,6 @@ static void codes_exec_mpi_wait_all(
wait_op
->
mpi_op
=
mpi_op
;
wait_op
->
num_completed
=
num_completed
;
wait_op
->
start_time
=
tw_now
(
lp
);
//rc_stack_push(lp, wait_op, free, s->st);
s
->
pending_waits
=
wait_op
;
}
}
...
...
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