Buildling CUDA SDK on Ubuntu 12.04 Nvidia driver 295.59

Hi,

I have been trying to get cuda to run on a nvidia gt 650m based laptop without success. I am running Ubuntu 12.04 with the nvidia 295.59 driver.

I posted full details of the issue at:
http://askubuntu.com/questions/158822/installing-cuda-on-ubuntu-12-04-with-nvidia-driver-295-59

Basically I have altered common.mk to fixed various known linking issues with 12.04 (see http://askubuntu.com/questions/131506/how-can-i-get-nvidia-cuda-or-opencl-working-on-a-laptop-with-nvidia-discrete-car). However I am still having problems.

Does anyone have any similiar experience, or can anyone point me in the right direction?

Thanks in advance – and apologies for not posting the full issue here, but I had already posted on askubuntu beforehand and thought it better not to duplicate the post. If I get a solution I will post it back here to ensure it is on the forum.

John.