
Last Updated:
05
/
05
/
2008
MATLAB plug-in for CUDA
This MATLAB plug-in for CUDA provides: acceleration of standard MATLAB 2D FFTs and CUDA/MEX example plug-in and build environment 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 .
[Download] MathWorks MATLAB® Plug-in for Linux
[Download] MathWorks MATLAB® Plug-in for Windows
[Download] Whitepaper: Accelerating MathWorks MATLAB® with CUDA
Previous Versions
[Download] CUDA 1.0 Plug-in for Linux
[Download] CUDA 1.0 Plug-in for Windows