Nice to meet you all of you
If it is the need that does not understand English well, please make a
fair copy of oneself.
The method how I installed pyCuda in windowsXP
1.downlaod MinGW 5.1.4 and installed
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780
2.download boost1.38.0.zip. It is extracted zip by a "c:\program
files\boost\"
http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=8041
3.download boost-jam and copy to "c:\program
files\boost-jam-3.1.17-1-ntx86"
http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941
I add a directory to PATH
4.compiled Boost C++ libraries by mingw
type commandPrompt
cd "c:\program files\boost\boost_1_38_0"
bjam.exe --toolset=gcc --build-type=complete stage
I wait for huge time... ... ...
In the case of a visual studio?...I do not try it.
bjam.exe --toolset=msvc-7.1 --build-type=complete stage
or
bjam.exe --toolset=msvc-8.0 --build-type=complete stage
5.download and installed cuda(driver,toolkit,sdk)
6.setup pyCuda0.92
type commandPrompt
python ez_setup.py
I edit siteconf.py as follows
BOOST_INC_DIR = [r'C:\Program Files\boost\boost_1_38_0']
BOOST_LIB_DIR = [r'C:\Program Files\boost\boost_1_38_0\stage\lib']
BOOST_PYTHON_LIBNAME = ['boost_python-mgw34-mt']
CUDA_ROOT = r'C:\CUDA'
CUDADRV_LIB_DIR = [r'C:\CUDA\lib']
CUDADRV_LIBNAME = ['cuda']
CXXFLAGS = []
LDFLAGS = []
create text file
C:\Python25\Lib\distutils\distutils.cfg
I write in following two lines and save it
[build]
compiler=mingw32
type commandPrompt
python setup.py install
7.pyCuda0.92 install finished. but...
type commandPrompt
python test_driver.py
C:\myWorks\pycuda-0.92\test>python test_driver.py
EE.EE....EEEEEE
======================================================================
ERROR: test_2d_texture (__main__.TestCuda)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_driver.py", line 144, in test_2d_texture
""")
File
"C:\Python25\lib\site-packages\pycuda-0.92-py2.5-win32.egg\pycuda\driver.
py", line 511, in __init__
"pycuda-compiler-cache-v1-uid%s" % os.getuid())
AttributeError: 'module' object has no attribute 'getuid'
----------------------------------------------------------------------
Omission
.
.
.
.
.
.
----------------------------------------------------------------------
Ran 15 tests in 0.157s
FAILED (errors=10)
---------The quotation end--------------------------------------------
C:\Python25\Lib\site-packages\pycuda-0.92-py2.5-win32.egg\pycuda\driver.py
line 511
"pycuda-compiler-cache-v1-uid%s" % os.getuid())
It seems that windows becomes the error because os.getuid() is not
supported.
I follow, and it is ... by installation of LINUX....
Because I have a character to persist, I try to continue it.
I renew it
"pycuda-compiler-cache-v1-uid%s" % 'user name')
C:\myWorks\pycuda-0.92\test>python test_driver.py
nvcc fatal : Cannot find compiler 'cl.exe' in PATH
Envcc fatal : Cannot find compiler 'cl.exe' in PATH
E.nvcc fatal : Cannot find compiler 'cl.exe' in PATH
Envcc fatal : Cannot find compiler 'cl.exe' in PATH
E....nvcc fatal : Cannot find compiler 'cl.exe' in PATH
Envcc fatal : Cannot find compiler 'cl.exe' in PATH
Envcc fatal : Cannot find compiler 'cl.exe' in PATH
Envcc fatal : Cannot find compiler 'cl.exe' in PATH
Envcc fatal : Cannot find compiler 'cl.exe' in PATH
Envcc fatal : Cannot find compiler 'cl.exe' in PATH
append that to PATH
"C:\Program Files\Microsoft Visual Studio 8\VC\bin"
C:\myWorks\pycuda-0.92\test>python test_driver.py
kernel.cu
tmpxft_00001150_00000000-3_kernel.cudafe1.gpu
tmpxft_00001150_00000000-8_kernel.cudafe2.gpu
.kernel.cu
tmpxft_00001a6c_00000000-3_kernel.cudafe1.gpu
tmpxft_00001a6c_00000000-8_kernel.cudafe2.gpu
..kernel.cu
tmpxft_00001094_00000000-3_kernel.cudafe1.gpu
tmpxft_00001094_00000000-8_kernel.cudafe2.gpu
kernel.cu
tmpxft_00000238_00000000-3_kernel.cudafe1.gpu
tmpxft_00000238_00000000-8_kernel.cudafe2.gpu
kernel.cu
tmpxft_000017c8_00000000-3_kernel.cudafe1.gpu
tmpxft_000017c8_00000000-8_kernel.cudafe2.gpu
.kernel.cu
tmpxft_00001a7c_00000000-3_kernel.cudafe1.gpu
tmpxft_00001a7c_00000000-8_kernel.cudafe2.gpu
kernel.cu
tmpxft_000025d8_00000000-3_kernel.cudafe1.gpu
tmpxft_000025d8_00000000-8_kernel.cudafe2.gpu
.....kernel.cu
tmpxft_00002134_00000000-3_kernel.cudafe1.gpu
tmpxft_00002134_00000000-8_kernel.cudafe2.gpu
.kernel.cu
tmpxft_00001520_00000000-3_kernel.cudafe1.gpu
tmpxft_00001520_00000000-8_kernel.cudafe2.gpu
.kernel.cu
tmpxft_00000ccc_00000000-3_kernel.cudafe1.gpu
tmpxft_00000ccc_00000000-8_kernel.cudafe2.gpu
.kernel.cu
tmpxft_00001a58_00000000-3_kernel.cudafe1.gpu
tmpxft_00001a58_00000000-8_kernel.cudafe2.gpu
..kernel.cu
tmpxft_00001cbc_00000000-3_kernel.cudafe1.gpu
tmpxft_00001cbc_00000000-8_kernel.cudafe2.gpu
.
----------------------------------------------------------------------
Ran 15 tests in 23.953s
OK
I was able to do it...
Oops! I forgot what I was going to do.
m.nomura
_______________________________________________
PyCuda mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net