Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthieu Dorier
codes
Commits
256e474f
Commit
256e474f
authored
Jun 18, 2014
by
Shane Snyder
Browse files
Update replay tool for new recorder params
parent
2b17d257
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/workload/codes-workload-mpi-replay.c
View file @
256e474f
...
...
@@ -151,7 +151,7 @@ int load_workload(char *conf_path, int rank)
configuration_get_value
(
&
config
,
"PARAMS"
,
"log_file_path"
,
d_params
.
log_file_path
,
MAX_NAME_LENGTH_WKLD
);
configuration_get_value
(
&
config
,
"PARAMS"
,
"aggregator_count"
,
aggregator_count
,
10
);
d_params
.
aggregator_cnt
=
ato
i
(
aggregator_count
);
d_params
.
aggregator_cnt
=
ato
l
(
aggregator_count
);
return
codes_workload_load
(
workload_type
,
(
char
*
)
&
d_params
,
rank
);
}
...
...
@@ -175,10 +175,13 @@ int load_workload(char *conf_path, int rank)
}
else
if
(
strcmp
(
workload_type
,
"recorder_io_workload"
)
==
0
)
{
struct
recorder_params
r_params
;
char
nprocs
[
10
];
/* get the recorder params from the config file */
configuration_get_value
(
&
config
,
"PARAMS"
,
"trace_dir_path"
,
r_params
.
trace_dir_path
,
MAX_NAME_LENGTH_WKLD
);
configuration_get_value
(
&
config
,
"PARAMS"
,
"nprocs"
,
nprocs
,
10
);
r_params
.
nprocs
=
atol
(
nprocs
);
return
codes_workload_load
(
workload_type
,
(
char
*
)
&
r_params
,
rank
);
...
...
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