[PATCH] Drop in PETE tools
Jeffrey D. Oldham
oldham at codesourcery.com
Tue Jun 1 14:51:25 UTC 2004
Yes, this change is acceptable.
Richard Guenther wrote:
>Hi!
>
>I finally go around searching and fixing the right PETE version that was
>used for generating the pooma pete header files. I took the oportunity
>to patch our manual fixing into the input files and compared the output
>which results in
>
>--- ../PoomaOperatorTags.h Fri Jun 13 14:12:24 2003
>+++ PoomaOperatorTags.h Tue Jun 1 11:44:19 2004
>@@ -13,6 +13,7 @@
> //
> ///////////////////////////////////////////////////////////////////////////////
>
>+
> #include <cstdlib>
> #include <cmath>
>
>--- ../../Array/PoomaArrayOperators.h Fri Jan 24 10:28:46 2003
>+++ PoomaArrayOperators.h Tue Jun 1 11:44:19 2004
>@@ -15,6 +15,9 @@
> ///////////////////////////////////////////////////////////////////////////////
>
>
>+#include <cstdlib>
>+#include <cmath>
>+
> #if defined(POOMA_POOMA_POOMAOPERATORTAGS_H)
> template<int D, class T, class EngineTag> class Tensor;
>
>--- ../../DynamicArray/PoomaDynamicArrayOperators.h Fri Jan 24 10:28:53 2003
>+++ PoomaDynamicArrayOperators.h Tue Jun 1 11:44:19 2004
>@@ -15,6 +15,9 @@
> ///////////////////////////////////////////////////////////////////////////////
>
>
>+#include <cstdlib>
>+#include <cmath>
>+
> #if defined(POOMA_POOMA_POOMAOPERATORTAGS_H)
> template<int D, class T, class EngineTag> class Tensor;
>
>--- ../../Field/PoomaFieldOperators.h Fri Jan 24 10:28:57 2003
>+++ PoomaFieldOperators.h Tue Jun 1 11:44:20 2004
>@@ -15,6 +15,9 @@
> ///////////////////////////////////////////////////////////////////////////////
>
>
>+#include <cstdlib>
>+#include <cmath>
>+
> #if defined(POOMA_POOMA_POOMAOPERATORTAGS_H)
> template<int D, class T, class EngineTag> class Tensor;
>
>
>This would be a drop in of the attached tarball into src/PETE/Tools
>and the following patch to src/Pooma/PETE/
>
>Ok to apply?
>
>Thanks,
>Richard.
>
>
>2004Jun01 Richard Guenther <richard.guenther at uni-tuebingen.de>
>
> * src/Pooma/PETE/PoomaOps.in: include <cstdlib> and <cmath>.
> src/Pooma/PETE/makefile: MakeOperators is in
> ../../PETE/Tools/MakeOperators now. diff target to compare
> current against new generated headers.
>
>===== PoomaOps.in 1.1 vs edited =====
>--- 1.1/r2/src/Pooma/PETE/PoomaOps.in Mon May 13 17:47:42 2002
>+++ edited/PoomaOps.in Tue Jun 1 11:37:53 2004
>@@ -1,6 +1,9 @@
> prefix
> -----
> TEXT = "
>+#include <cstdlib>
>+#include <cmath>
>+
> #if defined(POOMA_POOMA_POOMAOPERATORTAGS_H)
> template<int D, class T, class EngineTag> class Tensor;
>
>===== makefile 1.1 vs edited =====
>--- 1.1/r2/src/Pooma/PETE/makefile Mon May 13 17:47:42 2002
>+++ edited/makefile Tue Jun 1 11:36:36 2004
>@@ -25,15 +25,7 @@
> # ----------------------------------------------------------------------
> # ACL:license
>
>-#
>-# include PETE make information
>-# (support easy testing)
>-#
>-ifndef TEST
>-MAKEOPERATORS = $(PETEDIR)/$(PETEARCHDIR)/bin/MakeOperators
>-else
>-MAKEOPERATORS = ./MakeOperators
>-endif
>+MAKEOPERATORS = ../../PETE/Tools/MakeOperators
>
> #
> # the files we will need to build
>@@ -81,6 +73,17 @@
> cp -f PoomaFieldOperators.h ../../Field
> cp -f VectorFieldOperators.h ../../Field
>
>+diff: $(ALLFILES)
>+ -diff -u ../PoomaOperatorTags.h PoomaOperatorTags.h
>+ -diff -u ../../Array/ArrayOperators.h ArrayOperators.h
>+ -diff -u ../../Array/PoomaArrayOperators.h PoomaArrayOperators.h
>+ -diff -u ../../Array/VectorArrayOperators.h VectorArrayOperators.h
>+ -diff -u ../../DynamicArray/PoomaDynamicArrayOperators.h PoomaDynamicArrayOperators.h
>+ -diff -u ../../DynamicArray/VectorDynamicArrayOperators.h VectorDynamicArrayOperators.h
>+ -diff -u ../../DynamicArray/DynamicArrayOperators.h DynamicArrayOperators.h
>+ -diff -u ../../Field/FieldOperators.h FieldOperators.h
>+ -diff -u ../../Field/PoomaFieldOperators.h PoomaFieldOperators.h
>+ -diff -u ../../Field/VectorFieldOperators.h VectorFieldOperators.h
>
> #
> # Common operations
>
--
Jeffrey D. Oldham
oldham at codesourcery.com
More information about the pooma-dev
mailing list