Just a note to say that I've now successfully managed to build pyopencl
on debian lenny amd64 (actually core2 duo) with the AMD/ATI drivers.
This machine has no suitable graphics card, so I'm using the AMD/ATI
drivers for the CPU part for testing.
I first downloaded both the driver and SDK archives, uncompressed them,
and copied the driver libraries from arch/x86_64/usr/lib64/ to the main
SDK lib directory, finally setting LD_LIBRARY_PATH to include that dir.
Building pyopencl was more tricky, and I eventually did something like:
- ensure I had the libboost*1.35.0 packages installed, rather than 1.34
(using package manager)
- (already had numpy)
- python configure.py ... with various options. I don't recall exactly,
but I ended up realising that siteconf.py held the options so if things
didn't work edited it by hand, leading to:
BOOST_INC_DIR = 
BOOST_LIB_DIR = 
BOOST_COMPILER = 'gcc42'
BOOST_PYTHON_LIBNAME = ['boost_python-gcc42-mt-1_35-py25']
BOOST_THREAD_LIBNAME = ['boost_thread-gcc42-mt-1_35']
CL_TRACE = False
CL_ENABLE_GL = False
SHIPPED_CL_HEADERS = False
CL_INC_DIR = ['SOMETHING/opencl/ati-stream-sdk-v2.0-beta4-lnx64/include/']
CL_LIBNAME = ['OpenCL']
CXXFLAGS = 
LDFLAGS = 
(note that I've put 'SOMETHING' where a more complex path really was,
but it should still be on one line not two)
- I tried 'make install', but wanted to install locally (home
directory), and some 'ctags' command failed, so in the end used:
python setup.py build
python setup.py install --home=$DIR (for some value of $DIR !)
where I'd made $DIR beforehand
- I set PYTHONPATH to $DIR/lib/python (I think!)
- CRITICALLY (?) I cd'ed away from the pyopencl directory (!) and then
"python -c 'import pyopencl'" worked without a problem :D
That was fun ;)
I'm hoping that a pyopencl package might appear in debian shortly...
Actual questions to follow shortly ;)
Show replies by date