From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id B50B630177 for ; Mon, 30 Apr 2001 23:24:05 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f413L4E04082 for axp-list@listman.redhat.com; Mon, 30 Apr 2001 23:21:04 -0400 Received: from orion.chem.vt.edu (IDENT:root@orion.chem.vt.edu [128.173.180.103]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f413L4b04078 for ; Mon, 30 Apr 2001 23:21:04 -0400 Received: from localhost (crawdad@localhost) by orion.chem.vt.edu (8.11.0/8.11.0) with ESMTP id f413Noh24651 for ; Mon, 30 Apr 2001 23:23:50 -0400 X-Authentication-Warning: orion.chem.vt.edu: crawdad owned process doing -bs Date: Mon, 30 Apr 2001 23:23:50 -0400 (EDT) From: "T. Daniel Crawford" X-Sender: To: Subject: FP Exceptions In-Reply-To: <3AE479E2.3F1E77A0@voicenet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: 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 >