vl_compilenn error

조회 수: 12 (최근 30일)
Roman
Roman 2017년 7월 29일
댓글: bassant tolba 2021년 7월 25일
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
bassant tolba
bassant tolba 2021년 7월 25일
Please , how did you solve it ??

댓글을 달려면 로그인하십시오.

답변 (1개)

Saurabh Gupta
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!

카테고리

Help CenterFile 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!

Translated by