On dimanche 10 mai 2009, Andreas Klöckner wrote:
> Try the command
>
> $ ldd /usr/local/lib/python2.6/dist-packages/pycuda-0.93rc1-py2.6-linux-
> x86_64.egg/pycuda/_driver.so
>
> and see if you're inadvertently linking against a CUDA 2.1 library. That
> symbol *should* be there in 2.2.
I have only one cuda version installed.
However it may be that I don't have the correct nVidia module for 2.2 -
right now I'm using 180.44 - I guess I have to switch to the new version,
i.e. 185.18.08 'beta'
As 180.44 worked all right with pycuda 0.93 beta I assumed this was all right
but I was probably wrong then - I assume only the new driver libcuda.so has the
"cuMemHostAlloc" symbol. Sorry for the noise.
Thanks (for your answer and for pycuda - great tool !),
Vincent
#####################
vinc...@quad:~/linux/pycuda-0.93rc2$ python test/test_driver.py
Traceback (most recent call last):
File "test/test_driver.py", line 3, in <module>
import pycuda.autoinit
File
"/usr/local/lib/python2.6/dist-packages/pycuda-0.93rc2-py2.6-linux-x86_64.egg/pycuda/autoinit.py",
line 1, in <module>
import pycuda.driver as cuda
File
"/usr/local/lib/python2.6/dist-packages/pycuda-0.93rc2-py2.6-linux-x86_64.egg/pycuda/driver.py",
line 1, in <module>
from _driver import *
ImportError:
/usr/local/lib/python2.6/dist-packages/pycuda-0.93rc2-py2.6-linux-x86_64.egg/pycuda/_driver.so:
undefined symbol:
vinc...@quad:~/linux/pycuda-0.93rc2$ ldd
/usr/local/lib/python2.6/dist-packages/pycuda-0.93rc2-py2.6-linux-x86_64.egg/pycuda/_driver.so
linux-vdso.so.1 => (0x00007fff571ff000)
libboost_python-mt-py26.so.1.37.0 =>
/usr/lib/libboost_python-mt-py26.so.1.37.0 (0x00007fff4ec0d000)
libboost_thread-mt.so.1.37.0 => /usr/lib/libboost_thread-mt.so.1.37.0
(0x00007fff4e9fd000)
libcuda.so.1 => /usr/lib/libcuda.so.1 (0x00007fff4e55b000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fff4e24e000)
libm.so.6 => /lib/libm.so.6 (0x00007fff4dfc9000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fff4ddb0000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fff4db94000)
libc.so.6 => /lib/libc.so.6 (0x00007fff4d822000)
libutil.so.1 => /lib/libutil.so.1 (0x00007fff4d61e000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fff4d41a000)
librt.so.1 => /lib/librt.so.1 (0x00007fff4d212000)
libz.so.1 => /lib/libz.so.1 (0x00007fff4cff9000)
/lib64/ld-linux-x86-64.so.2 (0x00007fff4f177000)
vinc...@quad:~/linux/pycuda-0.93rc2$ ll /usr/lib/libcuda.so.1
lrwxrwxrwx 1 root root 17 2009-04-04 20:09 /usr/lib/libcuda.so.1 ->
libcuda.so.180.44
vinc...@quad:~/linux/pycuda-0.93rc2$ ll /usr/local/cuda/lib/
total 24584
lrwxrwxrwx 1 root root 17 2009-05-08 21:40 libcublasemu.so ->
libcublasemu.so.2
lrwxrwxrwx 1 root root 19 2009-05-08 21:40 libcublasemu.so.2 ->
libcublasemu.so.2.2
-rwxr-xr-x 1 root root 4745456 2009-05-08 21:40 libcublasemu.so.2.2
lrwxrwxrwx 1 root root 14 2009-05-08 21:40 libcublas.so -> libcublas.so.2
lrwxrwxrwx 1 root root 16 2009-05-08 21:40 libcublas.so.2 ->
libcublas.so.2.2
-rwxr-xr-x 1 root root 18684568 2009-05-08 21:40 libcublas.so.2.2
lrwxrwxrwx 1 root root 14 2009-05-08 21:40 libcudart.so -> libcudart.so.2
lrwxrwxrwx 1 root root 16 2009-05-08 21:40 libcudart.so.2 ->
libcudart.so.2.2
-rwxr-xr-x 1 root root 261304 2009-05-08 21:40 libcudart.so.2.2
lrwxrwxrwx 1 root root 16 2009-05-08 21:40 libcufftemu.so ->
libcufftemu.so.2
lrwxrwxrwx 1 root root 18 2009-05-08 21:40 libcufftemu.so.2 ->
libcufftemu.so.2.2
-rwxr-xr-x 1 root root 272896 2009-05-08 21:40 libcufftemu.so.2.2
lrwxrwxrwx 1 root root 13 2009-05-08 21:40 libcufft.so -> libcufft.so.2
lrwxrwxrwx 1 root root 15 2009-05-08 21:40 libcufft.so.2 ->
libcufft.so.2.2
-rwxr-xr-x 1 root root 1153304 2009-05-08 21:40 libcufft.so.2.2
vinc...@quad:~/linux/pycuda-0.93rc2$ ll /usr/local/cuda/bin/
total 7240
-rwxr-xr-x 1 root root 79720 2009-05-08 21:41 bin2c
-rwxr-xr-x 1 root root 2541064 2009-05-08 21:41 cudafe
-rwxr-xr-x 1 root root 2302456 2009-05-08 21:41 cudafe++
-rwxr-xr-x 1 root root 108584 2009-05-08 21:41 fatbin
-rwxr-xr-x 1 root root 71360 2009-05-08 21:41 filehash
-rwxr-xr-x 1 root root 138656 2009-05-08 21:41 nvcc
-rw-r--r-- 1 root root 324 2009-05-08 21:41 nvcc.profile
-rwxr-xr-x 1 root root 2121464 2009-05-08 21:41 ptxas
-rw-r--r-- 1 root root 376 2009-05-08 21:41 ptxvars.cu
vinc...@quad:~/linux/pycuda-0.93rc2$ nvcc -v
nvcc fatal : No input files specified; use option --help for more information
vinc...@quad:~/linux/pycuda-0.93rc2$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2009 NVIDIA Corporation
Built on Thu_Apr__9_05:05:52_PDT_2009
Cuda compilation tools, release 2.2, V0.2.1221
--
Vincent Favre-Nicolin
CEA/Grenoble Institut Nanosciences & Cryogénie - http://inac.cea.fr/
Université Joseph Fourier - http://physique-eea.ujf-grenoble.fr/
tél: (+33) 4 38 78 95 40 fax: (+33) 4 38 78 51 38
_______________________________________________
PyCuda mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net