Skip to content
Back to skills

Sionna Rt Install

ASecurity

Use for installing, verifying, or troubleshooting standalone Sionna RT from PyPI or source on CPU LLVM or NVIDIA CUDA. Excludes PHY/SYS setup.

  • 4,297 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentspythongoshellgitapibackenddocumentation

Works with

  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 5 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add NVIDIA/skills --skill sionna-rt-install --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sionna Rt Install?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sionna Rt Install
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nvidia-sionna-rt-install/badge)](https://www.skillsdirectory.com/skills/nvidia-sionna-rt-install)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sionna-rt-install
description: Use for installing, verifying, or troubleshooting standalone Sionna RT from PyPI or source on CPU LLVM or NVIDIA CUDA. Excludes PHY/SYS setup.
metadata:
  author: "The Sionna Team <sionna@nvidia.com>"
  coauthors: "OpenAI Codex / ChatGPT"
  tags: [sionna-rt, python, installation, ray-tracing]
---

# Install Sionna RT

Set up the standalone `sionna-rt` distribution and verify ray tracing on the requested target. Its import is `sionna.rt`. Installing RT does not require the full `sionna` distribution or a machine learning framework; add framework interoperability packages only when requested.

## Resolve the target

Use explicit user choices first, then project metadata, lockfiles, and the detected environment. Surface conflicts before changing the environment.

- Resolve CPU (LLVM) or NVIDIA GPU (CUDA) before selecting backend commands. For a bare “install Sionna RT” request, ask which backend is needed, offering NVIDIA GPU (CUDA) as the default. The component is already RT; do not ask the user to choose PHY/SYS components.
- Default to the current PyPI release and an isolated environment for a fresh setup. Preserve a project's version pins, requested source checkout, interpreter, and environment manager. Choose source when requested or declared as a local dependency.
- Include declared `doc`, `test`, or `dev` extras when the task calls for them. If “development setup” is ambiguous, ask which activities are needed. Bundle unresolved questions that affect the installation.
- For a remote host or container, inspect that target. If shell access is unavailable, provide commands for the user to run there. Honor requests for commands or plans without executing them.

## Prerequisites

Check the candidate interpreter, OS, and architecture:

```sh
python -c 'import platform, sys; print(sys.executable); print(sys.version); print(platform.system(), platform.machine()); print(sys.prefix, sys.base_prefix)'
```

Read `Requires-Python` and dependencies from the selected release's package metadata or checkout's `pyproject.toml`. Honor the declared Python requirement and coupled Mitsuba/Dr.Jit pins rather than upgrading Mitsuba or Dr.Jit independently. Check wheel availability for the selected Python and platform. Let the package manager resolve ordinary Python dependencies.

Check requirements of selected extras too. For `doc`, read the checkout's Sphinx constraint and the matching package's `Requires-Python` metadata before choosing an interpreter; documentation tooling can require a newer Python than RT itself.

Before fetching packages, check access to the configured index or mirror. For offline installation, confirm that the local package source includes the selected distribution and dependencies. For source installation, inspect `git --version`, the checkout revision, its README, and packaging metadata. This repository is the standalone RT package: install its root directly; no parent Sionna checkout or RT submodule initialization is needed.

For CUDA, run `nvidia-smi` on the target to check GPU visibility and driver compatibility with the selected Dr.Jit release. In a container, check the host driver and GPU passthrough if the GPU is hidden. Dr.Jit provides the RT backend; `torch.cuda.is_available()` or TensorFlow GPU detection does not verify it. Consult the selected release's [Dr.Jit backend requirements](https://drjit.readthedocs.io/en/latest/what.html#backends) rather than assuming a CUDA toolkit or framework installation is necessary.

### System dependencies

Check inside the target environment. On Linux, use `/etc/os-release` to choose distribution packages and install only missing prerequisites. For a managed image, use its image build or ask its owner when the running target cannot be modified.

Before running `sudo`, obtain explicit confirmation for the exact command and target unless both are already authorized. Otherwise provide the exact administrator command, continue independent steps, and report the blocked dependency. Recheck it before resuming.

- **CPU ray tracing:** Dr.Jit needs a compatible LLVM shared library. Check requirements for the installed Dr.Jit release. On Debian/Ubuntu, discover available runtime packages with `apt-cache search '^libllvm[0-9]+'`, select a compatible package as `LLVM_PACKAGE`, and use `sudo apt-get install "$LLVM_PACKAGE"` under the confirmation rule above. On macOS with Homebrew, use `brew install llvm` or a compatible versioned formula. If discovery still fails, locate the actual shared library (on macOS, under the installed formula's `brew --prefix`) and set `DRJIT_LIBLLVM_PATH` to that file's absolute path before starting Python. Do not set it to a directory or assume a versioned filename. [LLVM discovery guidance](https://github.com/mitsuba-renderer/mitsuba3/discussions/804)
- **Linux runtime:** If the selected Dr.Jit build reports missing `libatomic`, install the distribution's runtime package, such as `libatomic1` on Debian/Ubuntu. [Dr.Jit requirements](https://drjit.readthedocs.io/en/latest/what.html)
- **Documentation:** Check `pandoc --version` and GNU Make with `make --version` or `gmake --version`. On Debian/Ubuntu use `sudo apt-get install pandoc make`, omitting tools already installed and following the confirmation rule. On macOS use `brew install pandoc`, plus `brew install make` if GNU Make is missing (then use `gmake`). The Python extra supplies Sphinx and its extensions.
- **Tests:** The `test` extra supplies pytest. CPU tests also need LLVM; CUDA tests need the target GPU backend.

## Instructions

Reuse a compatible project environment or an explicitly selected interpreter. Follow the project's manager when governed by `uv.lock`, `poetry.lock`, or a documented pip-tools workflow; do not bypass its lockfile with ad hoc pip changes. A plain requirements file can use pip when the project documents that workflow.

If no suitable environment exists and no system or container interpreter was explicitly requested, create a venv with the compatible interpreter selected above. Choose another path if `.venv` exists and is unsuitable. POSIX example:

```sh
python -m venv .venv
SIONNA_RT_PYTHON="$PWD/.venv/bin/python"
"$SIONNA_RT_PYTHON" -m pip --version
```

For an existing environment, set `SIONNA_RT_PYTHON` to its absolute Python path. Use that executable throughout; substitute the literal path when commands run in separate shells. For an externally managed interpreter, explain supported environment choices before switching targets.

| Source | Initial install command |
| --- | --- |
| PyPI | `"$SIONNA_RT_PYTHON" -m pip install sionna-rt` |
| Pinned PyPI release | `"$SIONNA_RT_PYTHON" -m pip install 'sionna-rt==VERSION'` |
| Source checkout, from its root | `"$SIONNA_RT_PYTHON" -m pip install .` |
| Source with docs and tests | `"$SIONNA_RT_PYTHON" -m pip install '.[doc,test]'` |

Replace `VERSION` with the resolved version. For other extras, use the declared combination, such as `'.[dev,test]'`. Use `-e` for an explicitly requested editable source setup. For PyPI extras, confirm the release declares them and use a requirement such as `'sionna-rt[doc,test]==VERSION'`. When adding extras to an existing installation, preserve its version and source unless a change was requested. Use the project manager's equivalent when applicable.

### Existing Sionna installations

Inspect installed distributions and their file lists with `"$SIONNA_RT_PYTHON" -m pip show -f sionna sionna-no-rt sionna-rt` before a requested replacement: distributions can share the `sionna` namespace. Prefer a fresh environment for switching distributions. Do not remove full Sionna merely to add RT; it may already depend on RT. For an authorized switch in place, inspect dependents and ensure replacement packages are available before uninstalling. Restore any retained distribution whose files were removed, using its original version and source, then install the requested replacement last. Surface conflicts before modifying the environment.

If an install fails, capture the error and retry once after a concrete fix, such as correcting an erroneous requirement, selecting a compatible interpreter, restoring index access, or adding a missing dependency. Preserve the requested version and source unless the user approves changing them. Stop that install path if no actionable fix exists or the retry fails.

## Verify

Use the installation interpreter:

```sh
"$SIONNA_RT_PYTHON" -m pip check
"$SIONNA_RT_PYTHON" -m pip show sionna-rt mitsuba drjit
```

Use the manager's equivalents when appropriate. Compare versions with the selected RT release's requirements. Then check the requested backend with Dr.Jit's API where available; use `CUDA` for the default NVIDIA GPU setup or `LLVM` for an explicitly selected CPU setup:

```sh
"$SIONNA_RT_PYTHON" -c 'import drjit as dr; print(dr.__version__); raise SystemExit(0 if dr.has_backend(dr.JitBackend.CUDA) else 1)'
```

An import alone does not verify ray tracing. Run this empty-scene line-of-sight solve with `cuda_ad_mono_polarized` for the default CUDA setup or replace the argument with `llvm_ad_mono_polarized` for CPU. Explicitly selecting one variant prevents a silent fallback to another backend. Check the selected release's documentation and adapt the variant or solver API if needed.

```sh
"$SIONNA_RT_PYTHON" - cuda_ad_mono_polarized <<'PY'
import sys

import mitsuba as mi
import numpy as np

mi.set_variant(sys.argv[1])
from sionna.rt import PathSolver, PlanarArray, Receiver, Transmitter, load_scene

scene = load_scene()
scene.tx_array = scene.rx_array = PlanarArray(
    num_rows=1, num_cols=1, pattern="iso", polarization="V"
)
scene.add(Transmitter(name="tx", position=(0, 0, 0)))
scene.add(Receiver(name="rx", position=(1, 0, 0)))
paths = PathSolver()(scene, max_depth=0)
if not np.asarray(paths.valid).any():
    raise SystemExit("No valid line-of-sight path")
print(f"Computed a valid line-of-sight path with {mi.variant()}")
PY
```

For requested documentation builds, use the matching source checkout, check `"$SIONNA_RT_PYTHON" -m sphinx --version`, and run `PATH="${SIONNA_RT_PYTHON%/*}:$PATH" make -C doc html` from the repository root (`gmake` if needed). This selects that environment's Sphinx executable. For other managers, use their environment runner.

For requested tests, check `"$SIONNA_RT_PYTHON" -m pytest --version` and follow the checkout's instructions. For this checkout, run from `test/`: `"$SIONNA_RT_PYTHON" -m pytest --cpu` for CPU, or `"$SIONNA_RT_PYTHON" -m pytest` for GPU preference. The default test configuration can fall back to another backend, so retain the explicit CUDA smoke test when CUDA is required.

Report distribution versions, interpreter path, selected backend, and checks that passed or the exact blocker. Retry failed verification only after a concrete fix, with one shared budget of three retries across all checks. Stop when no actionable fix exists or the budget is exhausted. Wheel installation can succeed while the requested backend remains unavailable; report that as incomplete setup.

## Examples

- “Install Sionna RT for an NVIDIA GPU on Ubuntu in a fresh virtual environment.”
- “Set up this RT checkout with documentation and test extras.”
- “Dr.Jit cannot find libLLVM on Apple Silicon; give me recovery commands.”
- “Verify that my remote Sionna RT installation actually solves paths on CUDA.”

Files in this skill

  • BENCHMARK.md10.2 KB
  • SKILL.md11.2 KB
  • evals/evals.json5.8 KB
  • skill-card.md7 KB
  • skill.oms.sig4.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.