[PyCUDA] nvcc errors
arief nur andono
ariefnurandono at gmail.com
Sat Oct 2 00:39:51 PDT 2010
hi it's still me upgrading my ubuntu to 10.04 and pycuda 0.9.4.1 with cuda
3.2
i'm confused how to start my python program because even when i try a simple
example like on http://documen.tician.de/pycuda/
i got errors that show there is no nvcc
Traceback (most recent call last):
> File "tes1.py", line 13, in <module>
> """)
> File
> "/usr/local/lib/python2.6/dist-packages/pycuda-0.94.1-py2.6-linux-i686.egg/pycuda/compiler.py",
> line 238, in __init__
> arch, code, cache_dir, include_dirs)
> File
> "/usr/local/lib/python2.6/dist-packages/pycuda-0.94.1-py2.6-linux-i686.egg/pycuda/compiler.py",
> line 228, in compile
> return compile_plain(source, options, keep, nvcc, cache_dir)
> File
> "/usr/local/lib/python2.6/dist-packages/pycuda-0.94.1-py2.6-linux-i686.egg/pycuda/compiler.py",
> line 47, in compile_plain
> checksum.update(get_nvcc_version(nvcc))
> File "<string>", line 1, in <lambda>
> File
> "/usr/local/lib/python2.6/dist-packages/pytools-10-py2.6.egg/pytools/__init__.py",
> line 140, in memoize
> result = func(*args)
> File
> "/usr/local/lib/python2.6/dist-packages/pycuda-0.94.1-py2.6-linux-i686.egg/pycuda/compiler.py",
> line 21, in get_nvcc_version
> % (nvcc, str(e)))
> OSError: nvcc was not found (is it on the PATH?) [error invoking 'nvcc
> --version': [Errno 2] No such file or directory]
>
> i don't know how to solve it...i have try a stupid way by sudo ln -sf
/usr/local/cuda/bin/nvcc /usr/bin/nvcc but it's give me another errors
> Traceback (most recent call last):
> File "tes1.py", line 13, in <module>
> """)
> File
> "/usr/local/lib/python2.6/dist-packages/pycuda-0.94.1-py2.6-linux-i686.egg/pycuda/compiler.py",
> line 238, in __init__
> arch, code, cache_dir, include_dirs)
> File
> "/usr/local/lib/python2.6/dist-packages/pycuda-0.94.1-py2.6-linux-i686.egg/pycuda/compiler.py",
> line 228, in compile
> return compile_plain(source, options, keep, nvcc, cache_dir)
> File
> "/usr/local/lib/python2.6/dist-packages/pycuda-0.94.1-py2.6-linux-i686.egg/pycuda/compiler.py",
> line 91, in compile_plain
> error_on_nonzero=False)
> File
> "/usr/local/lib/python2.6/dist-packages/pytools-10-py2.6.egg/pytools/prefork.py",
> line 196, in call_capture_output
> return forker[0].call_capture_output(cmdline, cwd)
> File
> "/usr/local/lib/python2.6/dist-packages/pytools-10-py2.6.egg/pytools/prefork.py",
> line 53, in call_capture_output
> % ( " ".join(cmdline), e))
> pytools.prefork.ExecError: error invoking 'nvcc --cubin -arch sm_11
> -I/usr/local/lib/python2.6/dist-packages/pycuda-0.94.1-py2.6-linux-i686.egg/pycuda/../include/pycuda
> kernel.cu': status 1 invoking 'nvcc --cubin -arch sm_11
> -I/usr/local/lib/python2.6/dist-packages/pycuda-0.94.1-py2.6-linux-i686.egg/pycuda/../include/pycuda
> kernel.cu': cc1plus: error: cuda_runtime.h: No such file or directory
>
i don't know what to do because google cannot answer the errors...so please
give solution...
regards
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20101002/398587fe/attachment.html>
More information about the PyCUDA
mailing list