Hello! I’m trying to install the cuda cross compiler according to the instructions in 1. Introduction — cuda-installation-guide-linux 12.2 documentation
However, when executing the command sudo apt-get install cuda-cross-aarch64 , I have the following error:
I can’t answer, but this might be useful to whoever does answer: What do you see from:
apt search cuda-cudart-dev-12
(this will list all of the major version 12 variants, and it might state one is already installed; if another one is already installed, then that might mean you already have some requirement, but at the wrong minor release)
linuxdev:
12
Thank you for the reply. Nothing has returned.
Hi,
Have you applied the step1~3?
Especially the dpkg and apt update command?
sudo dpkg -i cuda-repo-cross-<identifier>_all.deb
sudo apt-get update
Thanks.
Hello,
Yes, I have applied those steps.
Hi,
It looks like the cross-compiler toolkit is installed but CUDA doesn’t.
Could you try to install the CUDA library?
We also have a cross-compiling container in the below link:
Thanks.
Hello,
I have installed the CUDA library using the instructions in CUDA Toolkit 12.2 Update 2 Downloads | NVIDIA Developer
The command I used to install the toolkit was:
sudo sh cuda_12.2.2_535.104.05_linux.run --silent --toolkit
This installation has worked since I can see the lib in /usr/local/cuda-12.2
The error with the cross-compiler persists.
Hi,
After the installation, could you try to search the dependency again?
apt search cuda-cudart-dev-12-2
Thanks.
Hello!
Nothing has returned.
Those are the steps I performed in a clean Ubuntu22 Virtual Machine:
wget https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_535.104.05_linux.run
sudo sh cuda_12.2.2_535.104.05_linux.run --silent --toolkit
wget https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda-repo-cross-aarch64-ubuntu2004-12-2-local_12.2.2-1_all.deb
sudo dpkg -i cuda-repo-cross-aarch64-ubuntu2004-12-2-local_12.2.2-1_all.deb
sudo cp /var/cuda-repo-cross-aarch64-ubuntu2004-12-2-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda-cross-aarch64
I can see the CUDA Toolkit in /usr/local/cuda-12.2 .
The command apt search cuda-cudart-dev-12-2 returned nothing.
Hi,
Could you try the instructions in the below link instead:
And please run sudo apt-get -y install cuda-dev
as well.
Thanks.
Hello!
The command sudo apt-get -y install cuda returned the following error:
Hi,
Do you have an NVIDIA GPU on the x86 machine?
CUDA library requires a GPU driver to work so you will need to have a dGPU card.
If you don’t have the desktop GPU, an alternative is to use our cross-compiling container.
The image already has all the required pre-installed.
Thanks.