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!