Professional Documents
Culture Documents
Index :
About the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 1 : How to install OpenCL and PyOpenCL ?! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 2 : How to link the Python Interpreter to work with PyOpenCL ?! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 3 6
Introduction :
This manual aims to let the ordinary people to install OpenCL API , and work with it. It also may help to install PyOpenCL which lets you access the OpenCL parallel computation API from Python. Most of the material gathered from http://mathema.tician.de/software/pyopencl http://wiki.tiker.net/PyOpenCL/Installation/Windows
you can also find the complete PyOpenCL documentation which helps a lot in writing programs at http://documen.tician.de/pyopencl/reference.html
1- Microsoft Visual Studio C++ 2008 Express Description : on which you will right your C/C++ programs that should be run using OpenCl libraries Download link : download VC 2- ATI Stream SDK v2 Beta or Nvidia's OpenCL GPU driver and OpenCL SDK Nvidia's OpenCL GPU driver Description : allow developers to harness the massive parallel computing power of NVIDIA GPUs to create compelling computing applications (OpenCL). Download link : download Nvedia driver
ATI Stream SDK v2 Beta Description: The ATI Stream Software Development Kit (SDK) is a complete development platform created by AMD to allow you to quickly and easily develop applications accelerated by ATI Stream technology. The SDK allows you to develop your applications in a high-level language, OpenCL (Open Computing Language). Download link : download ATI stream SDK Note : I prefer to install Nvidia's OpenCL GPU driver and OpenCL SDK cause it more stable and all ATI versions are beta version, but in many cases it may not work with your PC if u have not least specification of Nvidia hardware which is . If you failed to install Nvidia driver, try ATI Stream-SDK.
With these steps and step(5) you can run OpenCL programs written in C/C++
3- last version of Python Download link : download python Note : I prefer to download Python 2.6.4 as it is more existing third party software is compatible with Python 2 than Python 3 right now.
Description : NumPy is the fundamental package needed for scientific computing with
Python. It contains among other things:
a powerful N-dimensional array object sophisticated (broadcasting) functions tools for integrating C/C++ and Fortran code useful linear algebra, Fourier transform, and random number capabilities.
Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases. Download link : download Numpy (compatible with Python 2.6) Choose preferred ver of Numpy SciPy
5- Boost 1.39 precompiled version (Multithreaded DLLs and libraries, compiled against MSVC 9.0, including DateTime, Python and Thread) Description : "...one of the most highly regarded and expertly designed C++ library projects in the world." Use of high-quality libraries like Boost speeds initial development, results in fewer bugs, reduces reinvention-of-the-wheel, and cuts long-term maintenance costs. And since Boost 4|OpenCL Installation Manual Copyright 2010, Hosain Ali hosain.ali@hotmail.com.
Download link : The easiest way to get a copy of Boost is to use an installer. BoostPro 1.40.0 Installer choose your preferred Boost installer ver Getting started with Boost
6- Python setuptools 0.6c9 Description : Download, build, install, upgrade, and uninstall Python packages -- easily! Download link : download Python Setup tools
7- PyOpenCL Description : PyOpenCL lets you access GPUs and other massively parallel compute devices from Python.
Object cleanup tied to lifetime of objects : This idiom, often called RAII in C++, makes it much easier to write correct, leak- and crash-free code. Completeness : PyOpenCL puts the full power of OpenCL's API at your disposal, if you wish. Every obscure get_info() query and all CL calls are accessible. Automatic Error Checking : All CL errors are automatically translated into Python exceptions. Speed : PyOpenCL's base layer is written in C++, so all the niceties above are virtually free. Liberal license : PyOpenCL is open-source under the MIT license and free for commercial, academic, and private use. Broad support : PyOpenCL was tested and works with Apple's, AMD's, and Nvidia's CL implementations.