Accelerating MATLAB with GPU Computing

Accelerating MATLAB with GPU Computing

4.11 - 1251 ratings - Source

Beyond simulation and algorithm development, many developers increasingly use MATLAB even for product deployment in computationally heavy fields. This often demands that MATLAB codes run faster by leveraging the distributed parallelism of Graphics Processing Units (GPUs). While MATLAB successfully provides high-level functions as a simulation tool for rapid prototyping, the underlying details and knowledge needed for utilizing GPUs make MATLAB users hesitate to step into it. Accelerating MATLAB with GPUs offers a primer on bridging this gap. Starting with the basics, setting up MATLAB for CUDA (in Windows, Linux and Mac OS X) and profiling, it then guides users through advanced topics such as CUDA libraries. The authors share their experience developing algorithms using MATLAB, C++ and GPUs for huge datasets, modifying MATLAB codes to better utilize the computational power of GPUs, and integrating them into commercial software products. Throughout the book, they demonstrate many example codes that can be used as templates of C-MEX and CUDA codes for readersa€™ projects. Download example codes from the publisher's website: Shows how to accelerate MATLAB codes through the GPU for parallel processing, with minimal hardware knowledge Explains the related background on hardware, architecture and programming for ease of use Provides simple worked examples of MATLAB and CUDA C codes as well as templates that can be reused in real-world projectsFor 32-bit Windows, replace x64 with Win32; for example, .. mex AddVectorsCuda.cpp AddVectors.obj -lcudart -Laquot;C:\Program Files\NVIDIAGPU Computing Toolkit\CUDA\v4.0\lib\Win32aquot; The -lcudart tells mex that we are using CUDA runtime libraries. The -Laquot;C: ... Now, it is time to run our new mex function in the MATLAB.

Title:Accelerating MATLAB with GPU Computing
Author:Jung W. Suh, Youngmin Kim
Publisher:Newnes - 2013-11-18


You Must CONTINUE and create a free account to access unlimited downloads & streaming