Giter VIP home page Giter VIP logo

stream's Introduction

STREAM

A modern implementation of the STREAM benchmarks.

Reference Implementation: http://www.cs.virginia.edu/stream/ref.html

Enhancements include:

  • Reporting performance for different vector sizes with a single build and run cycle
  • Auto scaling of number of iterations based on vector size
  • Add a new benchmark to report effective reduction bandwidth

Requirements:

  • gcc with std=c11 and OpenMP support
  • 3 GB+ memory (by default vectors of 1 GB is used)

Benchmarks

Supports the standard Stream benchmarks. To calculate the memory bandwidth, the raw bandwidth is multiplied by the number of vectors (2 or 3) except for the new reduce benchmark. By default FP64 datatype (double) is used.

Copy

Copy one vector to a second vector

c[i] = a[i]

Scale

Scale vector by a scalar s and store in a second vector

b[i] = s * c[i]

Add

Add two vectors and store in a third vector

c[i] = a[i] + b[i]

Triad

Scale one vector by a scalar s, add to another, and store in third

a[i] = b[i] + s * c[i]

Reduce

Add two vectors and store in the first vector. Does not multiply the raw bandwidth by number of vectors. Reports the effective reduction bandwidth.

a[i] = a[i] + b[i]

Build

Edit Makefile to select appropriate compile options for the architecture.

$ make

Run

Specify number of OpenMP threads and run the benchmark.

$ OMP_NUM_THREADS=1 ./stream

stream's People

Contributors

souravzzz avatar

Watchers

 avatar  avatar

Forkers

janjust

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.