SOme problems with CUDA-10 and cudNN

Hello

I want to use my GPU for training Neural Network but I have meet some problems.

Cuda version is - 10.0, cudNN - 7.4.1

I think my problem is with cudNN as when I run command

sudo ldconfig -v | grep cudnn

I receive

/sbin/ldconfig.real: Path `/opt/rocm/lib' given more than once
/sbin/ldconfig.real: Path `/opt/rocm/lib' given more than once
/sbin/ldconfig.real: Path `/opt/rocm/hsa/lib' given more than once
/sbin/ldconfig.real: Can't stat /usr/local/lib/i386-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/local/lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/opt/rocm/lib' given more than once
/sbin/ldconfig.real: Path `/usr/local/lib' given more than once
/sbin/ldconfig.real: Path `/opt/rocm/lib' given more than once
/sbin/ldconfig.real: Path `/opt/rocm/lib' given more than once
/sbin/ldconfig.real: Path `/opt/rocm/lib' given more than once
/sbin/ldconfig.real: Path `/opt/rocm/lib' given more than once
/sbin/ldconfig.real: Path `/opt/rocm/lib' given more than once
/sbin/ldconfig.real: Can't stat /usr/local/lib/x86_64-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: /lib/i386-linux-gnu/ld-2.27.so is the dynamic linker, ignoring

	libcudnn.so.7 -> libcudnn.so.7.4.1
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.27.so is the dynamic linker, ignoring

/sbin/ldconfig.real: /lib32/ld-2.27.so is the dynamic linker, ignoring

Are any thoughts how to fix it?