Git Product home page Git Product logo

polybenchomp's Introduction

PolybenchOMP

OpenMP version of PolybenchGPU

The algorithms in PolybenchGPU are reimplemented using OpenMP. There are existing implementations, such as Unibench, but Unibench suffers from incorrect implementations that may cause incorrect computation results or invalid nvprof results. This reimplementaiton is aimed at solving these issues.

Prerequisite

  • LLVM with OpenMP. See how you can get both here and follow my blog here for more details on how to build llvm and OpenMP target offloading.

Building and Running the Benchmarks

To quickly start building and running, clone this repository first and follow the steps below.

  1. Clone this git repository.
  2. Go to the directory PolybenchOMP and create a build directory.
cd PolybencOMP
mkdir build
  1. Configure the project.
# Set the path to LLVM installation
export LLVM_INSTALL=/where/llvm/is/installed

# Go to the build directory
cd build

# Configure the project
cmake -DCMAKE_BUILD_TYPE=Release -DRUN_TEST=1 \
      -DCMAKE_C_COMPILER=$LLVM_INSTALL/bin/clang \
      -DCMAKE_CXX_COMPILER=$LLVM_INSTALL/bin/clang++ \
      -DOPENMP_LIBRARIES=$LLVM_INSTALL/lib \
      -DCMAKE_INSTALL_PREFIX=$(pwd)/../install \
      -DOPENMP_INCLUDES=~/llvm-project/install/include \
      ..
  1. Install all the benchmarks.
make install -j16

CMake Options

  • RUN_OFFLOAD_GPU default is on. This option turns on building for nvptx target offloading.
  • RUN_TEST default is off. When turned on, the benchmarks compare results with a servial version of the algorithm. For now this option is only controlling OMPGPU targets. OMPCPU always have the test code on.

Known Issues

  • Running on Windows is neither tested nor supported.
  • Target offloading is not supported on macOS.
  • cmake may fail on when running for the first time on macOS. Rerun should solve the problem.

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.