Sionna Rt Install
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install skills-sionna-rt-installWhat this does: Use for installing, verifying, or troubleshooting standalone Sionna RT from PyPI or source on CPU LLVM or NVIDIA CUDA. Excludes PHY/SYS setup.
Manual setup by platform
Claude Code
~/.claude/skills/skills-sionna-rt-install/SKILL.md
Instructions
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, ordevextras 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:
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 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 asLLVM_PACKAGE, and usesudo apt-get install "$LLVM_PACKAGE"under the confirmation rule above. On macOS with Homebrew, usebrew install llvmor a compatible versioned formula. If discovery still fails, locate the actual shared library (on macOS, under the installed formula'sbrew --prefix) and setDRJIT_LIBLLVM_PATHto that file's absolute path before starting Python. Do not set it to a directory or assume a versioned filename. LLVM discovery guidance - Linux runtime: If the selected Dr.Jit build reports missing
libatomic, install the distribution's runtime package, such aslibatomic1on Debian/Ubuntu. Dr.Jit requirements - Documentation: Check
pandoc --versionand GNU Make withmake --versionorgmake --version. On Debian/Ubuntu usesudo apt-get install pandoc make, omitting tools already installed and following the confirmation rule. On macOS usebrew install pandoc, plusbrew install makeif GNU Make is missing (then usegmake). The Python extra supplies Sphinx and its extensions. - Tests: The
testextra 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:
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:
"$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:
"$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.
"$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.”
Security
Reviews (0)
Related skills
Browse all →More from skills
View source →More Build skills
Browse category →Frequently asked questions about sionna-rt-install
What does the sionna-rt-install skill do?
Use for installing, verifying, or troubleshooting standalone Sionna RT from PyPI or source on CPU LLVM or NVIDIA CUDA. Excludes PHY/SYS setup. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the sionna-rt-install skill?
Run `npx @skills-hub-ai/cli install skills-sionna-rt-install` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/skills-sionna-rt-install/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does sionna-rt-install work with?
sionna-rt-install runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the sionna-rt-install skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use sionna-rt-install after installing it?
In Claude Code, type `/skills-sionna-rt-install` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the sionna-rt-install skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.
Badge for your README
Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.
[](https://skills-hub.ai/skills/skills-sionna-rt-install)<a href="https://skills-hub.ai/skills/skills-sionna-rt-install"><img src="https://skills-hub.ai/api/badges/skill/skills-sionna-rt-install" alt="Install on Skills Hub"></a>More options in the badge docs.