Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.02 KB

File metadata and controls

36 lines (26 loc) · 1.02 KB

backends

Interchangeable backends:

  • C++
  • CUDA
  • OpenCL
  • OpenACC

Project Health

Service System Compiler Status
Travis-CI Ubuntu 14.04
OSX
GCC 6
Clang
Build Status
AppVeyor Windows MSVC12
MSVC14
MSVC14.1
Build status

Including this library in your code

TODO...

Library usage

Filling a vector with a single value:

auto myVec = backends::vector<double>(2000);
backends::fill(myVec, 12.0);

Typical reductions:

auto myVec = backends::vector<double>{1, 2, 3, 4};
double sum  = backends::sum(myVec);
double mean = backends::mean(myVec);
// The sum should be 12, the mean should be 2.5