This Article 
   
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
Portable Parallel Programs with Python and OpenCL
Jan.-Feb. 2014 (vol. 16 no. 1)
pp. 34-40
Massimo Di Pierro, DePaul University
Two Python modules are presented: pyOpenCL, a library that enables programmers to write Open Common Language (OpenCL) code within Python programs; and ocl, a Python-to-C converter that lets developers write OpenCL kernels using the Python syntax. Like CUDA, OpenCL is designed to run on multicore GPUs. OpenCL code can also run on other architectures, including ordinary CPUs and mobile devices, always taking advantage of their multicore capabilities. Combining Python, numerical Python (numPy), pyOpenCL, and ocl creates a powerful framework for developing efficient parallel programs that work on modern heterogeneous architectures. Open Common Language (OpenCL) runs on multicore GPUs, as well as other architectures including ordinary CPUs and mobile devices. Combining OpenCL with numerical Python (numPy) and a new module--ocl, a Python-to-C converter that lets developers use Python to write OpenCL kernels--creates a powerful framework for developing efficient parallel programs for modern heterogeneous architectures.
Index Terms:
Kernel,Graphics processing units,Computer applications,Parallel processing,Multicore processing,Programming,Scientific computing,scientific computing,parallel programming,Python,OpenCL,GPU,meta-programming
Citation:
Massimo Di Pierro, "Portable Parallel Programs with Python and OpenCL," Computing in Science and Engineering, vol. 16, no. 1, pp. 34-40, Jan.-Feb. 2014, doi:10.1109/MCSE.2013.99
Usage of this product signifies your acceptance of the Terms of Use.