CUDNN目录不要包含空格。 下面是在stackoverflow上的解答, 供题主参考: Answer by Joss Knight This appears to be a bug in MatConvNet's vl_compilenn function preventing it from working when your cudnn include path contains spaces. In my version lines 298-301 say: if opts.enableCudnn,1 t" w' E6 o$ e& W, H! {1 q# e
flags.cc{end+1} = '-DENABLE_CUDNN' ;- \5 A6 g, [1 w+ w* _9 ?
flags.cc{end+1} = ['-I' opts.cudnnIncludeDir] ;
+ j8 C' O$ g7 E/ \. Z9 Vend
6 U$ t8 {1 u7 r0 t0 n; KThe third line is missing quotes, so change it to: if opts.enableCudnn,
* ]9 K1 Y# L( \flags.cc{end+1} = '-DENABLE_CUDNN' ; P6 |- G7 g, y0 s) g% I
flags.cc{end+1} = ['-I"' opts.cudnnIncludeDir '"'] ;0 U9 D8 r& |2 G( X/ f
end
- D9 Z& Z* \! [& vThe actual lines of code may be slightly different in your version of vl_compilenn. This is a very bad error and I can see similar mistakes being made through that file, which makes me think that somehow under normal circumstances this is not a problem and it's only cropping up on your system for some reason. |