From 50ed58e8f7da4074188c26388ecfb8d9449e3519 Mon Sep 17 00:00:00 2001 From: Neil Gershenfeld <gersh@cba.mit.edu> Date: Mon, 22 Jul 2019 17:58:23 -0400 Subject: [PATCH] wip --- MPI/mpipi.c | 4 ++-- MPI/mpipi2.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MPI/mpipi.c b/MPI/mpipi.c index e1fd6e6..ca298ac 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 a638641..82dc0d2 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) { -- GitLab