Giter Club home page Giter Club logo

polymem's Introduction

PolyMem: memory performance benchmark

Benchmark CPU and memory subsystem together by computing polynomials of specified degree over large in-memory arrays of data.

The idea of this test is to get STREAM-like memory access pattern, but with variable arithmetic intensity. Arithmetic intensity is the ratio (CPU time)/(memory time). By varying it one can find how balanced are compute and memory subsystems of the computer.

REQUIREMENTS

OpenMP-aware C compiler, GNU make

COMPILING

Adjust Makefile to meet your system configuration. Then run make in the source code directory.

RUNNING

Two types of memory access patterns are available:

Read-only access patter

The input data is stored in one large array in memory. The calculation results are discarded. To run benchmark, type

   ./poly_ro.x [polynomial degree] [array size] [repeats]
  • [int] Polynomial degree: the higher the polynomial degree,
  • the more is arithmetic intensity of the benchmark.
  • [int] Array size: number of elements of an array
  • [int] Repeats: number of times the test will run.

Read-write access pattern

The input data and the results are stored in two arrays in memory. The memory requirements are thus 2x bigger than in read-only test. To run the benchmark, type

   ./poly_rw.x [polynomial degree] [array size] [repeats]

Options are same to read-only test.

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.