Skip to content

Latest commit

 

History

History
 
 

README.rst

triSYCL testing

Here are some simple examples and tests using triSYCL.

Everything is under control of the GNU Makefile.

To compile them:

make

To run them:

make run

To clean up:

make clean

You can build the binary with different compilers with

make CXX=g++-4.9
make CXX=clang++

To compile with some debug options, look around some setting of the CXXFLAGS variable.

To restrict the Makefile effect on some specific test cases, override the TARGETS variable with space-separated list of the binaries you want to run, such as:

make TARGETS=examples/demo_parallel_matrices_add run

The tests are based on the LIT tool from the LLVM infrastructure.

To install it on Debian or Ubuntu, use typically:

sudo apt-get install llvm-3.6-tools

You should direct the following variable to where is LIT located on your machine, for example:

export TRISYCL_LIT=/usr/lib/llvm-3.6/build/utils/lit/lit.py

To run with the checker, try:

make check

Normally you should clean up before with a:

make clean

to be sure everything is recompiled from the current source. It is not made by default because when developing, you may keep some already compiled version with some specific flags, for example.

You can set the LITFLAGS variable to run LIT with some options, such as -v. The ``CHECKING_DIR``variable restrict the test on the given directory. For example:

make LITFLAGS=--verbose CHECKING_DIR=range clean check

To run the tests on several default compilers (G++, Clang...) and cleaning in the between, try:

make check-compilers

To check into a new clone to be sure you did not forget to commit some files, use the clone-T targets, such as:

make clone-check