MelGHub / byte-unixbench

Automatically exported from code.google.com/p/byte-unixbench
0 stars 0 forks source link

Can't take log of 0 #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./Run -i 1 int
Also reproducible here for the tests arithoh, short, int, long, float, double 

What is the expected output? What do you see instead?
I am expecting the normal result listing.

What version of the product are you using? On what operating system?
Version 5.1.3

Please provide any additional information below.

Console output:
make all
make[1]: Entering directory 
`/home/scosu/ptestsuite/suite/tests/unixbench/UnixBench'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[1]: Leaving directory 
`/home/scosu/ptestsuite/suite/tests/unixbench/UnixBench'
sh: 3dinfo: command not found
sh: runlevel: command not found

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.3                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   January 13, 2011                   johantheghost at yahoo period com

1 x Arithmetic Test (int)  1Can't take log of 0 at ./Run line 935.

Original issue reported on code.google.com by sco...@googlemail.com on 30 Mar 2012 at 1:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
start with: ./Run
stops with: 
1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10Can't take log of 
-53.5723 at ./Run line 935.

v 5.1.3
CentOS release 6.2
2.6.32-220.el6.i686 #1 SMP Tue Dec 6 16:15:40 GMT 2011 i686 i686 i386 GNU/Linux
in a virtual machine, qemu, 1 cpu

(no time to provide more info, just that it is not a sole issue)

Original comment by erka...@gmail.com on 28 Apr 2012 at 10:55

GoogleCodeExporter commented 9 years ago
I'm having the same error when i try run Arithmetic tests...

Command: "./Run arithoh -i 2"
Console output:
"make all
make[1]: Entering directory `/home/fnf/Programs/Beaglebone/workload/UnixBench'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[1]: Leaving directory `/home/fnf/Programs/Beaglebone/workload/UnixBench'
sh: 3dinfo: not found

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.3                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   January 13, 2011                   johantheghost at yahoo period com

1 x Arithoh  1Can't take log of 0 at ./Run line 935."

I tried comment the line 935 in Run file, and it works...
However, the "Count score" information is wrong.
Analysing arith.c file... i saw that "iter" var is out with 0, and it causes 
error in "Run" file in report method.

Felipe Nipo.

Original comment by fpn...@gmail.com on 27 Sep 2012 at 4:23

GoogleCodeExporter commented 9 years ago
My issue is the root cause of this issue. My fix should remedy this:

https://code.google.com/p/byte-unixbench/issues/detail?id=10

Change unsigned long iter; in arith.c to unsigned volatile long iter;

Original comment by site5vi...@gmail.com on 25 Apr 2013 at 1:00