Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Alpha Numerical Rant
@ 1999-03-24 19:30 Tom Browder
  1999-03-24 20:14 ` Phillip Ezolt
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Tom Browder @ 1999-03-24 19:30 UTC (permalink / raw)
  To: AXP LIST

After working around various numerical problems
with legacy software (originally built by a third party on an SGI IRIX 5.3 machine),
I'm still having an FPE problem with one large software suite.

My PC164 is using RH 5.2 dist., Linux 2.0.34 kernel (attempting to
get 2.2.4 running (with patch), egcs 1.1.2.  (Do I need to reinstall gdb
for the egcs 1.1 series?)

The maddening thing is the FPE doesn't show up if I run the program
in gdb!  (Could I have a memory problem?  But the error occurred
with my 128 Mb set as well as with my brand new 512 Mb set which
replaced the old--and always at the same place according to the
kernel message.)

Jay and others had a blurb about an "ASN" patch--was that for the kernel?
Or the asssembler?  Do I need a GNU as update?  

Does anyone have any suggestions?

Thanks.

Tom Browder



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Alpha Numerical Rant
  1999-03-24 19:30 Alpha Numerical Rant Tom Browder
@ 1999-03-24 20:14 ` Phillip Ezolt
  1999-03-24 20:26   ` Andrei A. Dergatchev
  1999-03-24 20:21 ` Andrei A. Dergatchev
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Phillip Ezolt @ 1999-03-24 20:14 UTC (permalink / raw)
  To: AXP LIST

Tom,
	I would highly suggest that you link your programs with either ffm 
or cpml as the math library.   For some functions, GNU libm returns 
denormalized numbers. (Numbers close to zero, but a pain to handle.)  ffm
and cpml both round these really small numbers to zero.  

	Wether or not this is "holy", is another war.  For most applications, 
it will fix the FPEs, and the program will still get the "right" answer. 

--Phil

Digital/Compaq:                     HPSD/Benchmark Performance Engineering
Phillip.Ezolt@compaq.com                            ezolt@perf.zko.dec.com


On Wed, 24 Mar 1999, Tom Browder wrote:

> After working around various numerical problems
> with legacy software (originally built by a third party on an SGI IRIX 5.3 machine),
> I'm still having an FPE problem with one large software suite.
> 
> My PC164 is using RH 5.2 dist., Linux 2.0.34 kernel (attempting to
> get 2.2.4 running (with patch), egcs 1.1.2.  (Do I need to reinstall gdb
> for the egcs 1.1 series?)
> 
> The maddening thing is the FPE doesn't show up if I run the program
> in gdb!  (Could I have a memory problem?  But the error occurred
> with my 128 Mb set as well as with my brand new 512 Mb set which
> replaced the old--and always at the same place according to the
> kernel message.)
> 
> Jay and others had a blurb about an "ASN" patch--was that for the kernel?
> Or the asssembler?  Do I need a GNU as update?  
> 
> Does anyone have any suggestions?
> 
> Thanks.
> 
> Tom Browder
> 
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 
> 
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Alpha Numerical Rant
  1999-03-24 19:30 Alpha Numerical Rant Tom Browder
  1999-03-24 20:14 ` Phillip Ezolt
@ 1999-03-24 20:21 ` Andrei A. Dergatchev
  1999-03-24 20:26 ` Wes Bauske
  1999-03-24 21:00 ` Greg Lindahl
  3 siblings, 0 replies; 6+ messages in thread
From: Andrei A. Dergatchev @ 1999-03-24 20:21 UTC (permalink / raw)
  To: axp-list

Hi,

[...]

> Does anyone have any suggestions?

Hmmm, could you clarify a bit ? I just can't figure out do you mean
you run an executable "originally built by a third party on an SGI
IRIX 5.3 machine" or do you have a source code ?

>
> Thanks.
>
> Tom Browder

Rgds,

Andrei


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Alpha Numerical Rant
  1999-03-24 20:14 ` Phillip Ezolt
@ 1999-03-24 20:26   ` Andrei A. Dergatchev
  0 siblings, 0 replies; 6+ messages in thread
From: Andrei A. Dergatchev @ 1999-03-24 20:26 UTC (permalink / raw)
  To: axp-list

Hi,

Tom, if you have a source code, what is the language - Fortran, C or ... ?

Btw, in some cases it may help if you'll compile without optimization options.

Rgds,

Andrei

Phillip Ezolt wrote:

> Tom,
>         I would highly suggest that you link your programs with either ffm
> or cpml as the math library.   For some functions, GNU libm returns
> denormalized numbers. (Numbers close to zero, but a pain to handle.)  ffm
> and cpml both round these really small numbers to zero.
>
>         Wether or not this is "holy", is another war.  For most applications,
> it will fix the FPEs, and the program will still get the "right" answer.
>
> --Phil
>
> Digital/Compaq:                     HPSD/Benchmark Performance Engineering
> Phillip.Ezolt@compaq.com                            ezolt@perf.zko.dec.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Alpha Numerical Rant
  1999-03-24 19:30 Alpha Numerical Rant Tom Browder
  1999-03-24 20:14 ` Phillip Ezolt
  1999-03-24 20:21 ` Andrei A. Dergatchev
@ 1999-03-24 20:26 ` Wes Bauske
  1999-03-24 21:00 ` Greg Lindahl
  3 siblings, 0 replies; 6+ messages in thread
From: Wes Bauske @ 1999-03-24 20:26 UTC (permalink / raw)
  To: axp-list

Tom Browder wrote:
> 
> 
> Jay and others had a blurb about an "ASN" patch--was that for the kernel?
> Or the asssembler?
> 

The ASN patch is for a 2.2.3 kernel.


Wes


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Alpha Numerical Rant
  1999-03-24 19:30 Alpha Numerical Rant Tom Browder
                   ` (2 preceding siblings ...)
  1999-03-24 20:26 ` Wes Bauske
@ 1999-03-24 21:00 ` Greg Lindahl
  3 siblings, 0 replies; 6+ messages in thread
From: Greg Lindahl @ 1999-03-24 21:00 UTC (permalink / raw)
  To: axp-list

> The maddening thing is the FPE doesn't show up if I run the program
> in gdb!

You should of course use the new Compaq math library or the new fast
math library, but this symptom means that your problem probably isn't
your math library. You could have a bug which overwrites memory and
does it differently when running under gdb. Overwritten memory often
shows up as fpes. Have you compiled using -mieee? That might paper
over such a bug. Turning optimization off and on often will move such
a bug around.

> Jay and others had a blurb about an "ASN" patch--was that for the kernel?
> Or the asssembler?  Do I need a GNU as update?  

That's for the kernel, but only for 2.2 and for the 21264.

-- g


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-03-24 21:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-24 19:30 Alpha Numerical Rant Tom Browder
1999-03-24 20:14 ` Phillip Ezolt
1999-03-24 20:26   ` Andrei A. Dergatchev
1999-03-24 20:21 ` Andrei A. Dergatchev
1999-03-24 20:26 ` Wes Bauske
1999-03-24 21:00 ` Greg Lindahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox