For those interested in using the UCBTEST for floating point evaluation,
I have attached a patch file that will allow the ancient (1995) tarball
to compile and run on current Linux machines.

Compared to other packages, this code is a mess, but it does work.
Here is the procedure.

Download the tarball: http://www.netlib.org/fp/ucbtest.tgz

Unpack the tarball to some directory, e.g. /tmp/ucb, and also
copy the patch file, ucbtest.patch, to this same directory.

Apply the patch:

patch -p1 < ucbtest.patch

Create a directory where you want all the test results to go,
e.g. /tmp/linux .

The UCBTEST requires the Unix time utility.  If not already on your
system, this can be obtained here:
http://directory.fsf.org/project/time/

Now cd to the top directory where UCBTEST was unpacked and
set the variables at the beginning of ucbREADME/linux.sh to match
your system, after first setting the permissions of linux.sh to allow
execution:

chmod 0755 ucbREADME/linux.sh

At the beginning of ucbREADME/linux.sh, set the following four
environmental variables:

1) set tmpdir to where you want all results to go, as above, e.g.
/tmp/linux .

2) set SRC to the top directory where UCBTEST was unpacked, as above,
e.g. /tmp/ucb .

3) set TIME to the location of the time executable, using the full path,
e.g. /usr/bin/time .

4) set desired precisions and languages

Note: Only the C language is working.  The Fortran code is incompatible
with the recent GNU GCC.  So only use "languages=c".

5) set desired compile flags in opts.

After these five variables are set, then cd to the top of the ucbtest
directory (e.g. /tmp/ucb) and execute:

ucbREADME/linux.sh

The script will compile and run the various tests while printing
the results to the console.

To save the output to a file do:

ucbREADME/linux.sh > test.log 2>&1

Even on a fast machine, the tests will take some time to run.  On my
Core 2 Quad machine it requires about four minutes to complete.

The results will be both in the test.log file (or console if test.log
was not specified) and also in the *.output files within the /tmp/linux
directory (or wherever the tmpdir variable was set).

For comparison purposes, the ucbREADME directory contains the test logs
for various operating system and also other  information about the tests
themselves.

The set of *.output files contains detailed results for specific tests.

To see the results from my machine, I have posted my test.log output
here:

http://home.comcast.net/~frank.peters/test.log

Some trigonometric tests may fail but this should not be cause for
alarm.  The IEEE standard does not specify exactly how the trig
functions should perform and the GNU implementation of these functions
may differ from other implementations.

I hope that some may find the UCBTEST useful.

Frank Peters

Attachment: ucbtest.patch
Description: Binary data

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to