Donate to support Ukraine's independence.

11 Jan'12

PyOpenCl on x64 system

UPD: I found unofficial binary builds here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyopencl, use x86 builds.

Do not forget to install pytools.

I’ve been into some difficulties since i began installing that software, even with help of http://wiki.tiker.net/PyOpenCL/Installation/Windows.

First, easy_install won’t work on x64 systems if installed by executable installer. Instead, use ez_setup.py which will determine the correct version of the software.

Next, install numpy.

finally, i’ve got a problem with module compilation. Let’s split it into two problems:

  1. wrong path to vcvarsall.bat (try to add `C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC` to your path)
  2. wrong c implementation: you need to get vs2008 (even express will not suffice)
  3. Installing Visual Studio C++ 2008 Express didn’t provide all the necessary headers such as windows.h, so grab this too and be ready to give it 1.2Gb away. Nevertheless, first install fails with weird reason. Refer to http://ctrlf5.net/?p=184 for further help.

My siteconfig:

BOOST_INC_DIR = []
BOOST_LIB_DIR = []
BOOST_COMPILER = 'gcc43'
BOOST_PYTHON_LIBNAME = ['boost_python']
USE_SHIPPED_BOOST = True
CL_TRACE = False
CL_ENABLE_GL = False
CL_ENABLE_DEVICE_FISSION = True
CL_INC_DIR = [r'C:\Program Files (x86)\AMD APP\include']
CL_LIB_DIR = [r'C:\Program Files (x86)\AMD APP\lib\x86_64']
CL_LIBNAME = ['OpenCL']
CXXFLAGS = ['/EHsc']
LDFLAGS = []

Comments