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
cacd55b9
Commit
cacd55b9
authored
Mar 29, 2018
by
Neil McGlohon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'workloads' of xgitlab.cels.anl.gov:codes/codes into dfp-online-workloads
parents
a0f83d31
af00f056
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
89 additions
and
143 deletions
+89
-143
scripts/allocation_gen/config_alloc-upd.conf
scripts/allocation_gen/config_alloc-upd.conf
+3
-3
scripts/allocation_gen/config_alloc.conf
scripts/allocation_gen/config_alloc.conf
+3
-4
scripts/allocation_gen/listgen.py
scripts/allocation_gen/listgen.py
+8
-11
src/network-workloads/conf/modelnet-mpi-test.conf
src/network-workloads/conf/modelnet-mpi-test.conf
+1
-1
src/network-workloads/model-net-mpi-replay.c
src/network-workloads/model-net-mpi-replay.c
+72
-121
src/workload/codes-workload.c
src/workload/codes-workload.c
+1
-2
src/workload/methods/codes-online-comm-wrkld.C
src/workload/methods/codes-online-comm-wrkld.C
+1
-1
No files found.
scripts/allocation_gen/config_alloc-upd.conf
View file @
cacd55b9
rand
8832
CONT
3456
2
1
1024
7500
1024
128
scripts/allocation_gen/config_alloc.conf
View file @
cacd55b9
rand
8316
2048
2048
CONT
3456
1024
128
scripts/allocation_gen/listgen.py
View file @
cacd55b9
...
...
@@ -33,7 +33,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
)):
...
...
@@ -60,7 +59,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
"
)
...
...
@@ -73,7 +71,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
"
)
...
...
@@ -113,22 +110,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__"
:
...
...
@@ -142,8 +139,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 @
cacd55b9
...
...
@@ -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 @
cacd55b9
This diff is collapsed.
Click to expand it.
src/workload/codes-workload.c
View file @
cacd55b9
...
...
@@ -227,7 +227,6 @@ void codes_workload_get_next(
return
;
}
/* ask generator for the next operation */
method_array
[
wkld_id
]
->
codes_workload_get_next
(
app_id
,
rank
,
op
);
assert
(
op
->
op_type
);
...
...
@@ -253,7 +252,7 @@ void codes_workload_get_next_rc(
}
assert
(
tmp
);
tmp_op
=
(
struct
rc_op
*
)
calloc
(
1
,
sizeof
(
*
tmp
_op
));
tmp_op
=
(
struct
rc_op
*
)
malloc
(
sizeof
(
struct
rc
_op
));
assert
(
tmp_op
);
tmp_op
->
op
=
*
op
;
tmp_op
->
next
=
tmp
->
lifo
;
...
...
src/workload/methods/codes-online-comm-wrkld.C
View file @
cacd55b9
...
...
@@ -25,7 +25,7 @@
#define ALLREDUCE_SHORT_MSG_SIZE 2048
#define DBG_COMM 0
//
#define DBG_COMM 0
using
namespace
std
;
...
...
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