Giter Club home page Giter Club logo

epiphany-mem-ordering-test's Introduction

Epiphany memory ordering test

This is a simple test demonstrating that load operations using data previously written do not always use the updated values on the Adapteva Epiphany E16G301 device.

Building

On the Parallella system itself, just run

make

You may specify a number of nop loops between the write access and the subsequent read access by defining the NOP_COUNT environment variable, e.g.:

make NOP_COUNT=15

Running

Start the host program:

./host

Load and start the Epiphany programs:

e-loader --start epi.srec 0 0 4 4

What happens?

Host side:

  1. A named shared memory region is allocated.
  2. Every second, the program verifies the structures of each Epiphany core. If a given structure has its error flag on, the expected and read values are printed.

Epiphany side:

  1. The program attaches to the named shared memory region created by the host side.
  2. The appropriate structure for this core is retrieved.
  3. In an infinite loop:
    1. A value is stored at a location in shared memory, different from the the current value at that location.
    2. A configurable number of nop loops execute.
    3. A value is read from the same location in shared memory.
    4. Both written (expected) and read values are compared. If they are different, the error flag for this core is set, and the loop breaks.

epiphany-mem-ordering-test's People

Contributors

eepp avatar

Watchers

 avatar  avatar

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.