Running CUDA samples with apt install

Days are gone when installing CUDA driver was a hazzle. We can now simply install it with apt install. And for cuda toolkit, one can simply install by apt install nvidia-cuda-toolkit However, apt install does not install samples. We can install from run file explicitly. wget http://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.243_418.87.00_linux.run sudo sh cuda_10.1.243_418.87.00_linux.run # do not install driver…