Cudnn unknown in using caffe-gpu package

Asked by Zhou Xin

Hi all,

I'm on ubuntu17.04 and I installed caffe-cuda.

This package simplifies the installation of caffe, which is cool!

But when I start to use caffe, I received "unknown engine" error message.

F0816 16:03:41.772136 15446 layer_factory.cpp:69] Layer conv0 has unknown engine.
*** Check failure stack trace: ***
    @ 0x7ff4d11585ad google::LogMessage::Fail()
    @ 0x7ff4d115a413 google::LogMessage::SendToLog()
    @ 0x7ff4d115813b google::LogMessage::Flush()
    @ 0x7ff4d115adfe google::LogMessageFatal::~LogMessageFatal()
    @ 0x7ff4d16981b1 caffe::GetConvolutionLayer<>()
    @ 0x7ff4d1707daf caffe::LayerRegistry<>::CreateLayer()
    @ 0x7ff4d1724655 caffe::Net<>::Init()
    @ 0x7ff4d17239de caffe::Net<>::Net()
    @ 0x7ff4d173d68f caffe::Solver<>::InitTrainNet()
    @ 0x7ff4d173ccc6 caffe::Solver<>::Init()
    @ 0x7ff4d173c949 caffe::Solver<>::Solver()
    @ 0x7ff4d1747913 caffe::SGDSolver<>::SGDSolver()
    @ 0x7ff4d174cadf caffe::Creator_AdamSolver<>()
    @ 0x556fd90de00a caffe::SolverRegistry<>::CreateSolver()
    @ 0x556fd90dae4b train()
    @ 0x556fd90dd8a9 main
    @ 0x7ff4cf6503f1 __libc_start_main
    @ 0x556fd90d99da _start
    @ (nil) (unknown)

If I turn off the switch "engine: CUDNN" in prototxt file, caffe works perfectly.....
I mean, it still use cuda, just not cudnn libraries....

Then I checked the CUDNN installation. (the existence of libcudnn files and cudnn.h)
They are well placed in /usr/local/include and /usr/local/lib, which can not be missed anyway.

Now as caffe is installed with apt, I have little knowledge about the links and configurations.
I cannot even find the Makefile.config......

So why is cudnn not found?? How can I configure the caffe installed by apt system??

Best regards, Xin

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu caffe-contrib Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#1

Please read this:

https://github.com/bqlabs/flownet/issues/1

and this:

https://github.com/BVLC/caffe/issues/2682

Error should be solved by either " changing "engine: CUDNN" to "engine: CAFFE" in prototxt files" or by "upgrading cuDNN to the latest version".....

Revision history for this message
Zhou Xin (pyramide) said :
#2

Hi, Mark

Sorry, this did not solve my problem.

In my question I have already noted that using "engine: CAFFE" will not have any problem.
But without using CUDNN, the performance of caffe-cuda is very low.
So the real question is what does this message "unknown engine" mean?
Does it mean that caffe cannot find libcudnn?

And I confirm that the second solution "upgrading cuDNN to the latest version" did not solve the problem.
Through a test by cmake I can confirm that the cuDNN library can be found by cmake.
But obviously not by caffe-cuda.

One problem is that this caffe-cuda is a compiled version.
With with version of cudnn lib that caffe-cuda is compiled??
And what are the path for these cudnn lib??

If I know these information, maybe I can put the lib in the same place and run the program again.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.