Changeset 72ac664


Ignore:
Timestamp:
08/26/16 19:28:29 (8 years ago)
Author:
Hal Finkel <hfinkel@…>
Branches:
master, pympi
Children:
cda87e9
Parents:
754e14c
git-author:
Hal Finkel <hfinkel@…> (08/26/16 19:28:29)
git-committer:
Hal Finkel <hfinkel@…> (08/26/16 19:28:29)
Message:

Optionally, the GIO write benchmark should create compressed files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GenericIOBenchmarkWrite.cxx

    rba0fbd1 r72ac664  
    6464  MPI_Comm_size(MPI_COMM_WORLD, &commRanks); 
    6565 
     66  int a = 1; 
     67  if (argc > 1 && string(argv[a]) == "-c") { 
     68    GenericIO::setDefaultShouldCompress(true); 
     69    --argc; 
     70    ++a; 
     71  } 
     72 
    6673  if(argc != 4) { 
    67     fprintf(stderr,"USAGE: %s <mpiioName> <NP> <seed>\n", argv[0]); 
     74    fprintf(stderr,"USAGE: %s [-c] <mpiioName> <NP> <seed>\n", argv[0]); 
    6875    exit(-1); 
    6976  } 
     
    7178  GenericIO::setNaturalDefaultPartition(); 
    7279 
    73   char *mpiioName = argv[1]; 
    74   size_t Np = atoi(argv[2])/commRanks; 
    75   int seed = atoi(argv[3]); 
     80  char *mpiioName = argv[a++]; 
     81  size_t Np = atoi(argv[a++])/commRanks; 
     82  int seed = atoi(argv[a++]); 
    7683 
    7784  srand48(seed + commRank); 
Note: See TracChangeset for help on using the changeset viewer.