Hi, thanks for the quick reply (and good advice!). I wiped my cuda 6.5
installation and reinstalled from scratch. nvcc now works when called from
the command line on simple CUDA samples. It compiles for my GPU's
architecture (3.5) by default, so PATH and LD_LIBRARY_PATH are definitely
configured correctly.

I also wiped PyCUDA and reinstalled from scratch, per the instructions for
Ubuntu 14.04 64 bit on the PyCUDA Installation page. No errors during this
process, and I can successfully import pycuda.autoinit. However, now when I
try to run any of the PyCUDA examples, I get the following error:

nvcc fatal         : Path to libdevice library not specified

Since I do not encounter this error when compiling CUDA samples or my own
CUDA code with nvcc, my guess is that my environment variables aren't being
seen by PyCUDA. I googled this error and found a few threads on the
subject, but no effective solutions.

I was wondering if I could trouble this list for a pointer or two?
Hopefully there's a quick fix.

Many thanks,

-David


On Sat, Jan 17, 2015 at 2:41 PM, Andreas Kloeckner <li...@informa.tiker.net>
wrote:

> "David A. Markowitz" <david.a.markow...@gmail.com> writes:
>
> > Hi, I just installed PyCUDA, but test_driver.py crashes with the
> > following error:
> >
> > CompileError: nvcc compilation of /tmp/tmpNht4bp/kernel.cu failed
> > [command: nvcc --cubin -arch sm_35
> >
> -I/usr/local/lib/python2.7/dist-packages/pycuda-2014.1-py2.7-linux-x86_64.egg/pycuda/cuda
> > kernel.cu]
> > [stderr: error in open:
> > /usr/bin/../nvvm/libdevice/libdevice.compute_35.10.bc      No such
> > file or directory ]
>
>
> This looks like nvcc is unable to find its own parts. Does nvcc work
> when called from the command line on a simple CUDA sample? (My guess is
> no.)
>
> Andreas
>
_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to