NVIDIA Developer Zone

MATLAB FOR CUDA

GPU computing capabilities are available in released versions of MATLAB® with Parallel Computing Toolbox.

Learn more about GPU computing with MATLAB here.

GPU computing with MATLAB is also available with Jacket from AccelerEyes. Learn more here.

MATLAB plug-in for CUDA – Legacy Capability

This MATLAB plug-in for CUDA is a legacy feature, now that GPU computing is supported natively with MATLAB. This legacy plug-in provides acceleration of standard MATLAB 2D FFTs, and CUDA/MEX example plug-ins and build environments using Chris Bretherton's Fourier spectral simulation of 2D fluid flow MATLAB scripts from his course material at the University of Washington.

When MATLAB makes 2D FFT calls of any size, the NVIDIA plug-in intercepts them and handles them with a MEX file that in-turn utilizes an optimized CUDA FFT implementation on the GPU. This is transparent to MATLAB users.

Note: this current implementation uses a single-precision 2-FFT on the NVIDIA hardware, so the results are not in 64-bit precision that the native MATLAB implementation uses without the NVIDIA plug-in. Can be run with and without CUDA acceleration. Time to run the example shows a 14X speedup (from 216 seconds to 15 seconds using CUDA via the MEX file interface).

The MEX file example and build environment uses an FS_2Dflow example but the method is illustrative on how to write a custom CUDA interface via a MATLAB MEX file interface for all CUDA libraries.

Read more about MATLAB acceleration on Tesla and Quadro GPUs

Read more about GPU Acceleration on MATLAB with Jacket from Accelereyes

Archived Downloads

  • [Download] Whitepaper: GPU Computing in MATLAB® with Jacket, by AccelerEyes
  • [Download] Whitepaper (previous version): MATLAB on CUDA (releases R2007b to R2009a)
  • [Download] MathWorks MATLAB® CUDA 1.1 Plug-in for Linux
  • [Download] MathWorks MATLAB® CUDA 1.1 Plug-in for Windows
  • [Download] MathWorks MATLAB® CUDA 1.0 Plug-in for Linux
  • [Download] MathWorks MATLAB® CUDA 1.0 Plug-in for Windows

MATLAB is a registered trademark of The MathWorks, Inc.
Jacket is a trademark of AccelerEyes