Skip to content

Commit e79e76e

Browse files
committed
Fix a couple of minor issues with IOR output
This commit fixes two issues: - The AIO backend prints the max outstanding transactions when starting. This is printed by every MPI rank and doesn't add much. Probably is left over from some debugging. - Init MPI ***before*** parsing the command line. Without this every rank thinks it is rank 0 so messages that should only be printed by rank 0 are printed n times. Signed-off-by: Nathan Hjelm <[email protected]>
1 parent 9d984c4 commit e79e76e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/aiori-aio.c

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ static void aio_initialize(aiori_mod_opt_t * param){
8484
if(io_setup(o->max_pending, & o->ioctx) != 0){
8585
ERRF("Couldn't initialize io context %s", strerror(errno));
8686
}
87-
printf("%d\n", (o->max_pending));
8887

8988
o->iocbs = malloc(sizeof(struct iocb *) * o->granularity);
9089
o->iocbs_pos = 0;

src/ior.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -194,16 +194,16 @@ int ior_main(int argc, char **argv)
194194
out_logfile = stdout;
195195
out_resultfile = stdout;
196196

197-
/*
198-
* check -h option from commandline without starting MPI;
199-
*/
200-
tests_head = ParseCommandLine(argc, argv, MPI_COMM_WORLD);
201-
202197
/* start the MPI code */
203198
MPI_CHECK(MPI_Init(&argc, &argv), "cannot initialize MPI");
204199

205200
MPI_CHECK(MPI_Comm_rank(MPI_COMM_WORLD, &rank), "cannot get rank");
206201

202+
/*
203+
* check -h option from commandline without starting MPI;
204+
*/
205+
tests_head = ParseCommandLine(argc, argv, MPI_COMM_WORLD);
206+
207207
/* set error-handling */
208208
/*MPI_CHECK(MPI_Errhandler_set(mpi_comm_world, MPI_ERRORS_RETURN),
209209
"cannot set errhandler"); */

0 commit comments

Comments
 (0)