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,
5 k: @- n; Z/ p G G9 d+ Bflags.cc{end+1} = '-DENABLE_CUDNN' ;, E, X9 K. I: n6 `% l( f
flags.cc{end+1} = ['-I' opts.cudnnIncludeDir] ;. t6 |' a6 ?7 l0 i
end
3 I0 C: i0 l6 ~( a" [The third line is missing quotes, so change it to: if opts.enableCudnn,1 A: O$ ?9 T! G' Q) x
flags.cc{end+1} = '-DENABLE_CUDNN' ;9 C, F5 d& U6 D+ |- P# d' ~7 O {
flags.cc{end+1} = ['-I"' opts.cudnnIncludeDir '"'] ;
* N" F& z0 p# L9 X! s+ z2 Gend" o: H6 \; u. |, p0 q2 B
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. |