CUDA on ubuntu 14.04 gtx660m

Hi I have the following problem when I install cuda toolkit 6.5 on my laptop i get graphical glitches and most of the programs dont work.How to solve the glitches?

How did you install the toolkit? Did you use the repo method or the .run file method? It sounds like you may be running into a conflict with nouveau drivers.

Agreed, it sounds like you’re still using nouveau drivers, which definitely do glitch a fair amount, especially with older and newer hardware. At any rate, you’d need to be more specific and mention your configuration details for someone to be able to help.