Contents
Here are some simple examples and tests using triSYCL.
Everything is under control of the GNU Makefile.
To compile them:
makeTo run them:
make runTo clean up:
make cleanYou 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 runThe 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-toolsYou 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.pyTo run with the checker, try:
make checkNormally you should clean up before with a:
make cleanto 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=pipe clean checkTo run the tests on several default compilers (G++, Clang...) and cleaning in the between, try:
make check-compilersTo 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