Harshit,

Harshit Suri <h.r.s...@gmail.com> writes:
> I had a working installation of pycuda. However, after running updates on
> my Ubuntu machine;
> import pycuda.driver as cuda fails.
> ( I had also updated my anaconda install and updated all packages that
> anaconda found that required updates )
>
> When I try running " import pycuda.driver " through jupyter notebook
> I get the following error message. Followed by a kernel crash
> --------------------------------------------------------------------------
> [I 10:02:37.765 NotebookApp] Adapting to protocol v5.1 for kernel
> 5fee93d7-62cf-468a-bcb0-b48e6f1d0987
> terminate called after throwing an instance of 'std::runtime_error'
>   what():  numpy failed to initialize
> [I 10:02:43.117 NotebookApp] KernelRestarter: restarting kernel (1/5), keep
> random ports
> kernel 5fee93d7-62cf-468a-bcb0-b48e6f1d0987 restarted
> --------------------------------------------------------------------------
> It seems numpy fails to initialize.
> However if I try to import numpy independently, it passes successfully.
>
> My guess is that when I ran the updates it updated something that caused
> this. The installation for pycuda was done by "pip install pycuda"

My guess would be Nvidia kernel/driver mismatch. Check the end of dmesg,
there might be a message there.

Andreas

_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
https://lists.tiker.net/listinfo/pycuda

Reply via email to