If dpkg -print-architecture | grep -q arm64 then Grep -q 'export PATH=.*/usr/local/cuda-$2/bin' ~/.bashrc || echo 'export PATH=/usr/local/cuda-'$2'/bin:$PATH" data-type="undefined" target="_blank">~/.bashrc Sudo apt-get -y -allow-downgrades install cuda-toolkit-$3 libgomp1 libfreeimage-dev libopenmpi-dev openmpi-bin Sudo sed -i.bak 's/\(^deb.*main restricted universe\)\s*$/\1 multiverse/g' /etc/apt/sources.list
Sudo sed -i.bak 's/\(^deb.*main restricted\)\s*$/\1 universe multiverse/g' /etc/apt/sources.list
Sudo apt-key add /var/cuda-repo-$3-local/*.pub While sudo fuser /var/lib/dpkg/lock > /dev/null 2>&1 doĮcho 'Waiting for other apt-get command to finish' cuda-l4t.sh cuda-repo-l4t-9-0-local_9.0.252-1_b 9.0 9-0Įcho 'Incorrect arguments, use following command to install cuda'