source:
https://cgit.freedesktop.org/beignet/tree/docs/Beignet.mdwn
sudo apt-get install cmake pkg-config python ocl-icd-dev libegl1-mesa-dev ocl-icd-opencl-dev libdrm-dev libxfixes-dev libxext-dev llvm-3.6-dev clang-3.6 libclang-3.6-dev libtinfo-dev libedit-dev zlib1g-dev
get code
git clone https://anongit.freedesktop.org/git/beignet.git
make && make utest install
cd utest && . ./setenv.sh && ./utest_run