From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 26971 invoked from network); 12 Jan 1999 17:33:01 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 12 Jan 1999 17:33:01 -0000 Received: from email.nist.gov (email.nist.gov [129.6.2.7]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA32301 for ; Tue, 12 Jan 1999 12:11:05 -0500 Received: from lurch.nist.gov (lurch.nist.gov [129.6.153.40]) by email.nist.gov (8.9.1/8.9.1) with ESMTP id MAA09215 for <@relay.nist.gov:axp-list@redhat.com>; Tue, 12 Jan 1999 12:11:05 -0500 (EST) Received: from nist.gov (lurch.nist.gov [129.6.153.40]) by lurch.nist.gov (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id MAA50577 for ; Tue, 12 Jan 1999 12:11:04 -0500 (EST) Sender: powell@nist.gov Message-ID: <369B8228.320288BD@nist.gov> Date: Tue, 12 Jan 1999 12:11:04 -0500 From: "Adam C. Powell, IV" Organization: National Institute of Standards and Technology X-Mailer: Mozilla 4.5C-SGI [en] (X11; U; IRIX64 6.5 IP27) X-Accept-Language: en-US, en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Floating point question References: <369B7F02.301B4E6A@hamster.lorentzian.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit John Montgomery wrote: > I asked the list recently how to deal with floating point exceptions > resulting from underflows. I was advised that I could use the -miee > flag, but that my code would run slower. Subsequent experimentation has > indicated how true this is - my code now works, but runs almost 3 times > slower than under Digital Unix. So I wonder > > 1) Why is ieee so much slower? > > 2) How is this problem handled on Digital Unix? > > Some of my factor of 3 is due to having used a better compiler on > Digital Unix, but probably not all of it. What else is going on? > I'll be grateful for any insights that people might have about this. Have you tried libffm? If not, the problem is definitely the math library. The one in glibc is vastly slower than either libffm or Digital Unix. As I recall, your problem was underflows in exp() due to large negative arguments. libffm returns zero by default, without -mieee. http://people.frankfurt.netsurf.de/Joachim.Wesner/ Zeen, -Adam `Cold Fusion' Powell, IV http://www.ctcms.nist.gov/~powell/ ____ USDoC, National Institute of Standards & Technology (NIST) |\ ||< | Center for Theoretical and Computational Materials Science | \||_> |