Loading...
Loading...
Install Holoscan SDK v4.3+ via Conda in a CUDA 13 environment. Use for Conda installs; redirect CUDA 12 hosts to container/wheel.
npx skill4agent add nvidia/skills holoscan-install-condanvidia-smicondadocs.nvidia.com/holoscan-install-container/holoscan-install-wheelulimit -s 32768https://docs.nvidia.com/holoscan/sdk-user-guide/sdk_installation.htmlholoscanlibholoscan-devfind_package(holoscan)#includecuda-version13rmmucxxrapidsaiholoscanlibholoscanlibholoscan-devconda-forgeconda --version 2>&1
nvidia-smi 2>&1 | head -5condawget -q https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O /tmp/Miniforge3.sh
bash /tmp/Miniforge3.sh -b -p ~/miniforge3
source ~/miniforge3/etc/profile.d/conda.sh
conda --version-b.bashrcsource ~/miniforge3/etc/profile.d/conda.shcondalibholoscanlibholoscan_core.soholoscanlibholoscan-devlibholoscan_core.soholoscan-config.cmakefind_package(holoscan)rmmholoscanimport holoscanucxxcuda-version=13source ~/miniforge3/etc/profile.d/conda.sh # if conda not yet on PATH
conda create -n holoscan python=3.13 -y
conda activate holoscanholoscanlibholoscan-devconda install <packages> rmm ucxx cuda-version=13 -c rapidsai -c conda-forge -yconda install -c conda-forge cxx-compiler cmake ninja -ypython3 -c "import holoscan; print(holoscan.__version__)"ls "$CONDA_PREFIX/include/holoscan"ulimit -s 32768video_replayercount: 10repeat: falserealtime: falseheadless: true$DISPLAYsource ~/miniforge3/etc/profile.d/conda.sh
conda activate holoscan
ulimit -s 32768
SDK_VER=$(python3 -c "import holoscan; print(holoscan.__version__)")
BASE="https://raw.githubusercontent.com/nvidia-holoscan/holoscan-sdk/v${SDK_VER}/examples"
curl -fsSL "${BASE}/hello_world/python/hello_world.py" -o /tmp/hs_hello_world.py
curl -fsSL "${BASE}/video_replayer/python/video_replayer.py" -o /tmp/hs_video_replayer.py
curl -fsSL "${BASE}/video_replayer/python/video_replayer.yaml" -o /tmp/video_replayer.yaml
# Patch video_replayer.yaml — 10 frames, headless.
python3 -c "
c = open('/tmp/video_replayer.yaml').read()
c = c.replace('count: 0', 'count: 10')
c = c.replace('repeat: true', 'repeat: false')
c = c.replace('realtime: true', 'realtime: false')
c = c.replace(' width: 854', ' headless: true\n width: 854')
open('/tmp/video_replayer.yaml', 'w').write(c)"
# hello_world — no display, no data needed; expected: "Hello World!"
python3 /tmp/hs_hello_world.py
# video_replayer — needs racerx data; expected: frames rendered, "Graph execution finished."
HOLOSCAN_INPUT_PATH=/path/to/holoscan/data python3 /tmp/hs_video_replayer.pyHOLOSCAN_INPUT_PATHracerx/~/repos/holoscan-sdk/datadownload_ngc_datasource ~/miniforge3/etc/profile.d/conda.sh # if Miniforge was installed with -b
conda activate holoscan
ulimit -s 32768 # recommended — prevents segfaults in some apps~/.bashrc~/.zshrchttps://github.com/nvidia-holoscan/holoscan-sdk/tree/v<VERSION>/examples/explain-exampleImportError: librmm.so: cannot open shared object filermmconda installrmmholoscanholoscan-c rapidsai -c conda-forgeholoscanulimit -s 32768find_package(holoscan)libholoscan-devconda: command not found-b.bashrcsource ~/miniforge3/etc/profile.d/conda.sh