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
codes
codes
Commits
e0a1d00f
Commit
e0a1d00f
authored
Mar 29, 2018
by
Misbah Mubarak
Browse files
merging with current mpi-sim version
parent
d9375649
Changes
5
Hide whitespace changes
Inline
Side-by-side
scripts/allocation_gen/config_alloc-upd.conf
View file @
e0a1d00f
rand
8832
CONT
3456
2
1
1024
7500
1024
128
scripts/allocation_gen/config_alloc.conf
View file @
e0a1d00f
rand
8316
2048
2048
CONT
3456
1024
128
scripts/allocation_gen/listgen.py
View file @
e0a1d00f
...
...
@@ -30,7 +30,6 @@ def cube_alloc(job_ranks, total_nodes):
row
.
append
(
i
+
offset
)
layer
+=
row
cube
+=
layer
print
"list length is"
,
len
(
cube
),
cube
f
=
open
(
'cube_allc_linear.conf'
,
'w'
)
for
rankid
in
range
(
len
(
cube
)):
...
...
@@ -57,7 +56,6 @@ def permeate_alloc(job_ranks, total_nodes):
permeate_list
=
node_list
[
num_rank
*
permeate_area
:
(
num_rank
+
1
)
*
permeate_area
]
alloc_list
=
random
.
sample
(
permeate_list
,
job_ranks
[
num_rank
])
alloc_list
.
sort
()
print
"length of alloc list"
,
len
(
alloc_list
),
"
\n
"
,
alloc_list
,
"
\n
"
for
idx
in
range
(
len
(
alloc_list
)):
f
.
write
(
"%s "
%
alloc_list
[
idx
])
f
.
write
(
"
\n
"
)
...
...
@@ -70,7 +68,6 @@ def random_alloc(job_rank, total_nodes):
for
rankid
in
range
(
len
(
job_rank
)):
alloc_list
=
random
.
sample
(
node_list
,
job_rank
[
rankid
])
node_list
=
[
i
for
i
in
node_list
if
(
i
not
in
alloc_list
)]
print
"length of alloc list"
,
len
(
alloc_list
),
"
\n
"
,
alloc_list
,
"
\n
"
for
idx
in
range
(
len
(
alloc_list
)):
f
.
write
(
"%s "
%
alloc_list
[
idx
])
f
.
write
(
"
\n
"
)
...
...
@@ -110,22 +107,22 @@ def stripe_alloc(job_ranks, total_nodes):
def
policy_select
(
plcy
,
job_ranks
,
total_nodes
):
if
plcy
==
"CONT"
:
print
"contiguous alloction!"
print
(
"contiguous alloction!"
)
contiguous_alloc
(
job_ranks
,
total_nodes
)
elif
plcy
==
"rand"
:
print
"random allocation!"
print
(
"random allocation!"
)
random_alloc
(
job_ranks
,
total_nodes
)
elif
plcy
==
"STRIPE"
:
print
"stripe allcation!"
print
(
"stripe allcation!"
)
stripe_alloc
(
job_ranks
,
total_nodes
)
elif
plcy
==
"PERMEATE"
:
print
"permeate allocation!"
print
(
"permeate allocation!"
)
permeate_alloc
(
job_ranks
,
total_nodes
)
elif
plcy
==
"CUBE"
:
print
"cube allocation!"
print
(
"cube allocation!"
)
cube_alloc
(
job_ranks
,
total_nodes
)
else
:
print
"NOT Supported yet!"
print
(
"NOT Supported yet!"
)
if
__name__
==
"__main__"
:
...
...
@@ -139,8 +136,8 @@ if __name__ == "__main__":
f
.
close
()
alloc_plcy
=
array
.
pop
(
0
)
total_nodes
=
array
.
pop
(
0
)
print
alloc_plcy
print
(
alloc_plcy
)
array
=
map
(
int
,
array
)
print
array
print
(
array
)
policy_select
(
alloc_plcy
,
array
,
total_nodes
)
src/network-workloads/conf/modelnet-mpi-test.conf
View file @
e0a1d00f
...
...
@@ -2,7 +2,7 @@ LPGROUPS
{
MODELNET_GRP
{
repetitions
=
"2
7
"
;
repetitions
=
"2
56
"
;
modelnet_simplenet
=
"1"
;
nw
-
lp
=
"1"
;
}
...
...
src/network-workloads/model-net-mpi-replay.c
View file @
e0a1d00f
/*
* Copyright (C) 2014 University of Chicago.
* Copyright (C) 2014 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*
*/
...
...
@@ -434,7 +434,7 @@ static void update_message_size(
tmp
->
num_msgs
++
;
tmp
->
agg_latency
+=
tw_now
(
lp
)
-
msg_init_time
;
tmp
->
avg_latency
=
(
tmp
->
agg_latency
/
tmp
->
num_msgs
);
// printf("\n Msg size %d aggregate latency %f num messages %d ", qitem->num_bytes, tmp->agg_latency, tmp->num_msgs);
// printf("\n Msg size %
ll
d aggregate latency %f num messages %d ", qitem->num_bytes, tmp->agg_latency, tmp->num_msgs);
}
}
static
void
notify_background_traffic_rc
(
...
...
@@ -2560,6 +2560,7 @@ const tw_optdef app_opt [] =
TWOPT_CHAR
(
"alloc_file"
,
alloc_file
,
"allocation file name"
),
TWOPT_CHAR
(
"workload_conf_file"
,
workloads_conf_file
,
"workload config file name"
),
TWOPT_UINT
(
"num_net_traces"
,
num_net_traces
,
"number of network traces"
),
TWOPT_UINT
(
"payload_sz"
,
payload_sz
,
"size of payload for synthetic traffic "
),
TWOPT_UINT
(
"eager_threshold"
,
EAGER_THRESHOLD
,
"the transition point for eager/rendezvous protocols (Default 8192)"
),
TWOPT_UINT
(
"disable_compute"
,
disable_delay
,
"disable compute simulation"
),
TWOPT_UINT
(
"payload_sz"
,
payload_sz
,
"size of the payload for synthetic traffic"
),
...
...
@@ -2790,7 +2791,6 @@ int modelnet_mpi_replay(MPI_Comm comm, int* argc, char*** argv )
mean_interval
,
rand
());
msg_size_log
=
fopen
(
log_name
,
"w+"
);
if
(
!
msg_size_log
)
...
...
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