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
f09362a3
Commit
f09362a3
authored
Jan 11, 2016
by
Misbah Mubarak
Browse files
Fixing warnings, local variable was being declared twice
parent
eeb658fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networks/model-net/dragonfly.c
View file @
f09362a3
...
...
@@ -1237,12 +1237,12 @@ void packet_send(terminal_state * s, tw_bf * bf, terminal_message * msg,
if
(
cur_entry
!=
NULL
&&
s
->
vc_occupancy
[
0
]
+
s
->
params
->
chunk_size
<=
s
->
params
->
cn_vc_size
)
{
bf
->
c3
=
1
;
terminal_message
*
m
;
terminal_message
*
m
_new
;
ts
=
g_tw_lookahead
+
s
->
params
->
cn_delay
+
tw_rand_unif
(
lp
->
rng
);
tw_event
*
e
=
model_net_method_event_new
(
lp
->
gid
,
ts
,
lp
,
DRAGONFLY
,
(
void
**
)
&
m
,
NULL
);
m
->
type
=
T_SEND
;
m
->
magic
=
terminal_magic_num
;
e
=
model_net_method_event_new
(
lp
->
gid
,
ts
,
lp
,
DRAGONFLY
,
(
void
**
)
&
m
_new
,
NULL
);
m
_new
->
type
=
T_SEND
;
m
_new
->
magic
=
terminal_magic_num
;
tw_event_send
(
e
);
}
else
{
/* If not then the LP will wait for another credit or packet generation */
...
...
@@ -1796,7 +1796,6 @@ static void node_collective_fan_out(terminal_state * s,
msg
->
remote_event_size_bytes
);
}
msg_new
->
type
=
D_COLLECTIVE_FAN_OUT
;
msg_new
->
sender_node
=
s
->
node_id
;
tw_event_send
(
e_new
);
...
...
@@ -2612,13 +2611,13 @@ router_packet_send( router_state * s,
if
(
cur_entry
==
NULL
)
cur_entry
=
s
->
pending_msgs
[
output_port
][
0
];
if
(
cur_entry
!=
NULL
)
{
bf
->
c3
=
1
;
terminal_message
*
m
;
terminal_message
*
m
_new
;
ts
=
g_tw_lookahead
+
delay
+
tw_rand_unif
(
lp
->
rng
);
tw_event
*
e
=
tw_event_new
(
lp
->
gid
,
ts
,
lp
);
m
=
tw_event_data
(
e
);
m
->
type
=
R_SEND
;
m
->
magic
=
router_magic_num
;
m
->
vc_index
=
output_port
;
e
=
tw_event_new
(
lp
->
gid
,
ts
,
lp
);
m
_new
=
tw_event_data
(
e
);
m
_new
->
type
=
R_SEND
;
m
_new
->
magic
=
router_magic_num
;
m
_new
->
vc_index
=
output_port
;
tw_event_send
(
e
);
}
else
{
bf
->
c4
=
1
;
...
...
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