Error compiling Matconvnet with gpu

4 ビュー (過去 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 Center および File ExchangeGPU Computing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by