I am struggling with the same issue. After perfect compilation I get issues trying to run the sample programs. Initially I was getting errors which indicated the kernel driver version and CUDA driver version to be different but even after I made sure they match still the samples do not run. I was getting an error like ERROR: Unable to read file ./dev/nvidia0. I have still trying. I will post if it is successful. Please let me know if you have any luck.