Changed the behavior of shift in mdtest to mimic that in IOR so that it shifts by _entire nodes_ not by ranks.

master
John Bent 2019-07-25 19:18:52 -06:00
parent 76f6bb6e42
commit 7981fc70b1
1 changed files with 8 additions and 2 deletions

View File

@ -1362,7 +1362,7 @@ void print_help (void) {
"\t-p: pre-iteration delay (in seconds)\n"
"\t-r: only remove files or directories left behind by previous runs\n"
"\t-R: randomly stat files (optional argument for random seed)\n"
"\t-s: stride between the number of tasks for each test\n"
"\t-s: stride between the number of nodes for each test\n"
"\t-S: shared file access (file only, no directories)\n"
"\t-t: time unique working directory overhead\n"
"\t-T: only stat files/dirs\n"
@ -2191,7 +2191,8 @@ mdtest_results_t * mdtest_run(int argc, char **argv, MPI_Comm world_com, FILE *
pid = getpid();
uid = getuid();
nodeCount = size / CountTasksPerNode(testComm);
tasksPerNode = CountTasksPerNode(testComm);
nodeCount = size / tasksPerNode;
if (rank == 0) {
fprintf(out_logfile, "-- started at %s --\n\n", PrintTimestamp());
@ -2267,6 +2268,11 @@ mdtest_results_t * mdtest_run(int argc, char **argv, MPI_Comm world_com, FILE *
fflush( out_logfile );
}
/* set the shift to mimic IOR and shift by procs per node */
if (nstride > 0) {
nstride *= tasksPerNode;
}
/* setup total number of items and number of items per dir */
if (depth <= 0) {
num_dirs_in_tree = 1;