Testing CuDNN 7.6.5 Install on Ubuntu 18.04

I am trying to test my installation of CuDNN 7.6.5 on Ubuntu 18.04. I installed CUDA 10.2 and ran through the tests for that without issue. When I try to run the MNIST example to test my CuDNN install, I get these errors:

cat: /usr/local/cuda/include/cuda.h: no such file or directory/bin/sh: 1: /usr/local/cuda/bin/nvcc: not found

Running which nvcc returns /usr/local/cuda-10.2/bin/nvcc and my cuda.h file is in /usr/local/cuda-10.2/include/cuda.h

This is what echo $PATH returns: /usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda-10.2/bin:/usr/local/cuda-10.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

I have a feeling it can't find cuda.h or nvcc because they are in cuda-10.2 directories and it is searching in cuda directories, but I can't figure out how to fix that. I'm pretty new to Ubuntu/CUDA/etc.

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like