[PATCH] Fix Tiny t1 test

Jeffrey D. Oldham oldham at codesourcery.com
Tue Dec 9 16:37:13 UTC 2003


Richard Guenther wrote:
> Hi!
> 
> This patch properly initializes the t1 test to allow for checking in
> a parallel environment.
> 
> Ok?

Yes.

> Richard.
> 
> 
> 2003Dec09  Richard Guenther <richard.guenther at uni-tuebingen.de>
> 
> 	* src/Tiny/tests/t1.cpp: initialize pooma library.
> 
> ===== t1.cpp 1.2 vs edited =====
> --- 1.2/r2/src/Tiny/tests/t1.cpp	Thu Jan 30 22:35:02 2003
> +++ edited/t1.cpp	Tue Dec  9 13:43:19 2003
> @@ -32,6 +32,7 @@
>  #include <stdio.h>
>  #include <stdlib.h>
> 
> +#include "Pooma/Pooma.h"
>  #include "Utilities/Tester.h"
>  #include "Tiny/TinyMatrix.h"
>  #include "Tiny/Vector.h"
> @@ -495,6 +496,7 @@
> 
>  int main(int argc, char **argv)
>  {
> +  Pooma::initialize(argc, argv);
>    tester = new Pooma::Tester(argc, argv);
> 
>    testTinyMatrixDot();
> @@ -519,7 +521,9 @@
>    testBoundsChecking();
>  #endif
> 
> -  return tester->results("t1");
> +  int ret = tester->results("t1");
> +  Pooma::finalize();
> +  return ret;
>  }
> 
>  // ACL:rcsinfo


-- 
Jeffrey D. Oldham
oldham at codesourcery.com




More information about the pooma-dev mailing list