Giter VIP home page Giter VIP logo

npb's Introduction

This repo adds m5 annotations to the NAS Parallel Benchmarks located in NPB/NPB3.4-OMP.

The annotations are added to the timed sections as follows,

  • An m5_work_begin() call before timer_start(t_bench), or timer_start(t_total), or an equivalent.
  • An m5_work_end() call after timer_stop(t_bench), or timer_stop(t_total), or an equivalent.

Notes:

  • For the DC benchmark, the work is split into tasks via OMP directive. Each task uses a different timer for its timed section. To keep it simple, we decided to put an m5_work_begin() before the OMP task directive, and another m5_work_end() after the OMP task directive.

In order to compile the benchmarks with m5 annotations, the following environment variables must be set,

M5_ANNOTATION # If M5_ANNOTATION=1, the build system will compile the binaries
              # with m5 annotations.

GEM5_INCLUDE_DIR # Path to the gem5's include/ directory.
                 # Typically, the path is gem5/include.

GEM5_M5_ABI_DIR # Path to m5 utility abi folder for a specific ISA.
                # Typically,
                # For x86: gem5/util/m5/src/abi/x86/
                # For arm64: gem5/util/m5/src/abi/arm64/
                # For riscv: gm5/util/m5/src/abi/riscv

If you're cross compiling, you might want to set additional environment variables as follows,

FC # Path to the gfortran compiler for compiling **guest** binaries.
CC # Path to the gcc compiler for compiling **guest** binaries.
UCC # Path to the gcc compiler for compiling utilities **guest** objects.
SYS_UCC # Path to the gcc compiler for compiling utilities **host** objects.

npb's People

Contributors

hnpl avatar

Watchers

James Cloos avatar  avatar

Forkers

takekoputa

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.