NVCC CUDA cross compiling cannot find “-lcudart”

£可爱£侵袭症+ 提交于 2019-12-04 19:17:17

CUDA 5.5 was the first CUDA release to support ARM v7. The CUDA 5.0 toolkit you installed does not have support, which is why it can't find the right version of the CUDA runtime library.

It turns out that the CUDA installer I was using from NVIDIA will not allow me to cross compile for my CARMA board, but it has to be downloaded from the manufacturer SECO.

May be, it's a problem with Cuda Toolkits. The first the Cuda Toolkit 5.0 doesn't support Arm. The second the Cuda Toolkit 6.5 cross compile lost libcudart.so. I solved this problem is copying libcudart.so from the Cuda Toolkit 6.5 by Arm.

add /etc/ld.so.conf this:

/usr/local/cuda-5.0/lib /usr/local/cuda-5.0/lib64

and run command: ldconfig your compile will find cudart lib

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!