CUDA

less than 1 minute read

Published:

Exploring CUDA programming

CUDA and Jetson Nano, and Jetson Xavier and Titan

https://github.com/dusty-nv/jetson-inference

lspci -nn | egrep “VGA|Display” dmesg | grep -i agp glxinfo xrandr –listproviders hwinfo –gfxcard inxi -Gx lshw -C video

export LD_LIBRARY_PATH=/usr/local/cuda-11.1/targets/x86_64-linux/lib/ set LD_LIBRARY_PATH

https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=sbsa&compilation=compilation_native&target_distro=Ubuntu&target_version=1804&target_type=deblocal

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/sbsa/cuda-ubuntu1804.pin sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600 wget https://developer.download.nvidia.com/compute/cuda/11.2.0/local_installers/cuda-repo-ubuntu1804-11-2-local_11.2.0-460.27.04-1_arm64.deb sudo dpkg -i cuda-repo-ubuntu1804-11-2-local_11.2.0-460.27.04-1_arm64.deb sudo apt-key add /var/cuda-repo-ubuntu1804-11-2-local/7fa2af80.pub sudo apt-get update sudo apt-get -y install cuda

https://elinux.org/Jetson/Installing_CUDA

https://cuda-tutorial.readthedocs.io/en/latest/tutorials/tutorial01/

Install drivers

https://medium.com/@sreenithyc21/nvidia-driver-installation-for-ubuntu-18-04-2020-2918be830d0f

Check hardware for video card sudo lshw -C display

Find the drivers sudo apt list nvidia-driver-*

sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update sudo apt install -y nvidia-driver-450

Check the video card sudo nvidia-smi

https://on-demand.gputechconf.com/gtc/2013/webinar/opencv-gtc-express-shalini-gupta.pdf