* spurious FPE with g++
@ 1999-07-22 4:00 Michael Walter
1999-07-22 4:00 ` Greg Lindahl
0 siblings, 1 reply; 4+ messages in thread
From: Michael Walter @ 1999-07-22 4:00 UTC (permalink / raw)
Hello,
we use g++ on an alpha PC, version:
>g++ -v
Reading specs from
/usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
and get spurious Floating point exception with properly tested
source code, which runs on SGI-IRIX as well as on Pentium-PC's
with g++ version
>g++ -v
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
can anybody help ?
Thanks, Michael
--
---------------------------------------------------------------
Michael Walter
e-mail: Michael.Walter@physik.uni-freiburg.de
Tel.: 0761 203 7696
Adr.: Abteilung Prof. J.S. Briggs
Fak. f. Physik
Hermann-Herder-Str. 3
79104 Freiburg
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: spurious FPE with g++
1999-07-22 4:00 spurious FPE with g++ Michael Walter
@ 1999-07-22 4:00 ` Greg Lindahl
1999-08-06 4:00 ` Michael Walter
0 siblings, 1 reply; 4+ messages in thread
From: Greg Lindahl @ 1999-07-22 4:00 UTC (permalink / raw)
Michael Walter <Michael.Walter@physik.uni-freiburg.de> writes:
> and get spurious Floating point exception with properly tested
> source code, which runs on SGI-IRIX as well as on Pentium-PC's
> with g++ version
That isn't proof. The SGI and g++ by default on Pentium PC's uses the
IEEE mode which allows infinity etc. By default on an Alpha, infinity
and NaN cause a fault. I would suggest using gdb to figure out exactly
what the fault is. You should also try the -mieee option to gcc.
A common, different problem is that the default Alpha math libraries
generate IEEE extreme values even when -mieee is not specified. You
can get around that by using the Compaq math libraries, which never
return extreme values.
-- g
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: spurious FPE with g++
1999-07-22 4:00 ` Greg Lindahl
@ 1999-08-06 4:00 ` Michael Walter
1999-08-06 4:00 ` Michael Walter
0 siblings, 1 reply; 4+ messages in thread
From: Michael Walter @ 1999-08-06 4:00 UTC (permalink / raw)
Greg Lindahl wrote:
>
> Michael Walter <Michael.Walter@physik.uni-freiburg.de> writes:
>
> > and get spurious Floating point exception with properly tested
> > source code, which runs on SGI-IRIX as well as on Pentium-PC's
> > with g++ version
>
> That isn't proof. The SGI and g++ by default on Pentium PC's uses the
> IEEE mode which allows infinity etc. By default on an Alpha, infinity
> and NaN cause a fault. I would suggest using gdb to figure out exactly
> what the fault is. You should also try the -mieee option to gcc.
>
> A common, different problem is that the default Alpha math libraries
> generate IEEE extreme values even when -mieee is not specified. You
> can get around that by using the Compaq math libraries, which never
> return extreme values.
>
> -- g
Thanks a lot, the -mieee helped.
A comment on speed:
We found the programs (Monte-Carlo calculations) to be very slow,
using the standart libm.a math library, but the libfm and libffm
helped to make the thing approx. 3 times faster !
Michael
--
---------------------------------------------------------------
Michael Walter
e-mail: Michael.Walter@physik.uni-freiburg.de
Tel.: 0761 203 7696
Adr.: Abteilung Prof. J.S. Briggs
Fak. f. Physik
Hermann-Herder-Str. 3
79104 Freiburg
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: spurious FPE with g++
1999-08-06 4:00 ` Michael Walter
@ 1999-08-06 4:00 ` Michael Walter
0 siblings, 0 replies; 4+ messages in thread
From: Michael Walter @ 1999-08-06 4:00 UTC (permalink / raw)
Michael Walter wrote:
>
> Greg Lindahl wrote:
> >
> > Michael Walter <Michael.Walter@physik.uni-freiburg.de> writes:
> >
> > > and get spurious Floating point exception with properly tested
> > > source code, which runs on SGI-IRIX as well as on Pentium-PC's
> > > with g++ version
> >
> > That isn't proof. The SGI and g++ by default on Pentium PC's uses the
> > IEEE mode which allows infinity etc. By default on an Alpha, infinity
> > and NaN cause a fault. I would suggest using gdb to figure out exactly
> > what the fault is. You should also try the -mieee option to gcc.
> >
> > A common, different problem is that the default Alpha math libraries
> > generate IEEE extreme values even when -mieee is not specified. You
> > can get around that by using the Compaq math libraries, which never
> > return extreme values.
> >
> > -- g
> Thanks a lot, the -mieee helped.
>
> A comment on speed:
> We found the programs (Monte-Carlo calculations) to be very slow,
> using the standart libm.a math library, but the libfm and libffm
> helped to make the thing approx. 3 times faster !
>
Sorry, forgot to say, you'll get it on
http://people.frankfurt.netsurf.de/Joachim.Wesner/
Michael
> Michael
> --
> ---------------------------------------------------------------
> Michael Walter
> e-mail: Michael.Walter@physik.uni-freiburg.de
> Tel.: 0761 203 7696
> Adr.: Abteilung Prof. J.S. Briggs
> Fak. f. Physik
> Hermann-Herder-Str. 3
> 79104 Freiburg
> ---------------------------------------------------------------
--
---------------------------------------------------------------
Michael Walter
e-mail: Michael.Walter@physik.uni-freiburg.de
Tel.: 0761 203 7696
Adr.: Abteilung Prof. J.S. Briggs
Fak. f. Physik
Hermann-Herder-Str. 3
79104 Freiburg
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-08-06 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-22 4:00 spurious FPE with g++ Michael Walter
1999-07-22 4:00 ` Greg Lindahl
1999-08-06 4:00 ` Michael Walter
1999-08-06 4:00 ` Michael Walter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox