matconvnet 编译错误
按方法Win10安装MatConvnet和Window环境MatConvNet安装编译cpu 版本matconvnet 通过,但gpu版本报错,如下
错误信息为
nvcc fatal : ‘-DNEDBUG’: expected a number
网上并示找到相关错误信息,虽然它说 参数’DNDEBUG’需要一个数。只在vl_compilenn.m 341行找到参数
if opts.debug
flags.base{end+1} = '-g' ;
flags.base{end+1} = '-DDEBUG' ;
else
flags.base{end+1} = '-O' ;
flags.base{end+1} = '-DNDEBUG' ;
end
和’Debug’ 参数说明
% `Debug`:: `false`
% Set to true to compile the binaries with debugging
% information.
尝试设置参数’Debug’为true然后编译成功,也不知道为什么
命令
vl_compilenn('enableGpu',true,'Debug',true',,'cudaRoot',‘C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1','cudaMethod' ,'nvcc','enableCudnn','true')
参数cudnnRoot为默认’local/cudnn’不同需要添加参数。
相关错误:
Win10+MATLAB2016B+VS2015+CPU/GPU+Matconvnet+CUDA9.1配置问题解决方法
Having problem In MatConvNet to Compiling the cuDNN support
MATLAB2017a编译MatConvNet过程中出现的各种问题