Commit 6ec71672 authored by Philip Carns's avatar Philip Carns

remove unused "iterations" argument to benchmark


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@673 3b7491f3-a168-0410-bf4b-c445ed680a29
parent c1005f1c
...@@ -26,34 +26,18 @@ int main(int argc, char **argv) ...@@ -26,34 +26,18 @@ int main(int argc, char **argv)
{ {
int nprocs; int nprocs;
int mynod; int mynod;
int ret;
int iters;
MPI_Init(&argc, &argv); MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &mynod); MPI_Comm_rank(MPI_COMM_WORLD, &mynod);
MPI_Comm_size(MPI_COMM_WORLD, &nprocs); MPI_Comm_size(MPI_COMM_WORLD, &nprocs);
/* parse argument for number of iterations */ if(argc != 1)
if(argc != 2)
{ {
fprintf(stderr, "Usage: %s <number of iterations>\n", argv[0]); fprintf(stderr, "Usage: %s\n", argv[0]);
MPI_Finalize(); MPI_Finalize();
return(-1); return(-1);
} }
ret = sscanf(argv[1], "%d", &iters);
if(ret != 1)
{
fprintf(stderr, "Usage: %s <number of iterations>\n", argv[0]);
MPI_Finalize();
return(-1);
}
if(mynod == 0)
{
printf("ignoring iters argument for now.\n");
}
darshan_shutdown_bench(argc, argv, mynod, nprocs); darshan_shutdown_bench(argc, argv, mynod, nprocs);
MPI_Finalize(); MPI_Finalize();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment