Cannot execute CUDA code on ubuntu 15.10

I have installed the nvidia drivers recommended by the system through “System Settings > software & updates > Additional Drivers”, I have GEFORCE 710M, driver version 340.96.

I then installed CUDA through “sudo apt-get install nvidia-cuda-toolkit” which installs cuda 6.5.

When I tried to run some simple CUDA code the compiler seems to be working properly, however, when running the resulting CUDA executable only host code is executed and any call to CUDA API (e.g. cudaMalloc, kernel launch) is not executed and gives: “unknown error”.

Any ideas what could be wrong, has anyone successfully got CUDA working using the above installation method?

Ubuntu 15.10 is not officially supported by CUDA 6.5.

You may want to start by reading the installation guide for CUDA 6.5 and following it carefully.