From: "T. Daniel Crawford" <crawdad@vt.edu>
To: <axp-list@redhat.com>
Subject: FP Exceptions
Date: Mon, 30 Apr 2001 23:23:50 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.30.0104302230360.22797-100000@orion.chem.vt.edu> (raw)
In-Reply-To: <3AE479E2.3F1E77A0@voicenet.com>
Thanks to Uncle George for a good explanation of what's happens when
floating-point exceptions occur; I believe I'm beginning to understand some
of the basic issues involved in denorm handling.
The problem I'm running into is when denorms are generated within optimized
libraries like CXML (specifically the BLAS routines). I've tried to
compile Kazushige Goto's BLAS codes with -fpe3 to try to eliminate these
FPE problems, but to no avail. (His DGEMM functions use some hand-coded
assembler, however, so my -fpe3 flags may make no difference there.) So,
I'm still up against a wall.
In addition, what I still don't understand is the difference in FPE handling
between Tru64 and Linux. My denorm problems are not occuring under Tru64,
even with the code compiled without the -fpe3 flag. For those few of us
here on the axp-list who are new to this subject, can anyone explain this?
If knowledgeable people are looking for assistance in tracking down these
problems, I would be more than willing to help.
Furthermore, I fear that even if I can get rid of the exceptions through
-fpe3 or something similar, the performance hit will be so great that I'll
have to give up Linux in favor of Tru64 after all.
-Daniel
--
T. Daniel Crawford Department of Chemistry
crawdad@vt.edu Virginia Tech
www.chem.vt.edu/chem-dept/crawford Voice: 540-231-7760 FAX: 540-231-3255
--------------------
PGP Public Key at: http://www.chem.vt.edu/chem-dept/crawford/publickey.txt
On Mon, 23 Apr 2001, Uncle George wrote:
> FP operations are pipelined, and are at various stages of execution. Without the
> -mieee ( gcc - "C" compile ) switch the FPU processes instructions till a trap
> occures, then Kaos happens The kernel does not know where exactly the failure
> occured.
>
> With -mieee the compiler places limits on the operations that can occure in the
> pipeline, and if a limit is exceeded, the compiler will place a pause ( trapb )
> instruction till the FPU has been drained & ALL possible TRAPS have been processed.
> So long as things are in a proper sequence, the kernel kan attempt to fix the error.
> Because it know how to backtrace/backstep
>
> The problems I am having is with -mieee & a trap & not having the right number
> returned as a part of the fix-up. The numerical number will also happen with any
> compiler, as it is a kernel bug
> /gat
>
next prev parent reply other threads:[~2001-05-01 3:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.30.0104231234270.30556-100000@orion.chem.vt.edu>
2001-04-23 17:59 ` compiling kernel 2.4.3 Uncle George
2001-04-23 18:11 ` T. Daniel Crawford
2001-04-23 18:52 ` Uncle George
2001-05-01 3:23 ` T. Daniel Crawford [this message]
2001-05-01 5:30 ` FP Exceptions Greg Lindahl
2001-05-01 10:56 ` Uncle George
2001-05-01 11:52 ` T. Daniel Crawford
2001-05-01 12:23 ` Uncle George
2001-05-01 12:26 ` T. Daniel Crawford
2001-05-01 13:03 ` Uncle George
2001-05-02 12:10 ` Uncle George
1999-06-20 20:37 fp exceptions glenn murphy
1999-06-20 21:17 ` Wes Bauske
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox