Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
codes
Commits
281e4a95
Commit
281e4a95
authored
Jul 31, 2015
by
Jonathan Jenkins
Browse files
remove bad memcpys (note: rc is broken)
parent
9cc64008
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/models/network-workloads/model-net-mpi-wrklds.c
View file @
281e4a95
...
...
@@ -719,7 +719,8 @@ static int mpi_queue_remove_matching_op(nw_state* s, tw_lp* lp, struct mpi_queue
}
if
(
rcv_val
>=
0
)
{
memcpy
(
&
m
->
u
.
rc
.
ptr_match_op
,
&
tmp
->
mpi_op
,
sizeof
(
struct
codes_workload_op
));
/* TODO: fix RC */
/*memcpy(&m->u.rc.ptr_match_op, &tmp->mpi_op, sizeof(struct codes_workload_op));*/
if
(
mpi_queue
->
queue_head
==
mpi_queue
->
queue_tail
)
{
mpi_queue
->
queue_tail
=
NULL
;
...
...
@@ -755,7 +756,8 @@ static int mpi_queue_remove_matching_op(nw_state* s, tw_lp* lp, struct mpi_queue
}
if
(
rcv_val
>=
0
)
{
memcpy
(
&
m
->
u
.
rc
.
ptr_match_op
,
&
elem
->
mpi_op
,
sizeof
(
struct
codes_workload_op
));
/* TODO: fix RC */
/*memcpy(&m->u.rc.ptr_match_op, &elem->mpi_op, sizeof(struct codes_workload_op));*/
if
(
elem
==
mpi_queue
->
queue_tail
)
mpi_queue
->
queue_tail
=
tmp
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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