caffe icon indicating copy to clipboard operation
caffe copied to clipboard

how to use cudnn

Open wzq12138 opened this issue 11 years ago • 5 comments

I know make caffe with cudnn is

cuDNN acceleration switch (uncomment to build with cuDNN).

USE_CUDNN := 1

I want to ask how to change it to cudnn mode ,as I know gpu and cpu is like that: caffe.set_mode_gpu() and caffe.set_mode_cpu()

what the command is when I want to use cudnn.

wzq12138 avatar Mar 04 '15 08:03 wzq12138

It is used by default, so no command.

ducha-aiki avatar Mar 04 '15 09:03 ducha-aiki

@ducha-aiki thanks for the answer. anther question ,how can I see the time change,I want to do the experiment to know the time,in the web, http://devblogs.nvidia.com/parallelforall/deep-learning-computer-vision-caffe-cudnn/ it said

Caffe   Caffe + cuDNN   Speedup

Training 1325 ms 960 ms 1.38 Testing 100 ms 66.7 ms 1.50

can you tell me how to know the time,is there any comand?

wzq12138 avatar Mar 04 '15 09:03 wzq12138

What I'd do is: uninstall cuDNN, train something, measure the time. Then install cuDNN, train the same thing and measure the time. Compare. There're timestamps in the log files, or you can use http://manpages.ubuntu.com/manpages/maverick/man1/time.1.html

lugiavn avatar Mar 10 '15 17:03 lugiavn

@lugiavn How to uninstall cuDNN?

zxzhijia avatar Jun 23 '16 00:06 zxzhijia

@zxzhijia You can just remove the include and libs files. It worked for me.

ronalddas avatar Dec 09 '16 14:12 ronalddas