Title :
Accelerating MATLAB slow loop execution with CUDA
Author :
Ubaidullah ; Khan, Shoab Ahmed
Author_Institution :
Comput. Eng. Dept., Coll. of Electr. & Mech. Eng., Rawalpindi, Pakistan
Abstract :
MATLAB´s high-level programming syntax and user-friendly environment makes it best suited to write technical code. MATLAB is extensively used in a number of scientific fields, such as digital image processing, digital signal processing, mathematics (just to name a few). The significance of MATLAB´s programming is its rich library of built-in functions that provide programming ease. However, MATLAB uses an interpreter which slows down the processing, especially while executing loops. This becomes a performance bottleneck in programs that make excessive use of loops. In the field of digital image processing, for example, the operations performed on a matrix usually involve many nested loop structures. Therefore, MATLAB is often exposed to the issues of slow execution and memory latency. In order to accelerate MATLAB´s processing, we utilize NVIDIA´s CUDA parallel processing architecture. We demonstrate that interfacing MATLAB with CUDA and parallelizing the most time-consuming portions of MATLAB´s code, the processing can be speeded up significantly. As a proof of concept, we present some results of JPEG compression with MATLAB using CUDA. Not only our results show a significant performance boost in MATLAB´s processing, but are also in perfect agreement with quality.
Keywords :
high level languages; human computer interaction; image coding; mathematics computing; parallel architectures; program interpreters; programming language semantics; CUDA; JPEG compression; MATLAB slow loop execution; built-in functions library; digital image processing; high-level programming syntax; interpreter; memory latency; nested loop structures; parallel processing architecture; technical code writing; user-friendly environment; Computer languages; Graphics processing unit; Image coding; Image segmentation; MATLAB; Programming; Transform coding;
Conference_Titel :
Emerging Technologies (ICET), 2011 7th International Conference on
Conference_Location :
Islamabad
Print_ISBN :
978-1-4577-0769-8
DOI :
10.1109/ICET.2011.6048447