网上教程很多
cd matconvnet/
addpath matlab/
vl_compilenn('enableGpu',true,'cudaRoot','/usr/local/cuda','cudaMethod','nvcc','enableCudnn',true,'cudnnRoot','local/cudnn5')
http://blog.sina.com.cn/s/blog_7e3f6e8f0100veib.html