tce-load -i compiletc cmake git llvm-dev clang Xorg-7.7-opencl-dev boost-1.65-dev freeglut-dev opencl-clhpp glu-dev ocl-icd git clone https://github.com/ignatenkobrain/ocltoys cd ocltoys patch -Np1 -i ../ocltoys_1.patch patch -Np1 -i ../ocltoys_2.patch patch -Np1 -i ../ocltoys_3.patch patch -Np1 -i ../ocltoys_4.patch mkdir build cd build cmake -LAH -DCMAKE_C_FLAGS_RELEASE="-flto -fuse-linker-plugin -mtune=generic -Os -pipe" -DCMAKE_CXX_FLAGS_RELEASE="-flto -fuse-linker-plugin -mtune=generic -Os -pipe" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=release -DOPENCL_C_INCLUDE_DIR=/usr/local/include/CL -DCMAKE_VERBOSE_MAKEFILE=TRUE ../ make sudo make install