Skip to content

Commit

Permalink
Fixed run repetitions time measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
ecamiloinacio committed May 25, 2018
1 parent 8730dfe commit c2f2ef0
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 90 deletions.
76 changes: 76 additions & 0 deletions examples/less_tasks_trec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"runs": [
{
"num_repetitions": 1,
"test": {
"file_mode": "Nx1",
"file_name": "./testfile",
"file_name_append_sequence_num": true,
"workload": {
"num_tasks": 4,
"offset": {
"access_pattern": "sequential",
"data_sizes": [
"100M"
],
"request_sizes": [
"1K"
]
}
},
"afio": {
"posix": {
}
}
}
},
{
"num_repetitions": 1,
"test": {
"file_mode": "Nx1",
"file_name": "./testfile",
"file_name_append_sequence_num": true,
"workload": {
"num_tasks": 2,
"offset": {
"access_pattern": "sequential",
"data_sizes": [
"100M"
],
"request_sizes": [
"1K"
]
}
},
"afio": {
"posix": {
}
}
}
},
{
"num_repetitions": 1,
"test": {
"file_mode": "Nx1",
"file_name": "./testfile",
"file_name_append_sequence_num": true,
"workload": {
"num_tasks": 4,
"offset": {
"access_pattern": "sequential",
"data_sizes": [
"100M"
],
"request_sizes": [
"1K"
]
}
},
"afio": {
"posix": {
}
}
}
}
]
}
9 changes: 5 additions & 4 deletions src/iore_run.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,15 @@ run_exec (iore_run_t *this, unsigned int rpl_id)
{
unsigned int i;
for (i = 1; i <= this->num_repetitions && !rerr; i++)
{
rerr = run_rept_exec (this, rpl_id, i);
MPI_Barrier (ctx.comm);
}
rerr = run_rept_exec (this, rpl_id, i);
}
rerr = run_post ();

iore_trec_run_t *trec_run = trec_run_stop ();
run_show_summary (trec_run);

MPI_Barrier (ctx.comm);

return rerr;
} /* run_exec () */

Expand Down Expand Up @@ -133,6 +132,8 @@ run_rept_exec (iore_run_t *run, unsigned int rpl_id, unsigned int rpt_id)
iore_trec_run_rept_t *trec_run_rept = trec_run_rept_stop ();
run_rept_show_summary (trec_run_rept);

MPI_Barrier (ctx.comm);

return rerr;
} /* run_rept_exec () */

Expand Down
86 changes: 0 additions & 86 deletions test/mpiio_file_view.c

This file was deleted.

0 comments on commit c2f2ef0

Please sign in to comment.