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
Xin Wang
codes-dev
Commits
1ca00bc8
Commit
1ca00bc8
authored
Mar 29, 2016
by
Misbah Mubarak
Browse files
Adding new line characters in the meta files (required for vis purposes)
parent
a642eb0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networks/model-net/dragonfly.c
View file @
1ca00bc8
...
...
@@ -2017,11 +2017,11 @@ void dragonfly_rsample_fin(router_state * s,
sprintf
(
meta_fname
,
"dragonfly-router-sampling.meta"
);
FILE
*
fp
=
fopen
(
meta_fname
,
"w"
);
fprintf
(
fp
,
"Router sample struct format:
\n
router_id (tw_lpid)
\n
busy time for each of the %d links (double)
\n
"
"link traffic for each of the %d links (int64_t)
\n
sample end time (double) forward events per sample
\n
reverse events per sample "
,
fprintf
(
fp
,
"Router sample struct format:
\n
router_id (tw_lpid)
\n
busy time for each of the %d links (double)
\n
"
"link traffic for each of the %d links (int64_t)
\n
sample end time (double) forward events per sample
\n
reverse events per sample "
,
p
->
radix
,
p
->
radix
);
fprintf
(
fp
,
"Ordering of links
\n
%d local (router-router same group) channels
\n
%d global (router-router remote group)"
" channels
\n
%d terminal channels"
,
p
->
radix
/
2
,
p
->
radix
/
4
,
p
->
radix
/
4
);
fprintf
(
fp
,
"
\n\n
Ordering of links
\n
%d local (router-router same group) channels
\n
%d global (router-router remote group)"
" channels
\n
%d terminal channels"
,
p
->
radix
/
2
,
p
->
radix
/
4
,
p
->
radix
/
4
);
fclose
(
fp
);
}
char
rt_fn
[
MAX_NAME_LENGTH
];
...
...
@@ -2182,9 +2182,9 @@ void dragonfly_sample_fin(terminal_state * s,
sprintf
(
meta_fname
,
"dragonfly-cn-sampling.meta"
);
FILE
*
fp
=
fopen
(
meta_fname
,
"w"
);
fprintf
(
fp
,
"Compute node sample format
:
terminal_id (tw_lpid)
\
t
finished chunks (long)
\t
"
"data size per sample (long)
\
t
finished hops (double)
\
t
time to finish chunks (double)
\t
"
"busy time (double)
\
t
sample end time(double)
\
t
forward events (long)
\
t
reverse events (long)"
);
fprintf
(
fp
,
"Compute node sample format
\n
terminal_id (tw_lpid)
\
n
finished chunks (long)"
"
\n
data size per sample (long)
\
n
finished hops (double)
\
n
time to finish chunks (double)"
"
\n
busy time (double)
\
n
sample end time(double)
\
n
forward events (long)
\
n
reverse events (long)"
);
fclose
(
fp
);
}
char
rt_fn
[
MAX_NAME_LENGTH
];
...
...
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