Mail Archives: pgcc/1998/07/13/22:31:27
On Thu, Jul 09, 1998 at 08:25:07PM +0000, David Reiss wrote:
> Hi. I just discovered pgcc/pg++ and thought it would be great to try on
> my scientific programs which usually take hours to run. I tried
> compiling one program of mine (which uses lots of math routines and some
> C++ classes, etc) in pg++. It compiled fine using -O6 and ran about 4x
> faster than the g++ with -O2! But the numerical output is slightly
> different, basically about 10% off. (Sorry I can't give more detauls w/o
whoaw, great speed improvement ;) alas, the result shouldn't be
10% of.
is it possible to create a (preferably small) testcase that shows this problem?
> explaining what the program does, which would take another 2 pages of
> typing...suffice it to say its a bunch of operations on floats and float
> arrays with many do loops and reading input data files. It uses a lot of
> routines from the Numerical Recipes text.)
hmm.. does the output agree if you use "-mieee -ffloat-store" (and possibly
-lieee") with both compilers?
> g++ output is exactly the same as the Sun Ultra...so my guess is there's
> something interesting going on with pg++ that I don't understand.
I guess its a bug in pgcc then.
> thanks for any help...it would be great to get this working!
Is that program available anywhere to download? I need to reproduce the
problem on my machine to fix it... (so downloading many megabytes of source
and data is impossible)
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg AT goof DOT com |e|
-=====/_/_//_/\_,_/ /_/\_\ --+
The choice of a GNU generation |
|
- Raw text -