Cuda setup on ubuntu 18.04

  1. I tried installing 11.1 from https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=deblocal, however after installation I am getting only stub library, I was hoping to get the real library from this installation. How do I get it?

  2. I am running with RTX 2070 cuda code with 10.2 library. With this cuda runtime give me an error “No capable cuda device found”. I had the same error on windows, but when I upgraded to 11.1 it worked fine. Why it fails to run with 10.2?