Error compiling Matconvnet with gpu
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Respuestas (0)
Ver también
Categorías
Más información sobre GPU Computing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!