2

I am new to Linux and trying to install cuDNN on my Ubuntu computer. The installation instructions contain the following:

"Add (installpath) to your build and link process by adding -I(installpath) to your compile line and -L(installpath) -lcudnn to your link line."

How do I add paths to my compile and link lines? I'm guessing there are other terms for these because my search results haven't turned up anything that addressed both paths.

7
  • This question may help you out: askubuntu.com/q/386315/57576
    – andrew.46
    Apr 17, 2016 at 4:08
  • Thanks! So it looks like it's export CPPFLAGS=-I/my/dir/ and export LDFLAGS=-L/my/dir -lcudnn. The first one works but the second tells me that -lcudnn is not a valid identifier
    – jss367
    Apr 17, 2016 at 5:00
  • Do you have a link to the installation archive / file and instructions? And perhaps try CPPFLAGS='-I/home/foo/sw/include' LDFLAGS='-L/home/foo/sw/lib/' LIBS='-lcudnn' ./configure
    – andrew.46
    Apr 17, 2016 at 5:12
  • I've give that a try. Here are the instructions: developer.download.nvidia.com/compute/machine-learning/cudnn/…
    – jss367
    Apr 17, 2016 at 5:21
  • At fist it gave me "No such file or directory", but after I removed './configure' it seemed to work. Thanks!
    – jss367
    Apr 17, 2016 at 5:24

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.