Error compiling Matconvnet with gpu

조회 수: 7 (최근 30일)
youb mr
youb mr 2020년 6월 24일
댓글: Dhruti r 2020년 7월 20일
hello everyone
I am using MATLAB 2019b, CUDA toolkit 10.1 and visual studio 2017.
I am able to compile the CPU version. but here is the error I get while compiling GPU version.
vl_compilenn('enableGpu', true, ...
'cudaRoot', 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1', ...
'cudaMethod', 'nvcc', ...
'enableCudnn', true, ...
'cudnnRoot', 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1');
the message error:
nvcc fatal : '-DNDEBUG': expected a number
Error using vl_compilenn>nvcc_compile (line 615)
Command "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\nvcc" -c -o
"G:\matconvnet-1.0-beta25\matlab\mex\.build\bits\data.obj"
"G:\matconvnet-1.0-beta25\matlab\src\bits\data.cu" -DENABLE_GPU -DENABLE_DOUBLE -DENABLE_CUDNN
-I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -O -DNDEBUG -D_FORCE_INLINES
--std=c++11 -I"G:\programme\extern\include" -I"G:\programme\toolbox\distcomp\gpu\extern\include"
-gencode=arch=compute_61,code=\"sm_61,compute_61\" --compiler-options=/MD
--compiler-bindir="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\bin" failed.
Error in vl_compilenn (line 487)
nvcc_compile(opts, srcs{i}, objfile, flags) ;
  댓글 수: 1
Dhruti r
Dhruti r 2020년 7월 20일
same error can anyone help please...!!

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by