The code works with CUDA 6.0. If you are using this code for your project, please cite
Wang Y, Qian W, Zhang S, et al. A Learning Algorithm for Bayesian Networks and Its Efficient Implementation on GPUs[J].
Parallel and Distributed Systems, IEEE Transactions on, 2016, 27(1): 17-30.