Loading...
Loading...
Install Holoscan SDK natively on Ubuntu via apt. Use for C++ installs on Ubuntu; pair with /holoscan-install-wheel for Python.
npx skill4agent add nvidia/skills holoscan-install-debianholoscan-cuda-*nvidia-smisudodeveloper.download.nvidia.comdocs.nvidia.comcuda-keyring/holoscan-install-wheelholoscan-cuda-12holoscan-cuda-13https://docs.nvidia.com/holoscan/sdk-user-guide/sdk_installation.htmlholoscan-cuda-12holoscan-cuda-13holoscanlsb_release -a 2>/dev/null || cat /etc/os-release
nvidia-smi 2>&1 | head -5| nvidia-smi CUDA Version | Package |
|---|---|
| 13.x+ | |
| 12.x (on IGX) | |
| 12.x (not on IGX) | |
| 12.x (nvgpu) | |
dpkg -l | grep cuda-keyring
dpkg -l | grep -E "holoscan-cuda-(12|13)|^ii holoscan "
apt-cache show holoscan-cuda-13 holoscan-cuda-12 2>/dev/null | grep -E "^(Package|Version)"cuda-keyringapt-get updateapt-cache showholoscan-cuda-12# If cuda-keyring missing (adjust ubuntu2204/ubuntu2404 as needed) and not on IGX platform:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb && sudo apt-get update
sudo apt-get install -y holoscan-cuda-12 # or holoscan-cuda-13HS=/opt/nvidia/holoscan
export LD_LIBRARY_PATH=$HS/lib
export HOLOSCAN_INPUT_PATH=$HS/data
ulimit -s 32768
ls $HS/examples/{hello_world,tensor_interop,video_replayer}/
# hello_world — expected: "Hello World!"
$HS/examples/hello_world/cpp/hello_world
# tensor_interop — expected: tensors doubling each pass, "Graph execution finished."
# If "CUDA driver version is insufficient": swap package variant:
# sudo apt-get remove -y holoscan-cuda-13 && sudo apt-get install -y holoscan-cuda-12
$HS/examples/tensor_interop/cpp/tensor_interop
# video_replayer (10 frames, headless) — expected: Vulkan selects NVIDIA GPU, "Graph execution finished."
# Always run headless: works with or without a display, avoids GUI failure modes over SSH.
ls $HS/data/racerx 2>/dev/null || sudo $HS/examples/download_example_data
python3 -c "
c=open('$HS/examples/video_replayer/cpp/video_replayer.yaml').read()
c=c.replace('count: 0','count: 10').replace('repeat: true','repeat: false').replace('realtime: true','realtime: false')
c=c.replace(' width: 854',' headless: true\n width: 854')
open('/tmp/vr.yaml','w').write(c)"
$HS/examples/video_replayer/cpp/video_replayer --config /tmp/vr.yaml~/.bashrcexport LD_LIBRARY_PATH=/opt/nvidia/holoscan/lib:${LD_LIBRARY_PATH}
export HOLOSCAN_INPUT_PATH=/opt/nvidia/holoscan/data
ulimit -s 32768/holoscan-install-wheells /opt/nvidia/holoscan/examples//explain-examplepython3 -c "import holoscan"/holoscan-install-wheelnvidia-smisudo apt-get remove -y holoscan-cuda-13 && sudo apt-get install -y holoscan-cuda-12E: Unable to locate package holoscan-cuda-12cuda-keyringapt-get updateubuntu2204ubuntu2404ulimit -s 32768error while loading shared libraries: libholoscan_core.soLD_LIBRARY_PATHexport LD_LIBRARY_PATH=/opt/nvidia/holoscan/libvideo_replayerHOLOSCAN_INPUT_PATH=/opt/nvidia/holoscan/datasudo /opt/nvidia/holoscan/examples/download_example_dataracerx