vlfeat / matconvnet

MatConvNet: CNNs for MATLAB
Other
1.4k stars 752 forks source link

How to solve? #1257

Open Melo-Anthony opened 2 years ago

Melo-Anthony commented 2 years ago

Win10, Matlab R2021b,VS2019,CUDA11.0,Cudnn11.2

vl_compilenn('enableGpu', true, 'cudaMethod', 'nvcc', ... 'cudaRoot', 'D:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0', ... 'enableCudnn', true, 'cudnnRoot', 'D:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0');

nvcc fatal : '-DNDEBUG': expected a number Error using vl_compilenn>nvcc_compile (line 615) Command "D:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc" -c -o "D:\Matlab2021b\toolbox\matconvnet-1.0-beta25\matlab\mex.build\bits\data.obj" "D:\Matlab2021b\toolbox\matconvnet-1.0-beta25\matlab\src\bits\data.cu" -DENABLE_GPU -DENABLE_DOUBLE -DENABLE_CUDNN -I"D:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -O -DNDEBUG -D_FORCE_INLINES --std=c++11 -I"D:\Matlab2021b\extern\include" -I"D:\Matlab2021b\toolbox\parallel\gpu\extern\include" -gencode=arch=compute_61,code=\"sm_61,compute_61\" --compiler-options=/MD --compiler-bindir="D:\VS\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64" failed.

Error in vl_compilenn (line 487) nvcc_compile(opts, srcs{i}, objfile, flags) ;