GithubHelp home page GithubHelp logo

makortel / portability Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cms-patatrack/portability

0.0 1.0 0.0 12 KB

Test programs for different "performance portability" frameworks and libraries

C++ 78.07% Makefile 10.56% Cuda 11.38%

portability's Introduction

A comparison of different heterogeneous frameworks

The purpose of these test programs is to experiment with various heterogeneous frameworks and "performance portability" approaches.

Current implementations

Test CPU (serial) CUDA Alpaka/Cupla SYCL
vector_add ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
shared_mem ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️

Support for Alpaka/Cupla is split in

  • CPU serial
  • CPU paraller, using OpenMP
  • CPU paraller, using TBB
  • GPU parallel, using CUDA

Support for SYCL is split in

  • CPU (unspecified)
  • genericl OpenCL
  • Nvidia PTX

CUDA

These programs require a recent CUDA version (nvcc supporting C++14 and --expt-relaxed-constexpr) and a machine with GPU.

Alpaka/Cupla

Alpaka/Cupla support different backends; so far it has been tested with serial, TBB and OpenMP backends for the CPU, and the CUDA backend for Nvidia GPUs. The latter requires CUDA 9.2 through 10.1, and has been tested with gcc 7.x and gcc 8.x.

Rather than using the advertised CMake-based approach, one can use Cupla as header-only library:

# choose a base directory for Alpaka and Cupla
BASE=/opt/alpaka
mkdir -p $BASE
cd $BASE

git clone -b develop [email protected]:ComputationalRadiationPhysics/alpaka.git
git clone -b dev     [email protected]:cms-patatrack/cupla.git

The cms-patatrack for of Cupla includes

  • the latest development version of Cupla;
  • support for the latest development version of Alpaka ;
  • merge of cupla#112 and following bug fixes;
  • removal of the embedded version of Alpaka.

Note: these instructions were accurate as of July 1st, 2019.

See the vector_add/Makefile for an example. If you use a different BASE folder, updated the Makefiles accordingly.

SYCL

These programs were tested with CodePlay's ComputeCpp Community Edition, version 1.1.3 .

Other projects

Other projects with similar goals:

portability's People

Contributors

fwyzard avatar

Watchers

 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.