[PATCH] fix Doof3d benchmark

Richard Guenther rguenth at tat.physik.uni-tuebingen.de
Wed Dec 18 22:41:00 UTC 2002


2002Dec18  Richard Guenther <richard.guenther at uni-tuebingen.de>

        * benchmarks/Doof3d/Doof3dInP2.h: add Pooma::blockAndEvaluate()
	before accessing result.

--- benchmarks/Doof3d/Doof3dInP2.h	4 Jul 2000 05:06:39 -0000	1.16
+++ benchmarks/Doof3d/Doof3dInP2.h	18 Dec 2002 22:20:15 -0000
@@ -94,6 +94,8 @@
       a_m(I-1,J,  K+1) + a_m(I,  J,  K+1) + a_m(I+1,J,  K+1) +
       a_m(I-1,J+1,K+1) + a_m(I,  J+1,K+1) + a_m(I+1,J+1,K+1));

+    Pooma::blockAndEvaluate();
+
     // save results for checking
     check_m = b_m(n_m / 2, n_m / 2, n_m / 2);
   }
@@ -213,6 +215,8 @@
   void run() {
     // apply diffusion stencil
     b_m(I,J, K) = stencil_m( a_m );
+
+    Pooma::blockAndEvaluate();

     // save results for checking
     check_m = b_m(n_m/2,n_m/2,n_m/2);




More information about the pooma-dev mailing list