oops. forwarding to list.
---------- Forwarded message ---------- From: Brent Pedersen <[email protected]> Date: Wed, Apr 29, 2009 at 1:36 PM Subject: Re: [PyCuda] pycuda on ubuntu 9.04? To: Andreas Klöckner <[email protected]> On Wed, Apr 29, 2009 at 12:01 PM, Andreas Klöckner <[email protected]> wrote: > On Mittwoch 29 April 2009, Brent Pedersen wrote: >> hi, i've never tried cuda or pycuda before, but i'm trying now on a >> clean system with ubuntu 9.04. >> i downloaded the install script for linux-64 ubuntu 8.04 here: >> http://www.nvidia.com/object/cuda_get.html >> >> will that work for 9.04? must one wait for the 9.04 version to appear? >> or are sources available? >> >> for now, i get cuda and pycuda to install but when i try it out, i see >> the output below. >> any ideas on what i can try? >> thanks, >> -brent >> >> $ python -c "import pycuda.autoinit" >> Traceback (most recent call last): >> File "<string>", line 1, in <module> >> File >> "/usr/lib/python2.5/site-packages/pycuda-0.92-py2.5-linux-x86_64.egg/pycuda >>/autoinit.py", line 5, in <module> >> cuda.init() >> Boost.Python.ArgumentError: Python argument types in >> pycuda._driver.init() >> did not match C++ signature: >> init(unsigned int flags=0) > > Something seems fishy here: That snippet says "python2.5" in various places, > but I seem to recall that the default Python version in 9.04 should be 2.6. > Can you shed some light here? yes, i still am using 2.5 so i did cp /usr/bin/python{2.5,} is that likely to cause problems? > > This looks like an issue with Boost.Python--the flags argument default > assignment isn't recognized somehow. > > Also, can you send the output of > > ldd /usr/lib/python2.5/site-packages/pycuda-0.92-py2.5-linux- > x86_64.egg/pycuda/_internal.so > i dont have _internal.so maybe that's the prob, i have this: $ ldd /usr/lib/python2.5/site-packages/pycuda-0.92-py2.5-linux-x86_64.egg/pycuda/_driver.so linux-vdso.so.1 => (0x00007fffdc3fe000) libboost_python-gcc42-mt-1_34_1-py26.so.1.34.1 => /usr/lib/libboost_python-gcc42-mt-1_34_1-py26.so.1.34.1 (0x00007ff8d3e4e000) libcuda.so.1 => /usr/lib/libcuda.so.1 (0x00007ff8d39ad000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ff8d369f000) libm.so.6 => /lib/libm.so.6 (0x00007ff8d341a000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007ff8d3202000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff8d2fe5000) libc.so.6 => /lib/libc.so.6 (0x00007ff8d2c73000) libutil.so.1 => /lib/libutil.so.1 (0x00007ff8d2a70000) libdl.so.2 => /lib/libdl.so.2 (0x00007ff8d286b000) librt.so.1 => /lib/librt.so.1 (0x00007ff8d2663000) libz.so.1 => /lib/libz.so.1 (0x00007ff8d244b000) /lib64/ld-linux-x86-64.so.2 (0x00007ff8d4367000) > What version of boost are you using? looks like 1.34.1-15 which is the default in the ubuntu 9.04 repos. thanks. -brent > > Andreas > > _______________________________________________ > PyCuda mailing list > [email protected] > http://tiker.net/mailman/listinfo/pycuda_tiker.net > > _______________________________________________ PyCuda mailing list [email protected] http://tiker.net/mailman/listinfo/pycuda_tiker.net
