Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: compiling caffe: cannot find lcudnn

K.Wanter:

recently came across a problem when Compiling Caffe on a server, prompts /usr/bin/ld: cannot find -lcudnn since I don't have root priviledge, I installed CUDA-8.0 in my HOME directory, then download the libcudnn7-dev and manually do dpkg-deb -xv libcudnn-dev*.deb to extract the deb pkg, then I go to the lib directory, then run ar -x libcudnn*.a and gcc -shared *.o -o libcudnn.so, then copy the generated libcudnn.so to ~/cuda/lib64, then add the ~/cuda/lib64 to the LD_LIBRARY_PATH, but the error prompts, I don't know how to fix this, can someone help?

And I don't understand why it is /usr/bin/ld: cannot find -lcudnn, not something like LD_LIBRARY_PATH/=: cannot find -lcudnn

EDIT: I downloaded the .tgz file and follow the install guide instructions to install cudnn, but it still prompts the error, my ~/.bashrc is configured:

export CUDA_HOME="~/cuda" export PATH="/home/wangtao/anaconda2/bin:$CUDA_HOME/bin:$PATH" export LD_LIBRARY_PATH="$CUDA_HOME/lib64:$LD_LIBRARY_PATH"

I find the /etc/ld.so.conf is like this :

include /etc/ld.so.conf.d/*.conf /usr/local/cuda-7.0/lib64 it is not my wanted path of ~/cuda/lib64, but don't know how to modify it since I don't have root priviledge on the server, I have compiled successfully on local machines, but this seems to be hard



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: compiling caffe: cannot find lcudnn

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×