8000 triSYCL/doc/testing.rst at master · giacomini/triSYCL · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
149 lines (86 loc) · 3.74 KB

testing.rst

File metadata and controls

149 lines (86 loc) · 3.74 KB

Testing

Installation

Only Clang 6+ or GCC 7+ (but usually the latest versions are the best), Boost.MultiArray (which adds to C++ the nice Fortran array semantics and syntax), Boost.Operators and a few other Boost libraries are needed.

To have all the tests compiling, it is better to use Clang 5.0+ or GCC 7+.

To install them on latest Linux Debian/unstable (this should work on latest Ubuntu too, just adapt the compiler versions):

sudo apt-get install clang-8 g++-8 libboost-dev

There is nothing else to do for now to use the include files from triSYCL include directory when compiling a program. Just add a -I.../include option and -std=c++1z, -std=c++17 or even better -std=c++2a when compiling.

triSYCL is configurable through preprocessor macros described in macros.

Also use -fopenmp if you want to use OpenMP multicore parallelism on the CPU.

The CMake support is described in cmake.rst.

Examples and tests

There are simple examples and tests in the tests directory. Look at tests/README.rst description.

0