Interchangeable backends:
- C++
- CUDA
- OpenCL
- OpenACC
Service | System | Compiler | Status |
---|---|---|---|
Travis-CI | Ubuntu 14.04 OSX |
GCC 6 Clang |
|
AppVeyor | Windows | MSVC12 MSVC14 MSVC14.1 |
TODO...
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