public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Volker Armin Hemmann <volkerarmin@googlemail.com>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] Possible Math Problem - Request For Verification
Date: Sun, 26 Jun 2011 19:04:48 +0200	[thread overview]
Message-ID: <1467080.8kkPtjPYV0@localhost> (raw)
In-Reply-To: <20110625134111.5c6b08dd.frank.peters@comcast.net>

On Saturday 25 June 2011 13:41:11 Frank Peters wrote:
> Hello,
> 
> Believe it or not, at the very beginning, Linux/GNU had some math problems.
> In particular, it would do somewhat poorly on various floating point tests
> that are available on-line.  Because I do mathematical work on my machine,
> I used to regularly evaluate my software using these tests.
> 
> However, for the past several years Linux/GNU has gotten nearly perfect
> scores on these same tests and it seemed that glibc and/or gcc had finally
> gotten the math code right.  As a result of this, I stopped my regular
> evaluations of the software.
> 
> Just recently I decided to run these tests again.  I expected to see the
> same nearly perfect scores but, to my surprise, a failure occurred in the
> area of complex number operations.  This may not be a very serious failure,
> but it was not present during prior tests and thus it should not be present
> now.
> 
> Possibly a fault has crept in somewhere either in glibc or gcc.  Because
> I had stopped my regular testing I can't relate the failure to any specific
> version change of either package.
> 
> I need to request a verification from any Gentoo users.  All that needs to
> be done is run a straightforward software test.
> 
> The software is called UCBTEST and is described at http://www.netlib.org/fp/
> 
> The source code, however, is ancient Unix (1995) code and must be patched.
> I have created a patched tarball that can run on recent Linux.  This file
> is attached as ucbtest.tar.bz2
> 
> If one is accustomed to modern GUI software, this code is a mess, but it is
> rather straightforward to implement.  Here are the steps:
> 
> 1) Create a directory somewhere, e.g. /tmp/fp-test
> 
> 2) Unpack the tarball into this directory.
> 
> 3) Change into the /tmp/fp-test directory
> 
> 4) Modify the ucbREADME/linux.sh file as follows:
> 
> Line 10 -- specify a full path for the results directory -- all test results
> will be stored here -- e.g. /tmp/fp-test-results
> 
> Line 11 -- specify the full path to the Unix time program -- ucbtest won't
> run without time -- for Gentoo just "emerge time" and the path will be
> "/usr/bin/time"
> 
> Line 17 -- specify the full path to the test directory -- same as in step #1
> 
> Line 36 -- enter your CFLAGS here
> 
> That's it as far as configuration.  Now, from the top directory of the
> source just execute:
> 
> ucbREADME/linux.sh
> 
> The code will take several minutes to compile, execute, and complete.  While
> the test is running it will spit out its progress to stdout.  Upon
> completion a brief summary is given:
> 
> UCBFAIL indicates problems!
> /tmp/fp-test-results/ccos_DP.output: ucbtest UCBFAIL in COS(X) at line 444
> for generic /tmp/fp-test-results/clib_DP.output: ucbtest UCBFAIL in cabsd
> at line 701 for double /tmp/fp-test-results/clib_DP.output: ucbtest UCBFAIL
> in powd at line 701 for double /tmp/fp-test-results/clib_DP.output:UCBFAIL
> clib_DP.output , 25 out of 25 tests completed
> /tmp/fp-test-results/csin_DP.output: ucbtest UCBFAIL in SIN(X) at line 444
> for generic
> 
> only 11 out of 14 show UCBPASS!
> 
> 
> There are expected failures in the trigonometric tests since trigonometric
> performance is not specified in IEEE754/854.  The failure in powd (double
> power function) is also expected.  But everything else should have passed.
> 
> In my case, the new failure occurs in the cabsd test, which is the absolute
> value for complex numbers.  I have never seen this error previously and
> it may possibly indicate some problem with either glibc or gcc.
> 
> The results directory is also a mess (someone should really clean this code
> up). In the results directory (see step #4) all detailed test results are
> contained in the *.output files.
> 
> Anyway, if anyone wants to try this test, the steps have been outlined.
> In spite of the messiness, the procedure is really quite simple, and the
> ucbtest is a very good test of floating point performance.
> 
> Frank Peters

btw, have you tried ekopath? The compiler entered portage shortly after its 
open sourcing? Maybe it is more correct. According to some it is faster than 
gcc when it comes to math heavy workloads.
-- 
#163933



  parent reply	other threads:[~2011-06-26 17:06 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-25 17:41 [gentoo-amd64] Possible Math Problem - Request For Verification Frank Peters
2011-06-25 23:54 ` Marc Joliet
2011-06-26  0:22   ` Mark Knecht
2011-06-26  1:10     ` Frank Peters
2011-06-26  1:28   ` Frank Peters
2011-06-26  3:44 ` [gentoo-amd64] Possible Math Problem - Request For Verification [Solved] Frank Peters
2011-06-26  3:54   ` Mark Knecht
2011-06-26  4:39     ` Frank Peters
2011-06-26 11:33       ` James Cloos
2011-06-26 12:57       ` Mark Knecht
2011-06-26 16:30       ` Barry Schwartz
2011-06-26 11:30 ` [gentoo-amd64] Possible Math Problem - Request For Verification Volker Armin Hemmann
2011-06-26 12:13   ` Volker Armin Hemmann
2011-06-26 13:17     ` [gentoo-amd64] unsubscribe Piotr Hosowicz
2011-06-26 15:40       ` Dale
2011-06-26 17:26         ` Lie Ryan
2011-06-26 17:31           ` Volker Armin Hemmann
2011-06-26 17:52             ` Dale
2011-06-27  3:22             ` [gentoo-amd64] unsubscribe Duncan
2011-06-26 17:43           ` [gentoo-amd64] unsubscribe Dale
2011-06-26 16:27   ` [gentoo-amd64] Possible Math Problem - Request For Verification Frank Peters
2011-06-26 17:04 ` Volker Armin Hemmann [this message]
2011-06-26 17:17   ` Mark Knecht
2011-06-26 17:36   ` Frank Peters
2011-06-26 17:45     ` Volker Armin Hemmann
2011-06-26 17:54     ` Barry Schwartz
2011-06-26 19:01     ` Volker Armin Hemmann
2011-06-26 19:21       ` Barry Schwartz
2011-06-26 19:31         ` Volker Armin Hemmann
2011-06-26 19:49         ` Mark Knecht
2011-06-26 20:33           ` Frank Peters

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1467080.8kkPtjPYV0@localhost \
    --to=volkerarmin@googlemail.com \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox