Code Monkey home page Code Monkey logo

fpuaccuracy's Introduction

fpuAccuracy

Tools to check FPU accuracy

I have ported tools from http://notabs.org/fpuaccuracy/ to Linux.

To quote http://notabs.org/fpuaccuracy/

Intel overstates FPU accuracy. For nearly 20 years Intel has claimed high accuracy for the transcendental floating point instructions in its PC processor products. Intel documentation for the 1993 Pentium states: On the Pentium processor, the worst case error on functions is less than 1 ulp when rounding to the nearest-even and less than 1.5 ulps when rounding in other modes. This claim has never been true for the instructions fsin, fcos, fsincos, and fptan. The red in the plots below show ranges where the error exceeds 1.0 ulp.

My contributions:

Following software is needed to reproduce the results

  • gcc
  • gnuplot
  • xz
  • mpfr-devel

On yum enabled system (Fedora,CentOS, RHEL) it can be installed with yum -y install gcc gnuplot xz mpfr-devel

How to reproduce the results

  • Compile with make
  • Review file commands with predefined tests. The most interesting ones are trigonometric functions.
  • Specify number of available CPUs for the GNU parallel tool in Makefile (variable JOBS)
  • Run the test - either specific ones with for example make sin (see the Makefile) or all tests with make all. Results are xzipped in the Results directory
  • Create plots with make plot
  • Check the plots (png files) in the Results directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.