1. # cat /etc/ld.so.conf.d/cuda-10-1.conf
  2. /usr/local/cuda-10.1/targets/x86_64-linux/lib

Create a file for cuda configure the Dynamic Linker to search there..

In my case its:

/usr/local/cuda-10.1/targets/x86_64-linux/lib