|
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,
! e7 m! y/ @) V9 |$ p& A; ]flags.cc{end+1} = '-DENABLE_CUDNN' ;
6 C, |9 ?# a4 G& Q% A( ^5 Xflags.cc{end+1} = ['-I' opts.cudnnIncludeDir] ;
, F+ W2 t' v) _( Rend
* b, `, _# |4 w. xThe third line is missing quotes, so change it to: if opts.enableCudnn,
% t u1 g$ [# ^ j2 u& o Xflags.cc{end+1} = '-DENABLE_CUDNN' ;! B$ ], h! W' |+ t/ w
flags.cc{end+1} = ['-I"' opts.cudnnIncludeDir '"'] ;
* O9 n/ q7 T. m3 ^% t1 B7 T/ Send1 R1 w1 _ n1 D4 S3 ]# f) W& k4 r
The 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. |