File size: 7,727 Bytes
6aa6c12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | # Rendering preflight and troubleshooting
Validate graphics before freezing an evaluation configuration. CUDA visibility,
a nonflat final RGB image or a decodable video does not establish usable native
rendering: SimplerEnv composites a photographic background. The robot and task
objects can be black while the background looks detailed.
Diagnostics are evaluator-side infrastructure checks, never model observations
or scored attempts. Do not pass their private buffers, segmentation, asset
identities, native scores or findings to an active policy.
## Check both rendering paths
### First verify the actual GPU, without starting a task
SAPIEN 2.2.2 can alias CUDA devices when several GPUs share a PCI bus number
(their full PCI addresses may still differ). Its renderer log may map several
Vulkan devices to the same CUDA ordinal. Then `cuda:3` can be unavailable even
though CUDA itself enumerates device 3. `CUDA_VISIBLE_DEVICES` alone does not
isolate Vulkan or prove that the intended physical GPU was selected. See the
[upstream report](https://github.com/haosulab/SAPIEN/issues/170).
Choose an available device explicitly; there is no automatic fallback. Obtain
its full UUID with `nvidia-smi --query-gpu=index,uuid,pci.bus_id --format=csv`.
Use the same native Python and environment as the service:
```bash
python -B -m benchmarks.simBenchmarks.SimplerEnv.environment.render_device \
--device cuda:0 --expected-gpu-uuid GPU-REPLACE-WITH-FULL-DEVICE-UUID \
--output /absolute/new-render-device-preflight.json
```
This creates only a renderer in a bounded child process, never a scene, task
reset, action or model request. It checks the renderer process's actual NVIDIA
graphics/compute inventory against the exact UUID and retains logs. Missing PID
visibility, multiple observed GPUs or a mismatch fail closed. A passing probe
does not reserve the GPU, validate cameras/assets, or repair arbitrary nonzero
GPU routing in the old renderer. If a requested device fails, explicitly choose
and verify another available device before declaring the task run; never hide a
fallback inside an active attempt. Do not replace the pinned simulator to work
around a deployment issue.
In a Linux container, the driver reports host process IDs. The verifier reads
the current process's kernel ID from `/proc/self/sched` and records it alongside
the container PID. It never substitutes another process on the selected GPU;
unreadable or malformed kernel identity still fails verification.
Set the same `device` and optional `expected_gpu_uuid` in the server parameter
JSON. When supplied, the adapter rechecks actual process identity after native
construction and before returning the first public observation; it records the
identity in private native provenance. Native construction itself can initialize
the scene, so this check does **not** replace the pre-claim renderer-only probe.
Neither this deployment assertion nor its private diagnostics expands policy
observations. Historical runs without the assertion remain unchanged.
Pinned Google drawer tasks use RT shaders with denoising enabled, 32 samples per
pixel and path depth 8. Can-picking and move-near configurations use IBL; passing
an IBL check does not validate drawer rendering. Use the same interpreter,
NVIDIA Vulkan ICD, graphics device and environment for preflight and evaluation.
```bash
python benchmarks/simBenchmarks/SimplerEnv/environment/verify_environment.py \
--task google_robot_open_top_drawer --seed 0 --steps 0
```
The verifier checks scheduled RGB and the already-acquired camera Color buffer,
using `get_images(take_picture=False)` rather than requesting an extra render
or scorer evaluation. Nonfinite or entirely zero native RGB fails even when a
photographic overlay looks detailed.
The guard is deliberately narrow: it does not certify texture completeness,
foreground correctness or camera parity. Keep stderr and visually inspect the
robot and objects. Image appearance does not determine task success.
## Check NVIDIA graphics components, not only CUDA
A functioning CUDA installation and Vulkan ICD can coexist with incomplete
container graphics data. In particular, `/usr/share/nvidia/nvoptix.bin` supplies
OptiX denoiser data. Missing matching data can accompany
`OPTIX_ERROR_INTERNAL_ERROR`, `OPTIX_ERROR_INVALID_VALUE` or denoise failures.
Confirm the exact installed driver version and its vendor component list before
diagnosing a missing file. Consult the matching NVIDIA driver documentation and
the container runtime's graphics exposure. Relevant primary references include
the [580.105.08 installed-component list](https://download.nvidia.com/XFree86/Linux-x86_64/580.105.08/README/installedcomponents.html)
and NVIDIA's [container graphics discovery implementation](https://github.com/NVIDIA/nvidia-container-toolkit/blob/main/internal/discover/graphics.go).
These symptoms are diagnostic clues, not proof that every rendering failure
has the same cause.
Do not switch RT to IBL, disable native denoising, replace assets or change
controller/environment settings merely to obtain a score. Such changes require
a separately declared configuration. A diagnostic setting must not silently
become the evaluated setting.
## Use matching vendor data
Obtain any missing data for the installed driver version and verify the vendor
archive before extraction. The following previously verified vendor package is
a concrete example, **not** a recommended driver version or universal file hash:
| Artifact for NVIDIA 580.105.08 | Bytes | SHA-256 |
| --- | ---: | --- |
| [Linux x86-64 no-compat32 archive](https://download.nvidia.com/XFree86/Linux-x86_64/580.105.08/NVIDIA-Linux-x86_64-580.105.08-no-compat32.run) | 325,237,600 | `80b6a015c6eefdf24f81f76cddb0eb6ce4bcf09b43331130892588c9713300ec` |
| Extracted `nvoptix.bin` | 60,858,204 | `d5eacd24c18bda32f0b40d82c6fb2597c6b8fc72294b16a71c22ce164b9c26a2` |
The archive's [vendor checksum](https://download.nvidia.com/XFree86/Linux-x86_64/580.105.08/NVIDIA-Linux-x86_64-580.105.08-no-compat32.run.sha256sum)
is the reference for that exact download. Use extraction-only mode in a fresh
private directory; do not execute the driver installer as part of a data-only
repair. Keep partial downloads separate. Do not redistribute driver binaries
inside this repository.
## Container exposure and reproducibility
Prefer administrator-managed exposure of the complete matching driver data.
Where explicitly supported by the host's permissions, an administrator can use
a private mount namespace and a read-only mirror of the NVIDIA data directory
for a diagnostic or evaluation process. Preserve all existing directory entries,
add only verified matching data and check the effective file identity inside
the namespace. Never perform the bind mount in the global mount namespace.
This repository does not provide a universal driver-data installer or a
portable privileged wrapper. If private mounts are unavailable, coordinate
proper container graphics exposure with the administrator rather than replacing
system components. Hash receipts identify inspected data, not loaded-memory
attestation or protection against a hostile operator.
After repair, rerun a separate rendering diagnostic with the original shader,
denoising, controller and observation settings. Record interpreter, driver,
effective graphics-data hashes, container/mount configuration and the diagnostic
outcome before any newly declared evaluation. Keep existing attempts unchanged;
a rendering defect discovered after closure is retained with its caveat, not
removed, relabeled as successful or automatically retried. Results from changed
environment conditions must remain distinguishable.
|