dgyoo / pa3

Recent image representation as PA3 of the computer vision class.
7 stars 0 forks source link

Error compiling Matconvnet with gpu #17

Open ayoubmar opened 4 years ago

ayoubmar commented 4 years ago

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) ;

how i solve this problem