In this article
The command name alone does not identify the frontend: a Python plugin requires a Python-capable execution path and registration.
Diagnose the frontend before the GPU
A scene that renders in a notebook can fail on a headless worker because its custom material or integrator is unknown. This failure may happen before meaningful GPU execution. Check how the worker starts Mitsuba and which extension code it imports. Increasing device memory or changing the scene’s sample budget does not register a Python plugin that the chosen frontend never loads.
Distinguish the available entrypoints
The compilation guide distinguishes the compiled executable from the Python frontend. It states that the compiled binary cannot load custom Python plugins and notes that a pip installation’s command uses the Python frontend. Consequently, an executable named mitsuba can have different origins across worker images. Record the actual entrypoint and package provenance rather than assuming an identical command name establishes identical behavior.
Register the extension explicitly
The custom-plugin tutorial demonstrates class implementation and registration before scene instantiation. Keep registration in a reproducible import or bootstrap sequence. A notebook’s earlier cells are not part of a fresh worker’s process state. Package the extension, its dependencies and its registration name together so scene loading can resolve the declared plugin without relying on an interactive environment or an accidental import performed by another task.
Match variant and plugin behavior
The variant guide separates execution backends and numerical representations. Custom code must operate with the selected variant and its array semantics. A plugin that works for scalar demonstration inputs does not thereby establish useful performance or correctness for batched JIT execution. Keep variant selection before creating variant-specific objects, and check supported operations before treating a successfully imported Python module as a validated rendering component.
Exercise a minimal worker scene
Run a small scene that actually instantiates the custom plugin inside a clean worker process. Check loading, a meaningful output and an edited plugin parameter if the workflow depends on updates. The guides to renderer compatibility and deployment progress deadlines provide related operational context. Preserve the smoke scene with the image definition so future packaging changes reveal a broken bootstrap before a long rendering queue consumes worker time.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.