On 04/09/2011 09:31 PM, Andreas Kloeckner wrote:
On Sat, 09 Apr 2011 20:44:56 +0400, akira<4kir4...@gmail.com>  wrote:
..snip..
complete successfully but the command `make tests` fails:

echo "running tests"
running tests
find ./test -type f -name "*.py" -exec python {} \;
Traceback (most recent call last):
    File "./test/test_driver.py", line 4, in<module>
      from pycuda.tools import mark_cuda_test
    File
"/usr/local/lib/python2.6/dist-packages/pycuda-0.94.2-py2.6-linux-x86_64.egg/pycuda/tools.py",
line 30, in<module>
      import pycuda.driver as cuda
    File
"/usr/local/lib/python2.6/dist-packages/pycuda-0.94.2-py2.6-linux-x86_64.egg/pycuda/driver.py",
line 1, in<module>
      from pycuda._driver import *
ImportError:
/usr/local/lib/python2.6/dist-packages/pycuda-0.94.2-py2.6-linux-x86_64.
egg/pycuda/_driver.so: undefined symbol: cuStreamDestroy_v2

..snip..
$ ls -l /usr/lib/libcuda.so.1
lrwxrwxrwx 1 root root 20 2011-04-09 15:35 /usr/lib/libcuda.so.1 ->
libcuda.so.260.19.44

..snip..

I've installed cudatoolkit and video driver using *.run files downloaded
from nvidia site:

cudatoolkit_4.0.13_linux_64_ubuntu10.10.run
NVIDIA-Linux-x86_64-260.19.44.run
You're using 4.0 CUDA headers, but your libcuda.so is much older (260.19
is fairly ancient). That's the reason for the error you're
getting. Upgrading your display driver should help.

Thank you. Upgrading to 270.26 (beta) helped (Now, I can run successfully scripts from the examples folder).

Though 260.19.44 is only one month old http://www.nvidia.com/object/linux-display-amd64-260.19.44-driver.html

Now `make tests` fails with `ImportError: No module named pytest`:

$ make tests
echo "running tests"
running tests
find ./test -type f -name "*.py" -exec python {} \;
Traceback (most recent call last):
  File "./test/test_driver.py", line 540, in <module>
    from py.test.cmdline import main
File "/usr/local/lib/python2.6/dist-packages/py-1.4.2-py2.6.egg/py/_apipkg.py", line 159, in __getattribute__
    return getattr(getmod(), name)
File "/usr/local/lib/python2.6/dist-packages/py-1.4.2-py2.6.egg/py/_apipkg.py", line 144, in getmod
    x = importobj(modpath, None)
File "/usr/local/lib/python2.6/dist-packages/py-1.4.2-py2.6.egg/py/_apipkg.py", line 37, in importobj
    module = __import__(modpath, None, None, ['__doc__'])
ImportError: No module named pytest

$ python -c 'import py; print py.version'
1.4.2

I've downgraded to py-1.2.1:

$ sudo pip uninstall py
$ sudo apt-get install python-py

After that`make tests` completes successfully.


--

akira.



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

Reply via email to