MATLAB: How to solve problems in compile CUDE in matlab

omer-17

I used Matlab 2016a , Visual Studio 2013, CUDA 7.5 and cuDNN v5.1. When I perform compile cudu in matlab.. it shows error like the following.. vl_compilenn: CUDA: MEX config file: 'C:\Program Files\MATLAB\R2016a\toolbox\distcomp\gpu\extern\src\mex\win64\mex_CUDA_win64.xml' nvcc fatal : Unsupported gpu architecture 'compute_21' Error using vl_compilenn>nvcc_compile (line 540) Command "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin\nvcc" -c

Best Answer

Cudnn needs cuda 3.0 or later. Your device only has cuda 2.1. You will need be able to run the software on that hardware.
You are also at pretty much the last MATLAB version that can use that hardware for gpu purposes, I seem to recall.