[PyCUDA] pycuda Installation problem on windows 32bit with VS2008

2012-02-25 Thread CiCi
Hi,

I am a chinese student, doing some GPU computing research. 

Recently, I want to change the Pycuda version from 0.94.2 to 2011.2.2, but
meet some problems. 

My old environment is windows32bit+Python2.6+VS2009+Pycuda-0.94.2,  I
followed the instruction on the wiki
page:http://wiki.tiker.net/PyCuda/Installation/Windows, and it can work. But
when I do the same things to version 2011.2.2, It can't work!

I apologize for such long error that I pasted all from the MINGW. I get the
following errors when I input python setup.py build :
*
running build
running build_py
creating build
creating build\lib.win32-2.6
creating build\lib.win32-2.6\pycuda
copying pycuda\autoinit.py - build\lib.win32-2.6\pycuda
copying pycuda\characterize.py - build\lib.win32-2.6\pycuda
copying pycuda\compiler.py - build\lib.win32-2.6\pycuda
copying pycuda\cumath.py - build\lib.win32-2.6\pycuda
copying pycuda\curandom.py - build\lib.win32-2.6\pycuda
copying pycuda\debug.py - build\lib.win32-2.6\pycuda
copying pycuda\driver.py - build\lib.win32-2.6\pycuda
copying pycuda\elementwise.py - build\lib.win32-2.6\pycuda
copying pycuda\gpuarray.py - build\lib.win32-2.6\pycuda
copying pycuda\reduction.py - build\lib.win32-2.6\pycuda
copying pycuda\scan.py - build\lib.win32-2.6\pycuda
copying pycuda\tools.py - build\lib.win32-2.6\pycuda
copying pycuda\_cluda.py - build\lib.win32-2.6\pycuda
copying pycuda\_mymako.py - build\lib.win32-2.6\pycuda
copying pycuda\__init__.py - build\lib.win32-2.6\pycuda
creating build\lib.win32-2.6\pycuda\gl
copying pycuda\gl\autoinit.py - build\lib.win32-2.6\pycuda\gl
copying pycuda\gl\__init__.py - build\lib.win32-2.6\pycuda\gl
creating build\lib.win32-2.6\pycuda\sparse
copying pycuda\sparse\cg.py - build\lib.win32-2.6\pycuda\sparse
copying pycuda\sparse\coordinate.py - build\lib.win32-2.6\pycuda\sparse
copying pycuda\sparse\inner.py - build\lib.win32-2.6\pycuda\sparse
copying pycuda\sparse\operator.py - build\lib.win32-2.6\pycuda\sparse
copying pycuda\sparse\packeted.py - build\lib.win32-2.6\pycuda\sparse
copying pycuda\sparse\pkt_build.py - build\lib.win32-2.6\pycuda\sparse
copying pycuda\sparse\__init__.py - build\lib.win32-2.6\pycuda\sparse
creating build\lib.win32-2.6\pycuda\compyte
copying pycuda\compyte\array.py - build\lib.win32-2.6\pycuda\compyte
copying pycuda\compyte\dtypes.py - build\lib.win32-2.6\pycuda\compyte
copying pycuda\compyte\scan.py - build\lib.win32-2.6\pycuda\compyte
copying pycuda\compyte\__init__.py - build\lib.win32-2.6\pycuda\compyte
running build_ext
building '_driver' extension
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
creating build\temp.win32-2.6\Release\src
creating build\temp.win32-2.6\Release\src\cpp
creating build\temp.win32-2.6\Release\src\wrapper
creating build\temp.win32-2.6\Release\bpl-subset
creating build\temp.win32-2.6\Release\bpl-subset\bpl_subset
creating build\temp.win32-2.6\Release\bpl-subset\bpl_subset\libs
creating build\temp.win32-2.6\Release\bpl-subset\bpl_subset\libs\python
creating build\temp.win32-2.6\Release\bpl-subset\bpl_subset\libs\python\src
creating
build\temp.win32-2.6\Release\bpl-subset\bpl_subset\libs\python\src\conv
erter
creating
build\temp.win32-2.6\Release\bpl-subset\bpl_subset\libs\python\src\obje
ct
creating build\temp.win32-2.6\Release\bpl-subset\bpl_subset\libs\thread
creating build\temp.win32-2.6\Release\bpl-subset\bpl_subset\libs\thread\src
creating
build\temp.win32-2.6\Release\bpl-subset\bpl_subset\libs\thread\src\pthr
ead
creating
build\temp.win32-2.6\Release\bpl-subset\bpl_subset\libs\thread\src\win3
2
creating build\temp.win32-2.6\Release\bpl-subset\bpl_subset\libs\smart_ptr
creating
build\temp.win32-2.6\Release\bpl-subset\bpl_subset\libs\smart_ptr\src
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W
3 /GS- /DNDEBUG -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1
-DBOOST_PYTHON_SOURCE=1 -
DPYGPU_PYCUDA=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1
-Dboost=pycudaboost
-Isrc/cpp -Ibpl-subset/bpl_subset -Ic:\Program Files\NVIDIA GPU Computing
Toolk
it\CUDA\v4.0\include -Ic:\Python26\lib\site-packages\numpy\core\include
-Ic:\Py
thon26\include -Ic:\Python26\PC /Tpsrc/cpp/cuda.cpp
/Fobuild\temp.win32-2.6\Rele
ase\src/cpp/cuda.obj /EHsc
cuda.cpp
c:\users\administrator\pycuda\src\cpp\cuda.hpp(1773) : warning C4146: 一元负运算
符应用于无符号类型,结果仍为无符号类型
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W
3 /GS- /DNDEBUG -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1
-DBOOST_PYTHON_SOURCE=1 -
DPYGPU_PYCUDA=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1
-Dboost=pycudaboost
-Isrc/cpp -Ibpl-subset/bpl_subset -Ic:\Program Files\NVIDIA GPU Computing
Toolk
it\CUDA\v4.0\include -Ic:\Python26\lib\site-packages\numpy\core\include
-Ic:\Py
thon26\include -Ic:\Python26\PC /Tpsrc/cpp/bitlog.cpp
/Fobuild\temp.win32-2.6\Re
lease\src/cpp/bitlog.obj /EHsc
bitlog.cpp
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W
3 /GS- /DNDEBUG -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1

Re: [PyCUDA] pycuda Installation problem on windows 32bit with VS2008

2012-02-25 Thread CiCi
I just solve the problem I have given above by updating from Git,but
Unfortunately I meet another problem!

Here is the error description in pycuda building process:


* thread.obj : error LNK2019: unresolved external symbol void __cdecl
pycudaboost::tss_cl
eanup_implemented(void) (?tss_cleanup_implemented@pycudaboost@@YAXXZ),该符号在
函数 void __cdecl pycudaboost::`anonymous
namespace'::create_current_thread_tls
_key(void) (?create_current_thread_tls_key@?A0x33f885c9@pycudaboost@@YAXXZ)
中
被引用*


I hope someone to help me as soon as possible, and I'll greatly appreciate!
Thanks!

CiCi

-
a chinese student
--
View this message in context: 
http://pycuda.2962900.n2.nabble.com/pycuda-Installation-problem-on-windows-32bit-with-VS2008-tp7317227p7318511.html
Sent from the PyCuda mailing list archive at Nabble.com.

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


Re: [PyCUDA] pycuda installation problem

2009-07-09 Thread Nicolas Pinto
do you have py.test installed ?

sudo easy_install -U py

Cheers,

N

On Thu, Jul 9, 2009 at 8:42 PM, Gökhan SEVER gokhanse...@gmail.com wrote:

 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 :(

 [gse...@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 pi...@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 pi...@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 gokhanse...@gmail.comwrote:

 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:

 [gse...@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


 [gse...@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

Re: [PyCUDA] pycuda installation problem

2009-07-09 Thread Gökhan SEVER
Finally, it works without any further complains.

Thank again Nicolas

On Thu, Jul 9, 2009 at 7:45 PM, Nicolas Pinto pi...@mit.edu wrote:

 do you have py.test installed ?

 sudo easy_install -U py

 Cheers,

 N


 On Thu, Jul 9, 2009 at 8:42 PM, Gökhan SEVER gokhanse...@gmail.comwrote:

 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 :(

 [gse...@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 pi...@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 pi...@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 gokhanse...@gmail.comwrote:

 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:

 [gse...@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


 [gse...@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