For cross-compilation purpose.
We use Ubuntu 16.04
.
echo "deb [ trusted=yes ] http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/cuda.list
apt update
apt install nvidia-cuda-toolkit
cuda toolkit installation on machine without GPU
原文:https://www.cnblogs.com/zhaofeng-shu33/p/11988021.html