Hello All,
I'm very excited to use PyCuda and have been struggling to get it
working. Finally I have 0.92 compiled (0.93 doesn't compile at all for
me) and installed but the tests do not seem to work. I've read the
mailing list archive a few times but may have overlooked the answer to
this.
Jan Acosta had a similar problem with getting test_driver.py to work.
The solution for him was to add the proper boost library path (one in
his home directory) to LD_LIBRARY_PATH. The output of ldd shows it is
pointing to my local installation of boost-1.38.
J-Pascal suggested using the version of boost that comes with the
distribution. I'm using the latest Mint which is based on Ubuntu 8.10.
The libboost-python-dev in the repos is 1.34, but the pycuda main site
says to use 1.35 or greater, so I rolled my own.
I compiled pycida-0.92 with the CXXFLAGS option as described in the
FAQ because i am using gcc41 since CUDA 2.1 seems to have some trouble
with gcc43.
I am fairly sure the cuda sdk and toolkit are installed properly since
the demos that come with cuda work fine.
Below is output from test_driver.py, ldd, my LD_LIBRARY_PATH, and
proof nvcc is found and in the path.
Sorry for the length of the email. Just trying to cover the bases
discussed in previous install problem emails. I wouldn't be too
surprised if it's some sort of a config issue, but I've been at this
for a few days now and can't seem to find the solution. Maybe somebody
knows what's up? Any help will be appreciated.
Best Regards,
Rayjan
rwil...@dq-dev ~/Desktop/pycuda-0.92/test $ python test_driver.py
Traceback (most recent call last):
File "test_driver.py", line 3, in <module>
import pycuda.autoinit
File
"/usr/lib/python2.5/site-packages/pycuda-0.92-py2.5-linux-i686.egg/pycuda/autoinit.py",
line 1, in <module>
import pycuda.gpuarray as gpuarray
File
"/usr/lib/python2.5/site-packages/pycuda-0.92-py2.5-linux-i686.egg/pycuda/gpuarray.py",
line 3, in <module>
import pycuda.elementwise as elementwise
File
"/usr/lib/python2.5/site-packages/pycuda-0.92-py2.5-linux-i686.egg/pycuda/elementwise.py",
line 1, in <module>
import pycuda.driver as drv
File
"/usr/lib/python2.5/site-packages/pycuda-0.92-py2.5-linux-i686.egg/pycuda/driver.py",
line 1, in <module>
from _driver import *
ImportError:
/usr/lib/python2.5/site-packages/pycuda-0.92-py2.5-linux-i686.egg/pycuda/_driver.so:
undefined symbol:
_ZN5boost6python9converter8registry9push_backEPFPvP7_objectEPFvS5_PNS1_30rvalue_from_python_stage1_dataEENS0_9type_infoE
rwil...@dq-dev ~/Desktop/pycuda-0.92/test $ ldd
/usr/lib/python2.5/site-packages/pycuda-0.92-py2.5-linux-i686.egg/pycuda/_driver.so
linux-gate.so.1 => (0xb80b7000)
libboost_python-gcc41-mt-1_38.so.1.38.0 =>
/home/rwilson/boost/lib/libboost_python-gcc41-mt-1_38.so.1.38.0
(0xb7f64000)
libcuda.so.1 => /usr/lib/libcuda.so.1 (0xb7b45000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7a56000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7a30000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7a21000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7a08000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb78aa000)
libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0xb78a6000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb78a1000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7898000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7882000)
/lib/ld-linux.so.2 (0xb80b8000)
rwil...@dq-dev ~/Desktop/pycuda-0.92/test $ echo $LD_LIBRARY_PATH
/home/rwilson/boost/lib:/usr/local/cuda/lib:
rwil...@dq-dev ~/Desktop/pycuda-0.92/test $ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2007 NVIDIA Corporation
Built on Wed_Dec__3_18:29:25_PST_2008
Cuda compilation tools, release 2.1, V0.2.1221
siteconf.py
BOOST_INC_DIR = ['/home/rwilson/boost/include/boost-1_38/boost']
BOOST_LIB_DIR = ['/home/rwilson/boost/lib']
BOOST_PYTHON_LIBNAME = ['boost_python-gcc41-mt']
CUDA_TRACE = False
CUDA_ROOT = '/usr/local/cuda'
CUDADRV_LIB_DIR = []
CUDADRV_LIBNAME = ['cuda']
CXXFLAGS = ['-DBOOST_PYTHON_NO_PY_SIGNATURES']
LDFLAGS = []
_______________________________________________
PyCuda mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net