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
a4de4a7b
Commit
a4de4a7b
authored
Sep 21, 2016
by
Misbah Mubarak
Browse files
Adding meta files for dragonfly model
parent
b9138d68
Changes
5
Show whitespace changes
Inline
Side-by-side
codes/net/dragonfly.h
View file @
a4de4a7b
...
...
@@ -55,6 +55,8 @@ struct terminal_message
unsigned
int
intm_lp_id
;
short
new_vc
;
short
saved_vc
;
int
saved_src_dest
;
/* last hop of the message, can be a terminal, local router or global router */
int
last_hop
;
/* For routing */
...
...
doc/BUILD_STEPS
View file @
a4de4a7b
...
...
@@ -53,6 +53,12 @@ working from the CODES master branches, use the ROSS master branch.
breaks
libdumpi
's function wrappers through const'
ifying
the
MPI
interface
).
For
building
DUMPI
with
mpich3
versions
and
higher
,
use
the
following
build
options
:
CFLAGS
=
"-DMPICH_SUPPRESS_PROTOTYPES=1 -DHAVE_PRAGMA_HP_SEC_DEF=1"
./
configure
--
enable
-
libdumpi
--
prefix
=$
INSTALL_PATH
Use
the
--
with
-
darshan
argument
to
configure
to
enable
the
optional
Darshan
I
/
O
workload
generator
(
http
://
www
.
mcs
.
anl
.
gov
/
research
/
projects
/
darshan
/).
In
order
to
use
...
...
scripts/allocation_gen/config_alloc.conf
View file @
a4de4a7b
CONT
1056
200
500
rand
792
200
src/Makefile.subdir
View file @
a4de4a7b
...
...
@@ -179,16 +179,13 @@ bin_PROGRAMS += src/network-workloads/model-net-dumpi-traces-dump
bin_PROGRAMS
+=
src/network-workloads/model-net-synthetic
bin_PROGRAMS
+=
src/network-workloads/model-net-synthetic-slimfly
src_workload_codes_workload_dump_SOURCES
=
\
src/workload/codes-workload-dump.c
src_network_workloads_model_net_mpi_replay_SOURCES
=
src/network-workloads/model-net-mpi-replay.c
src_network_workloads_model_net_synthetic_SOURCES
=
src/network-workloads/model-net-synthetic.c
src_network_workloads_model_net_synthetic_slimfly_SOURCES
=
src/network-workloads/model-net-synthetic-slimfly.c
src_network_workloads_model_net_dumpi_traces_dump_SOURCES
=
src/network-workloads/model-net-dumpi-traces-dump.c
#bin_PROGRAMS += src/network-workload/codes-nw-test
#src_network_workload_codes_nw_test_SOURCES = \
...
...
src/networks/model-net/dragonfly.c
View file @
a4de4a7b
...
...
@@ -2044,7 +2044,7 @@ void dragonfly_rsample_fin(router_state * s,
(
void
)
lp
;
const
dragonfly_param
*
p
=
s
->
params
;
if
(
!
g_tw_mynode
)
if
(
s
->
router_id
==
0
)
{
/* write metadata file */
...
...
@@ -2329,7 +2329,17 @@ dragonfly_terminal_final( terminal_state * s,
{
model_net_print_stats
(
lp
->
gid
,
s
->
dragonfly_stats_array
);
//rc_stack_gc(lp, s->st);
if
(
s
->
terminal_id
==
0
)
{
/* write metadata file */
char
meta_fname
[
64
];
sprintf
(
meta_fname
,
"dragonfly-msg-stats.meta"
);
FILE
*
fp
=
fopen
(
meta_fname
,
"w"
);
fprintf
(
fp
,
"# Format <LP id> <Terminal ID> <Total Data Size> <Avg packet latency> <# Flits/Packets finished> <Avg hops> <Busy Time>"
);
fclose
(
fp
);
}
int
written
=
0
;
if
(
!
s
->
terminal_id
)
...
...
@@ -2379,11 +2389,17 @@ void dragonfly_router_final(router_state * s,
const
dragonfly_param
*
p
=
s
->
params
;
int
written
=
0
;
if
(
!
s
->
router_id
)
if
(
s
->
router_id
==
0
)
{
written
=
sprintf
(
s
->
output_buf
,
"# Format <LP ID> <Group ID> <Router ID> <Busy time per router port(s)>"
);
written
+=
sprintf
(
s
->
output_buf
+
written
,
"# Router ports in the order: %d local channels, %d global channels"
,
/* write metadata file */
char
meta_fname
[
64
];
sprintf
(
meta_fname
,
"dragonfly-msg-stats.meta"
);
FILE
*
fp
=
fopen
(
meta_fname
,
"w"
);
fprintf
(
fp
,
"# Format <LP ID> <Group ID> <Router ID> <Busy time per router port(s)>"
);
fprintf
(
fp
,
"# Router ports in the order: %d local channels, %d global channels"
,
p
->
num_routers
,
p
->
num_global_channels
);
fclose
(
fp
);
}
written
+=
sprintf
(
s
->
output_buf
+
written
,
"
\n
%llu %d %d"
,
LLU
(
lp
->
gid
),
...
...
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