Bug#934666: nvidia-cuda-toolkit: include cuda runtime for arm64

Helmut Grohne helmut.grohne at intenta.de
Tue Aug 13 08:04:53 BST 2019


Package: nvidia-cuda-toolkit
Version: 10.1.105-2
Severity: wishlist

Hi Andreas,

thank you for packaging cuda. I tries using it for cross building from
amd64 to arm64. For doing so, you need a directory with compiler
symlinks:

mkdir crossdir
cd crossdir
ln -s /usr/bin/aarch64-linux-gnu-gcc gcc
ln -s /usr/bin/aarch64-linux-gnu-g++ g++

Then you can cross build a cuda application using nvcc --compiler-bindir
path/to/crossdir somefile.cu. Doing so results in the following error:

/usr/lib/gcc-cross/aarch64-linux-gnu/8/../../../../aarch64-linux-gnu/bin/ld: cannot find -lcudadevrt
/usr/lib/gcc-cross/aarch64-linux-gnu/8/../../../../aarch64-linux-gnu/bin/ld: cannot find -lcudart_static
collect2: error: ld returned 1 exit status

We can see that nvcc is correctly using our cross toolchain and that it
fails linking the cuda runtime. It seems that libcudart10.1 is not
packaged for architectures other than amd64 and ppc64el. While the cuda
toolkit is only available for these architectures, the cuda runtime
should be available for arm64 as well. Is it possible to package that?

Helmut



More information about the pkg-nvidia-devel mailing list