I recently discovered the power of a GP-GPU (Generic GPU) and want to use it to perform βheavyβ scientific and mathematical calculations (which otherwise require large clusters of CPUs) on the same machine.
I know that there are several interfaces on the GPU, the most notable of which are CUDA and OpenCL. The latter has an advantage against CUDA for working on most video cards (NVIDIA, AMD, Intel), and not just with NVIDA cards. In my case, I have a regular Intel 4000 GPU that seems to work well with OpenCL.
Now I need to learn how to work with PyOpenCL to get it further! So the question is:
How can I get started with PyOpenCL? What are the prerequisites? Do I really need to be experienced in Python and / or OpenCL?
My background is in fortran, and in fact I need to translate and parallelize the long fortran code in python (or pyopencl), which mainly deals with PDE solutions and diagonalizing matrices.
I read two relevant websites http://enja.org/2011/02/22/adventures-in-pyopencl-part-1-getting-started-with-python/ and http://documen.tician.de/ pyopencl / , but they are not really useful for beginners (i.e. mannequins).
I just don't know where to start. I do not aspire to become an expert in this field, just to find out how you can parallelize simple math and linear algebra in pyopencl.
Any advice and help is appreciated!
python opencl gpgpu pyopencl
mario go
source share