diff options
-rw-r--r-- | perform/perf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/perform/perf.c b/perform/perf.c index 3aaa5ba..086defa 100644 --- a/perform/perf.c +++ b/perform/perf.c @@ -57,7 +57,7 @@ char *meta_ext, *raw_ext; /* holds the meta and raw file extension if */ /* DEFAULT VALUES FOR OPTIONS */ -long opt_block = 1048576*16; +int64_t opt_block = 1048576*16; int opt_iter = 1; int opt_stripe = -1; int opt_correct = 0; @@ -88,8 +88,8 @@ int main(int argc, char **argv) double max_read_tim, max_write_tim; double min_read_tim, min_write_tim; double ave_read_tim, ave_write_tim; - long iter_jump = 0; - long seek_position = 0; + int64_t iter_jump = 0; + int64_t seek_position = 0; MPI_File fh; MPI_Status status; int nchars; @@ -325,8 +325,8 @@ int main(int argc, char **argv) /* print out the results on one node */ if (mynod == 0) { - read_bw = ((long)(opt_block*nprocs*opt_iter))/(max_read_tim*1000000.0); - write_bw = ((long)(opt_block*nprocs*opt_iter))/(max_write_tim*1000000.0); + read_bw = ((int64_t)(opt_block*nprocs*opt_iter))/(max_read_tim*1000000.0); + write_bw = ((int64_t)(opt_block*nprocs*opt_iter))/(max_write_tim*1000000.0); printf("nr_procs = %d, nr_iter = %d, blk_sz = %ld\n", nprocs, opt_iter, (long)opt_block); |