Check the GPU and CUDA version supported by MATLAB current release from NVIDIA's website.
CUDA - Getting Started on Windows
- Install CUDA driver
- Install CUDA toolkit
- Install CUDA SDK
- restart computer
Verify CUDA Installation
- To verify installation, from the Window's command prompt:
- Run the bandwidthTest program located in
Where, in my case, %NVSDKCUDA_ROOT% is C:\WINNT\Profiles\All Users\Application Data\NVIDIA Corporation\NVIDIA GPU Computing SDK\C
Compile CUDA Code
Compile your CUDA code using MEX in MATLAB.
If you run into issues wherein some of the CUDA libraries are not found, you may either find the libraries and add them to your current directory, or add a few directories to the PATH:
C:\CUDA\bin; %NVSDKCUDA_ROOT%\common\lib; %NVSDKCUDA_ROOT%\common\inc;