You really shouldn't be using this code. As deep learning has gotten more popular, other tools like CUDNN, Torch and Caffe provide much better options.
An OpenCL implementation of Deep Belief Networks and Restricted Boltzmann Machines
This project depends on the vjson library, which is out-dated and needs to be replaced The gflags library is also required.
As a first step you need to edit rbm/Makefile and dbn/Makefile to point to your OpenCL implementation. After that, just run make in either of these directories to build that project. Updates to the RBM code have caused the DBNs to not compile, so beware.