I managed to compile it using MingWPy and some minor source code changes.
I've updated the wiki <http://wiki.tiker.net/PyOpenCL/Installation/Windows>
with Windows build instructions.
Unfortunately, my Nvidia GPU is a Fermi type and so doesn't support OpenCL
1.2. Only Kepler/Maxwell GPUs do. C'est la vie!
On Sat, Sep 26, 2015 at 5:28 PM, Andreas Kloeckner <lists(a)informa.tiker.net>
Blair Azzopardi <blairuk(a)gmail.com> writes:
> Are there any more up to date instructions on building pyopencl on
> I have been using a precompiled binary until now but would like to
> recompile myself.
> I note that when I follow instructions from README_SETUP.txt and then
> compile I receive errors along the lines of:
> error C2061: syntax error: identifier 'uint32_t'
> error C2065: 'add': undeclared identifier
> error C2059: syntax error: 'const'
> error C2061: syntax error: identifier 'ssize_t'
> From the wiki it suggests using boost which I've tried but whenever I
> enable BOOST* options in my siteconf.py I get errors along the lines of:
> KeyError: 'invalid config key in .\\siteconf.py: BOOST_INC_DIR'
> Which seems to suggest those options have since been removed and the wiki
> page needs updating.
The git version of pyopencl no longer relies on boost. (But the most
recent released version still does.) There were some threads on the
mailing list regarding building the new version on Windows:
It'd be great if you could update the wiki. (I don't use Windows for
development, and so I'm not really in a position to maintain those