Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
5aa9a9e8
Commit
5aa9a9e8
authored
Jan 11, 2017
by
Noah Wolfe
Browse files
Options
Browse Files
Download
Plain Diff
Merging slim fly tomacs journal updates
parents
227b7a0a
d002c48e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2129 additions
and
2133 deletions
+2129
-2133
codes/net/slimfly.h
codes/net/slimfly.h
+6
-3
src/network-workloads/model-net-synthetic-slimfly.c
src/network-workloads/model-net-synthetic-slimfly.c
+8
-2
src/networks/model-net/slimfly.c
src/networks/model-net/slimfly.c
+2115
-2128
No files found.
codes/net/slimfly.h
View file @
5aa9a9e8
...
...
@@ -52,7 +52,7 @@ struct slim_terminal_message
/* For routing */
int
intm_group_id
;
int
intm_router_id
;
in
t
chunk_id
;
uint64_
t
chunk_id
;
uint64_t
packet_size
;
uint64_t
message_id
;
uint64_t
total_size
;
...
...
@@ -73,8 +73,11 @@ struct slim_terminal_message
short
path_type
;
tw_stime
saved_available_time
;
tw_stime
saved_avg_time
;
tw_stime
saved_credit_time
;
tw_stime
saved_collective_init_time
;
tw_stime
saved_rcv_time
;
tw_stime
saved_busy_time
;
tw_stime
saved_total_time
;
// tw_stime saved_credit_time;
// tw_stime saved_collective_init_time;
tw_stime
saved_hist_start_time
;
tw_stime
msg_start_time
;
...
...
src/network-workloads/model-net-synthetic-slimfly.c
View file @
5aa9a9e8
...
...
@@ -230,11 +230,11 @@ static void issue_event(
}
if
(
load
!=
0
)
{
MEAN_INTERVAL
=
bytes_to_ns
(
this_packet_size
,
load
*
this_global_bandwidth
)
+
this_link_delay
;
MEAN_INTERVAL
=
bytes_to_ns
(
this_packet_size
,
load
*
this_global_bandwidth
);
}
/* skew each kickoff event slightly to help avoid event ties later on */
kickoff_time
=
g_tw_lookahead
+
MEAN_INTERVAL
+
tw_rand_exponential
(
lp
->
rng
,
(
double
)
MEAN_INTERVAL
/
100
);
kickoff_time
=
g_tw_lookahead
+
tw_rand_exponential
(
lp
->
rng
,
MEAN_INTERVAL
);
e
=
tw_event_new
(
lp
->
gid
,
kickoff_time
,
lp
);
m
=
tw_event_data
(
e
);
...
...
@@ -256,8 +256,13 @@ static void handle_kickoff_rev_event(
svr_msg
*
m
,
tw_lp
*
lp
)
{
if
(
b
->
c1
)
tw_rand_reverse_unif
(
lp
->
rng
);
ns
->
msg_sent_count
--
;
model_net_event_rc
(
net_id
,
lp
,
PAYLOAD_SZ
);
tw_rand_reverse_unif
(
lp
->
rng
);
}
static
void
handle_kickoff_event
(
svr_state
*
ns
,
...
...
@@ -284,6 +289,7 @@ static void handle_kickoff_event(
/* in case of uniform random traffic, send to a random destination. */
if
(
traffic
==
UNIFORM
)
{
b
->
c1
=
1
;
local_dest
=
tw_rand_integer
(
lp
->
rng
,
0
,
num_nodes
-
1
);
// printf("\n LP %ld sending to %d ", lp->gid, local_dest);
}
...
...
src/networks/model-net/slimfly.c
View file @
5aa9a9e8
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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