To build the sample, first export the following environment variables: export ROCR_DIR= export OPENCL_DIR= export OPENCL_VER= export TARGET_DEVICE= Next, do the following: mkdir build cd build cmake .. Finally, do the following to build the application and respective kernels: make make sample_kernels