Thanks Gregor/Andreas. 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 <[email protected]> wrote: > Blair Azzopardi <[email protected]> writes: > > Are there any more up to date instructions on building pyopencl on > windows? > > 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: > > > > d:\software\windows\sources\pyopencl\src\c_wrapper\wrap_cl_core.h(53): > > error C2061: syntax error: identifier 'uint32_t' > > d:\software\windows\sources\pyopencl\src\c_wrapper\wrap_cl_core.h(59): > > error C2065: 'add': undeclared identifier > > d:\software\windows\sources\pyopencl\src\c_wrapper\wrap_cl_core.h(59): > > error C2059: syntax error: 'const' > > d:\software\windows\sources\pyopencl\src\c_wrapper\wrap_cl_core.h(96): > > error C2061: syntax error: identifier 'ssize_t' > > etc.. > > > > 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: > > http://lists.tiker.net/pipermail/pyopencl/2015-August/thread.html > http://lists.tiker.net/pipermail/pyopencl/2015-August/001953.html > > 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 > instructions.) >
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
