From cbff4cdb3d584b27d3cfa29019dbb693a780d567 Mon Sep 17 00:00:00 2001
From: Neil Gershenfeld <gersh@cba.mit.edu>
Date: Mon, 1 Jul 2019 21:32:41 -0400
Subject: [PATCH] wip

---
 OpenMP/mppi.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/OpenMP/mppi.c b/OpenMP/mppi.c
index 3b5151c..53e2c26 100644
--- a/OpenMP/mppi.c
+++ b/OpenMP/mppi.c
@@ -8,11 +8,12 @@
 #include <stdio.h>
 #include <time.h>
 #include <omp.h>
+#include <stdint.h>
 
-#define NPTS 1000000000
+#define NPTS 100000000000
 
 void main() {
-   int i;
+   uint64_t i;
    double a,b,c,pi,dt,mflops;
    struct timespec tstart,tend;
    clock_gettime(CLOCK_REALTIME,&tstart);
@@ -27,6 +28,6 @@ void main() {
    clock_gettime(CLOCK_REALTIME,&tend);
    dt = (tend.tv_sec+tend.tv_nsec/1e9)-(tstart.tv_sec+tstart.tv_nsec/1e9);
    mflops = NPTS*5.0/(dt*1e6);
-   printf("NPTS = %d, pi = %f, threads = %d\n",NPTS,pi,omp_get_max_threads());
+   printf("NPTS = %ld, pi = %f, threads = %d\n",NPTS,pi,omp_get_max_threads());
    printf("time = %f, estimated MFlops = %f\n",dt,mflops);
    }
-- 
GitLab