diff --git a/MPI/mpipi.c b/MPI/mpipi.c index e1fd6e6055727f477e0a0cae6af215123983c261..ca298aca74d0d7366a683fe94d107d285b900bf7 100755 --- a/MPI/mpipi.c +++ b/MPI/mpipi.c @@ -8,7 +8,7 @@ #include <mpi.h> #include <sys/time.h> -#define NPTS 1000000000 +#define NPTS 10000000000 void main(int argc, char** argv) { int rank,nproc,i,istart,iend; @@ -31,7 +31,7 @@ void main(int argc, char** argv) { start_time = start.tv_sec * 1e6 + start.tv_usec; end_time = end.tv_sec * 1e6 + end.tv_usec; mflops = NPTS*(5.0/(end_time-start_time)); - printf("processes = %d, NPTS = %d, pi = %f\n",nproc,NPTS,pi); + printf("processes = %d, NPTS = %ld, pi = %f\n",nproc,NPTS,pi); printf("time = %f, estimated MFlops = %f\n",(end_time-start_time)/1.0e6,mflops); } else { diff --git a/MPI/mpipi2.c b/MPI/mpipi2.c index a63864105fabc55bf44d322f23f654b5d1c78310..82dc0d25b4eeac52dc18d25b119d7c8dd94b4668 100755 --- a/MPI/mpipi2.c +++ b/MPI/mpipi2.c @@ -10,7 +10,7 @@ #include <sys/time.h> #include <stdint.h> -#define NPTS 100000000 +#define NPTS 10000000000 #define NLOOP 10 void main(int argc, char** argv) {