Installing cudart (and more) in Yocto.

I’ve created a rootfs for Jetson using Yocto, using the recipes from https://github.com/kraj/meta-jetson-tk1. This layer has a recipe that gives me libcuda.so, but I’m missing libcudart.so and possibly other libs/headers.

Are more cuda stuff available for download somewhere? I installed the JetPack, and inside I found debs for what I need, e.g. cuda-cudart-6-5_6.5-50_armhf.deb and cuda-cudart-dev-6-5_6.5-50_armhf.deb.

I should be able to work with these to add what I need to my image, but

  1. Am I allowed to do so?
  2. Can I get these files in a format that fits better, a source/binary package?

Gave this a go today, but did not make it work. The “NVIDIA Cuda Getting Started Guide for Linux” has instructions for misc distros, but none for installing/running on a system such as Yocto/Angstrom. Have anyone done this successfully, or can anyone tell me what components are needed?

What do I need to have in place on my embedded system besides a working kernel and libcuda.so to make this work?

Figured this out. The problem was that the ldconfig was not setup correctly.

deviceQuery gave the following output before:

./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL

Fixed it with these commands:

Result = FAIL

echo "include /etc/ld.so.conf.d/nvidia-tegra.conf" > /etc/ld.so.conf
echo "/usr/lib/arm-linux-gnueabihf/tegra" > /etc/ld.so.conf.d/nvidia-tegra.conf
ldconfig

Now deviceQuery works.