Everything now works. Details...
First of all I've failed to get Boost 1.41.0 to compile correctly with
Python support on Windows XP (which relates to the earlier messages in this
thread). Each time the compilation would succeed but
boost_python-vc90-mt-1_41.dll would reference PYTHON25.DLL rather than
PYTHON26.DLL.
DependencyWalker helped me locate this problem (cheers Andreas!) but I
couldn't force it to build a Python2.6 version. To be clear - Python 2.5
was uninstalled weeks back, there are no traces that I can see (no PATH, no
directories etc) and using --debug-configuration with bjam shows that
Python2.6 is found and built against...but still PYTHON25.DLL is referenced
in the DLL. I tried configuring project-config.jam and forcing "python=2.6"
with bjam too. 4 days were spent banging my head against this problem, I
hope this warning saves someone else the trouble.
Switching to Boost 1.39.0 solved everything - it built from source first
time (using "bjam --build-type=complete stage") and delivered dlls that
DependencyWalker reported depending on PYTHON26.DLL.
After this pyCUDA would build and install but I couldn't run any demos
because nvcc failed. I checked that cl.exe existed but it wasn't in the
PATH. For reference this is the sort of error I saw:
---
C:\Documents and Settings\parc\My
Documents\Downloads\pycuda_git\pycuda\examples>python demo.py
nvcc fatal : Cannot find compiler 'cl.exe' in PATH
Traceback (most recent call last):
File "demo.py", line 22, in <module>
""")
File
"C:\Python26\lib\site-packages\pycuda-0.94beta-py2.6-win32.egg\pycuda\compiler.py",
line 203, in __init__
arch, code, cache_dir, include_dirs)
File
"C:\Python26\lib\site-packages\pycuda-0.94beta-py2.6-win32.egg\pycuda\compiler.py",
line 193, in compile
return compile_plain(source, options, keep, nvcc, cache_dir)
File
"C:\Python26\lib\site-packages\pycuda-0.94beta-py2.6-win32.egg\pycuda\compiler.py",
line 86, in compile_plain
raise CompileError, "nvcc compilation of %s failed" % cu_file_path
pycuda.driver.CompileError: nvcc compilation of
c:\docume~1\parc\locals~1\temp\tmpmg5usi\kernel.cu failed
---
The solution was to add cl.exe and a required dll directory for Visual
Studio 2008 (VS9) to the PATH, these were the relevant directories on my
machine:
C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\;C:\Program
Files\Microsoft Visual Studio 9.0\Common7\IDE
After this the demos work - many thanks Andreas for providing the package!
Ian.
2010/1/9 Ian Ozsvald <[email protected]>
> Ah, I had tried editing 'user-config.jam' as I'd read in their FAQ but that
> didn't change anything. I'm away from the office for a while, when back
> I'll re-read:
> http://wiki.tiker.net/BoostInstallationHowto
> and try project-config.jam.
>
> Cheers,
> Ian.
> ps. whenever I reply the reply-to field is set to 'Andreas Klöckner <
> [email protected]>' rather than '<[email protected]>' - I saw this
> mentioned by someone else recently so maybe there's a misconfig somewhere?
>
> 2010/1/8 Andreas Klöckner <[email protected]>
>
>> On Freitag 08 Januar 2010, Ian Ozsvald wrote:
>> > Can anyone suggest any reasons why boost is looking for python25.dll
>> rather
>> > than the 2.6 equivalent?
>>
>> Check boost's project-config.jam.
>>
>> Andreas
>>
>>
>> _______________________________________________
>> PyCUDA mailing list
>> [email protected]
>> http://tiker.net/mailman/listinfo/pycuda_tiker.net
>>
>>
>
>
> --
> Ian Ozsvald (Professional Screencaster)
> [email protected]
>
> http://ProCasts.co.uk/examples.html
> http://TheScreencastingHandbook.com
> http://IanOzsvald.com + http://ShowMeDo.com
> http://twitter.com/ianozsvald
>
--
Ian Ozsvald (Professional Screencaster)
[email protected]
http://ProCasts.co.uk/examples.html
http://TheScreencastingHandbook.com
http://IanOzsvald.com + http://ShowMeDo.com
http://twitter.com/ianozsvald
_______________________________________________
PyCUDA mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net