Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't take log of 0 #7

Open
GoogleCodeExporter opened this issue Apr 9, 2015 · 4 comments
Open

Can't take log of 0 #7

GoogleCodeExporter opened this issue Apr 9, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 30 Mar 2012 at 1:19

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 28 Apr 2012 at 10:55

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 27 Sep 2012 at 4:23

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 25 Apr 2013 at 1:00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant