Before I left work on Friday I checked to ensure that the packages in Synaptic were all NVIDIA version 331 (I think). Even if the numbers are right in Synaptic, I suppose there could still be a version mismatch somewhere, so I'll check "dmesg" specifically on Monday.

FWIW I am pretty sure that the CUDA version jumped up from 5.5 (or 5.0?) in 14.04 up to CUDA 6.0 in 14.10. But I assume that PyCUDA is designed (and tested) to be forward-compatible, so I doubt that's the problem.


On Fri, Oct 31, 2014 at 11:40 PM, Andreas Kloeckner <> wrote:
Eric Larson <> writes:

> PyCUDA worked perfectly on Ubuntu 14.04, but after upgrade to 14.10 I get
> the following in both Python 2 and Python 3:
>>>> import pycuda.autoinit
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/home/larsoner/.local/lib/python2.7/site-packages/pycuda-2014.1-py2.7-linux-x86_64.egg/pycuda/",
> line 4, in <module>
>     cuda.init()
> pycuda._driver.Error: cuInit failed: unknown
> This is the same on latest `master` (shown above) and using the version in
> the Ubuntu repos. I can manually compile and run at least this example
> (devicequery):
> and my system is using the proprietary NVIDIA drivers, so CUDA appears to
> be configured properly. Has anyone else experienced this? I've reported the
> bug here as well:

Check if 'dmesg' reveals anything. You might have a mismatch between and you driver. (If so, good job, Ubuntu.)