Installation:

$ mkdir PyOpenCL-build && cd PyOpenCL-build
$ git clone --recursive git://github.com/inducer/pyopencl
$ apt-get install python-pip python-virtualenv python-numpy python-mako python-dev

  (or equivalent, for example:
  curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
  sudo python get-pip.py 
  sudo pip install virtualenv)

$ virtualenv --system-site-packages mypy
$ source mypy/bin/activate
$ cd pyopencl
$ ./configure.py

Edit siteconf.py: set CL_INC_DIR = ['../../../include']

$ python setup.py install

Update:

$ source mypy/bin/activate
$ cd pyopencl
$ git pull
$ git submodule update
$ python setup.py install

Run test:

$ source mypy/bin/activate
$ cd pyopencl/test
$ PYOPENCL_NO_CACHE=1 PYOPENCL_TEST=portable py.test -v --tb=native

'PYOPENCL_TEST=portable' restricts the test run to pocl.

You can also append individual test_*.py files to that command line to
only run these tests. Many of the algorithmic tests are already looking
pretty good.

test_wrapper.py on the other hand is pretty brutal. It tests a few
corner cases (all GetInfo queries, invalid kernel names, ...) and
crashes with SIGSEGV pretty much immediately.

Thank you for your work on pocl. I'm lurking on the pocl list if you
need me to help somehow.

--Andreas Klöckner @ pocl-devel ML
