vl_compilenn error
4 次查看(过去 30 天)
显示 更早的评论
Hello,
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 个)
Saurabh Gupta
2017-8-1
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!