|
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,% I4 A6 `1 I7 K- W; C- b/ U5 l% d* ]
flags.cc{end+1} = '-DENABLE_CUDNN' ;
- x9 f6 f* d! [2 [( r! Y1 g. |' \flags.cc{end+1} = ['-I' opts.cudnnIncludeDir] ;1 C3 A. w V* p. B
end/ k* ^! M' V7 o9 r+ `9 M& v2 @
The third line is missing quotes, so change it to: if opts.enableCudnn,
( n& s) t0 M- o- R! }- [% @2 Qflags.cc{end+1} = '-DENABLE_CUDNN' ;+ U* Q5 S. { E* ?7 b6 h
flags.cc{end+1} = ['-I"' opts.cudnnIncludeDir '"'] ;
8 W$ i, k0 c/ J" E* A# Aend
+ [7 }7 a8 m3 RThe 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. |