Code Monkey home page Code Monkey logo

vecpar's Introduction

vecpar

This is a header-only library for enabling single source code (C++) to target heterogeneous platforms (CPU, GPU). The project is still in early R&D phase.

Supported backends

  • (CPU) OpenMP
  • (GPU) CUDA

Dependencies

The project requires LLVM/Clang to build the sources. Recommendation:

spack install [email protected] +all_targets +cuda cuda_arch=<XY>
Dependency OpenMP backend CUDA backend Tests
vecmem library x x x
OpenMP 5.0 (enabled by default with LLVM14) x
CUDA 11.5.0 x
GoogleTest x

vecpar uses nestoroprysk/FunctionComposition for supporting the algorithm chaining functionality.

Installation

Get the code

git clone --recurse-submodules https://github.com/wr-hamburg/vecpar.git

To build the code

cmake -S <source_dir> -B <build_directory>
cmake --build <build_directory> \
       -DVECPAR_BUILD_OMP_BACKEND=On \ 
       -DVECPAR_BUILD_CUDA_BACKEND=On 

To enable the automated tests, set also -DVECPAR_BUILD_TESTS=On.

By default, all build options are enabled.

To compile for aarch64, set CC/CXX environment variables to appropriate aarch64 compilers.

To install the library

cmake --install <build_directory>

Collection types

vecpar supports vecmem::vectors as input and/or output for all operations. vecmem::jagged_vectors are supported for a restricted subset (marked with x):

Abstraction Jagged_vector as input(s) Jagged_vector as output
map x x
filter
reduce
map-filter x
map-reduce x

vecpar's People

Contributors

georgi-mania avatar hal8174 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.