[PyCUDA] pycuda installation problem

Gökhan SEVER gokhansever at gmail.com
Thu Jul 9 17:42:59 PDT 2009


That did the trick :)

Thanks for the very quick response.

Got these last lines of successful complete:

Installed /usr/lib/python2.5/site-packages/pytools-9-py2.5.egg
Finished processing dependencies for pycuda==0.94beta

However this time test_driver fails :(

[gsever at ccn test]$ python test_driver.py
RuntimeError: FATAL: module compiled as big endian, but detected different
endianness at runtime
RuntimeError: FATAL: module compiled as big endian, but detected different
endianness at runtime
Traceback (most recent call last):
  File "test_driver.py", line 471, in <module>
    from py.test.cmdline import main
ImportError: No module named py.test.cmdline


On Thu, Jul 9, 2009 at 7:38 PM, Nicolas Pinto <pinto at mit.edu> wrote:

> Sorry for the double post:
>
> I think you need to drop the 'lib' *and '.so'* in *-libname command line
> options. Can you try:
>
> python configure.py --boost-inc-dir=$HOME/pool/include/boost-1_39
> --boost-lib-dir=$HOME/pool/lib --boost-python-libname=boost_python-gcc43-mt
> --boost-thread-libname=boost_thread-gcc43-mt --cuda-root=/usr/local/cuda
>
> N
>
>
> On Thu, Jul 9, 2009 at 8:36 PM, Nicolas Pinto <pinto at mit.edu> wrote:
>
>> Gökhan,
>>
>> I think you need to drop the 'lib' in *-libname command line options. Can
>> you try:
>>
>> python configure.py --boost-inc-dir=$HOME/pool/include/boost-1_39
>> --boost-lib-dir=$HOME/pool/lib
>> --boost-python-libname=boost_python-gcc43-mt.so
>> --boost-thread-libname=boost_thread-gcc43-mt.so --cuda-root=/usr/local/cuda
>>
>> Regards,
>>
>> N
>>
>> On Thu, Jul 9, 2009 at 8:30 PM, Gökhan SEVER <gokhansever at gmail.com>wrote:
>>
>>> Hello,
>>>
>>> I am trying to install pycuda onto my machine. Although I successfully
>>> built a very recent boostc++ libraries and exported into my system path I am
>>> receiving  the following error during the installation:
>>>
>>> [gsever at ccn pycuda]$ python configure.py
>>> --boost-inc-dir=$HOME/pool/include/boost-1_39 --boost-lib-dir=$HOME/pool/lib
>>> --boost-python-libname=libboost_python-gcc43-mt.so
>>> --boost-thread-libname=libboost_thread-gcc43-mt.so
>>> --cuda-root=/usr/local/cuda
>>>
>>>
>>> [gsever at ccn pycuda]$ make install
>>> ctags -R src || true
>>> /usr/bin/python setup.py install
>>> /home/gsever/pool/include/boost-1_39 /boost/  python .hpp
>>> /home/gsever/pool/lib / lib libboost_python-gcc43-mt.so .so
>>> /home/gsever/pool/lib / lib libboost_python-gcc43-mt.so .dylib
>>> /home/gsever/pool/lib / lib libboost_python-gcc43-mt.so .lib
>>> /home/gsever/pool/lib /  libboost_python-gcc43-mt.so .so
>>> /home/gsever/pool/lib /  libboost_python-gcc43-mt.so .dylib
>>> /home/gsever/pool/lib /  libboost_python-gcc43-mt.so .lib
>>> *** Cannot find Boost Python library. Checked locations:
>>>    /home/gsever/pool/lib/liblibboost_python-gcc43-mt.so.so
>>>    /home/gsever/pool/lib/liblibboost_python-gcc43-mt.so.dylib
>>>    /home/gsever/pool/lib/liblibboost_python-gcc43-mt.so.lib
>>>    /home/gsever/pool/lib/libboost_python-gcc43-mt.so.so
>>>    /home/gsever/pool/lib/libboost_python-gcc43-mt.so.dylib
>>>    /home/gsever/pool/lib/libboost_python-gcc43-mt.so.lib
>>> /home/gsever/pool/lib / lib libboost_thread-gcc43-mt.so .so
>>> /home/gsever/pool/lib / lib libboost_thread-gcc43-mt.so .dylib
>>> /home/gsever/pool/lib / lib libboost_thread-gcc43-mt.so .lib
>>> /home/gsever/pool/lib /  libboost_thread-gcc43-mt.so .so
>>> /home/gsever/pool/lib /  libboost_thread-gcc43-mt.so .dylib
>>> /home/gsever/pool/lib /  libboost_thread-gcc43-mt.so .lib
>>> /home/gsever/pool/lib /  libboost_thread-gcc43-mt.so .so
>>> /home/gsever/pool/lib /  libboost_thread-gcc43-mt.so .dylib
>>> /home/gsever/pool/lib /  libboost_thread-gcc43-mt.so .lib
>>> *** Cannot find Boost Thread library. Checked locations:
>>>    /home/gsever/pool/lib/liblibboost_thread-gcc43-mt.so.so
>>>    /home/gsever/pool/lib/liblibboost_thread-gcc43-mt.so.dylib
>>>    /home/gsever/pool/lib/liblibboost_thread-gcc43-mt.so.lib
>>>    /home/gsever/pool/lib/libboost_thread-gcc43-mt.so.so
>>>    /home/gsever/pool/lib/libboost_thread-gcc43-mt.so.dylib
>>>    /home/gsever/pool/lib/libboost_thread-gcc43-mt.so.lib
>>>    /home/gsever/pool/lib/libboost_thread-gcc43-mt.so.so
>>>    /home/gsever/pool/lib/libboost_thread-gcc43-mt.so.dylib
>>>    /home/gsever/pool/lib/libboost_thread-gcc43-mt.so.lib
>>> /usr/local/cuda /bin/  nvcc
>>> /usr/local/cuda/include /  cuda .h
>>> /usr/local/cuda/lib / lib cuda .so
>>> /usr/local/cuda/lib / lib cuda .dylib
>>> /usr/local/cuda/lib / lib cuda .lib
>>> /usr/local/cuda/lib /  cuda .so
>>> /usr/local/cuda/lib /  cuda .dylib
>>> /usr/local/cuda/lib /  cuda .lib
>>> /usr/local/cuda/lib /  cuda .so
>>> /usr/local/cuda/lib /  cuda .dylib
>>> /usr/local/cuda/lib /  cuda .lib
>>> /usr/local/cuda/lib /  cuda .so
>>> /usr/local/cuda/lib /  cuda .dylib
>>> /usr/local/cuda/lib /  cuda .lib
>>> *** Cannot find CUDA driver library. Checked locations:
>>>    /usr/local/cuda/lib/libcuda.so
>>>    /usr/local/cuda/lib/libcuda.dylib
>>>    /usr/local/cuda/lib/libcuda.lib
>>>    /usr/local/cuda/lib/cuda.so
>>>    /usr/local/cuda/lib/cuda.dylib
>>>    /usr/local/cuda/lib/cuda.lib
>>>    /usr/local/cuda/lib/cuda.so
>>>    /usr/local/cuda/lib/cuda.dylib
>>>    /usr/local/cuda/lib/cuda.lib
>>>    /usr/local/cuda/lib/cuda.so
>>>    /usr/local/cuda/lib/cuda.dylib
>>>    /usr/local/cuda/lib/cuda.lib
>>> *** Note that this may not be a problem as this component is often
>>> installed system-wide.
>>> running install
>>> running bdist_egg
>>> running egg_info
>>> writing requirements to pycuda.egg-info/requires.txt
>>> writing pycuda.egg-info/PKG-INFO
>>> writing top-level names to pycuda.egg-info/top_level.txt
>>> writing dependency_links to pycuda.egg-info/dependency_links.txt
>>> reading manifest file 'pycuda.egg-info/SOURCES.txt'
>>> reading manifest template 'MANIFEST.in'
>>> writing manifest file 'pycuda.egg-info/SOURCES.txt'
>>> installing library code to build/bdist.linux-i686/egg
>>> running install_lib
>>> running build_py
>>> running build_ext
>>> building '_driver' extension
>>> g++ -pthread -shared build/temp.linux-i686-2.5/src/cpp/cuda.o
>>> build/temp.linux-i686-2.5/src/cpp/bitlog.o
>>> build/temp.linux-i686-2.5/src/wrapper/wrap_cudadrv.o
>>> build/temp.linux-i686-2.5/src/wrapper/mempool.o -L/home/gsever/pool/lib
>>> -L/usr/local/cuda/lib -L/usr/lib -llibboost_python-gcc43-mt.so
>>> -llibboost_thread-gcc43-mt.so -lcuda -lpython2.5 -o
>>> build/lib.linux-i686-2.5/pycuda/_driver.so
>>> /usr/bin/ld: cannot find -llibboost_python-gcc43-mt.so
>>> collect2: ld returned 1 exit status
>>> error: command 'g++' failed with exit status 1
>>> make: *** [install] Error 1
>>>
>>>
>>> Thanks.
>>>
>>> --
>>> Gökhan
>>>
>>> _______________________________________________
>>> PyCUDA mailing list
>>> PyCUDA at tiker.net
>>> http://tiker.net/mailman/listinfo/pycuda_tiker.net
>>>
>>>
>>
>>
>> --
>> Nicolas Pinto
>> Ph.D. Candidate, Brain & Computer Sciences
>> Massachusetts Institute of Technology, USA
>> http://web.mit.edu/pinto
>>
>
>
>
> --
> Nicolas Pinto
> Ph.D. Candidate, Brain & Computer Sciences
> Massachusetts Institute of Technology, USA
> http://web.mit.edu/pinto
>



-- 
Gökhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20090709/ed7b9806/attachment-0001.htm>


More information about the PyCUDA mailing list