summaryrefslogtreecommitdiffstats
path: root/perform
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2002-04-25 14:14:46 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2002-04-25 14:14:46 (GMT)
commitbbea9d23bc5772a1a2f65e900d22ead1b87337b3 (patch)
treed106e68c84b06ac2d71ec51a34077aa4474d7fad /perform
parentfa3e371562cef85cae6aeeb8fc6806b53662287a (diff)
downloadhdf5-bbea9d23bc5772a1a2f65e900d22ead1b87337b3.zip
hdf5-bbea9d23bc5772a1a2f65e900d22ead1b87337b3.tar.gz
hdf5-bbea9d23bc5772a1a2f65e900d22ead1b87337b3.tar.bz2
[svn-r5256] Restored the use of int64_t since H5private.h is included now.
Platforms tested: eirene
Diffstat (limited to 'perform')
-rw-r--r--perform/perf.c10
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);