tce-load -i compiletc git cmake ruby git clone https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v2.0.10.tar.gz git clone https://github.com/KhronosGroup/OpenCL-Headers https://github.com/ThrowTheSwitch/CMock/archive/v2.4.5.tar.gz https://github.com/ThrowTheSwitch/Unity/archive/v2.4.2.tar.gz cd OpenCL-CLHPP-2.0.10 mkdir build cd build sudo sudo gem install gem bundler minitest require_all constructor diy ln -s /usr/src/Unity-2.4.2/auto /usr/src/CMock-2.4.5/vendor/unity 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 -DCMOCK_DIR=/usr/src/CMock-2.4.5 -DUNITY_DIR=/usr/src/Unity-2.4.2 -DOPENCL_DIST_DIR=/usr/src/beignet -DOPENCL_INCLUDE_DIR=/usr/src/beignet/include -DCMAKE_VERBOSE_MAKEFILE=TRUE ../ make sudo make install