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.
Hello!
I don’t have a GPU in my x86 machine.
Unfortunately, the container isn’t an option in my project.
Is there any reason why I should have a dGPU card to cross-compile CUDA projects? Is this issue related to the 12.2 version or any newer version will have the same issue?
Thanks for the reply!
Hi,
Please try our container if there is not GPU on your host environment.
Since you will need a CUDA library to cross-compile a CUDA app locally.
CUDA library need GPU driver to work so it will check the dependency when installing.
Thanks.
system
Closed
March 12, 2025, 3:00am
18
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.