vl_compilenn error

19 views (last 30 days)
Roman on 29 Jul 2017
Commented: bassant tolba on 25 Jul 2021
I tried running the following:
vl_compilenn('enableGpu', true, ...
'cudaMethod', 'nvcc', ...
'cudaRoot', 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5', ...
'enableCudnn', true, ...
'cudnnRoot', 'local/cudnn') ;
Before I added to 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin\nvcc.profile' the flag:
CUDA_NVCC_FLAGS = --cl-version 2010
(I also tried CUDA_NVCC_FLAGS += --compiler-bindir = "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin")
But the error is the following:
vl_compilenn: CUDA: MEX config file: 'C:\Program Files\MATLAB\R2016b\toolbox\distcomp\gpu\extern\src\mex\win64\mex_CUDA_win64.xml'
nvcc fatal : nvcc cannot find a supported version of Microsoft Visual Studio. Only the versions 2010, 2012, and 2013 are supported
Error using vl_compilenn>nvcc_compile (line 521)
Command "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\bin\nvcc" -c
"C:\Users\flo9fe\Desktop\matconvnet-d9c8a3f0ecb81ad05b911d2bca6904dbf116d2a8\matlab\src\bits\data.cu" -DNDEBUG -DENABLE_GPU -DENABLE_CUDNN
-Ilocal\cudnn\include -DENABLE_DOUBLE -D__SSSE3__ -gencode=arch=compute_30,code=\"sm_30,compute_30\" -I"C:\Program Files\MATLAB\R2016b\extern\include"
-I"C:\Program Files\MATLAB\R2016b\toolbox\distcomp\gpu\extern\include" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -Xcompiler /MD -o
"C:\Users\flo9fe\Desktop\matconvnet-d9c8a3f0ecb81ad05b911d2bca6904dbf116d2a8\matlab\mex\.build\bits\data.obj" failed.
Error in vl_compilenn (line 466)
nvcc_compile(opts, srcs{i}, objfile, flags.nvcc) ;
Can anyone help? Perhaps some more Informations: I have installed Microsoft Visual Studio Express 2010. My Comp has the specifications Wind 7, 64 bit, I'm using Matlab 2016b
  1 Comment
bassant tolba
bassant tolba on 25 Jul 2021
Please , how did you solve it ??

Sign in to comment.

Answers (1)

Saurabh Gupta
Saurabh Gupta on 1 Aug 2017
It looks like 'vl_compilenn' is from a third-party repo called 'MatConvNet' which has its own forums at the following links. You may want to check there as well.
From MATLAB perspective, MATLAB may not be setup with a compiler supported by this functionality. Execute the following command and make sure that your Visual Studio 2010 compiler is selected as the default compiler.
>> mex -setup
Hope this helps!


Find more on Multicore Processor Targets in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!