Repository navigation
fix: Preserve Warp compiler settings and portable exports - #112
Merged
frlai merged 2 commits intoDec 2, 2026
Merged
Conversation
Signed-off-by: Octi Zhang <[email protected]>
kellyguo11
added a commit
to isaac-sim/IsaacLab
that referenced
this pull request
Dec 3, 2026
## Summary Update Newton to merged [`838ddf5`](newton-physics/newton@838ddf5), including the MuJoCo 4.1 integration and camera graph-capture fix. Use MuJoCo/MuJoCo Warp **4.1.0**, standard indexed Warp **1.20.0** with CUDA 13, and Newton USD schemas **0.8.0**. The released MJCF converter is temporarily patched inside Isaac Lab. There is **no converter fork pin**, no dependency on an unmerged PR, and no converter tests are skipped. The MuJoCo 4.0.1/Warp 1.19 rollback is removed. Newton owns the MuJoCo Warp requirement. Keep a single `mujoco-warp~=4.1.0` override because Isaac Sim pins an older release. The two Newton overrides preserve its `sim` and optional `optix` extras; a plain override silently drops those extras. Wheel overrides are generated from the same root requirements. No unrelated package versions are updated. ## Temporary MJCF converter patch MuJoCo 4.1 removed per-geom `solmix`. The existing released converter still reads it, so MJCF-to-USD conversion fails on collision geometry. Existing USD assets and simulation paths that do not invoke this converter are unaffected. During conversion only, supply the old default weight of `1.0`, which matches MuJoCo 4.1's equal weighting. Simplified: ```python with patch.object(mujoco.MjsGeom, "solmix", 1.0, create=True): generated_usd_path = MJCFImporter(import_config).import_mjcf() ``` The implementation preserves an existing field if present, restores the original interface on exit, and serializes imports while the temporary field is active. The existing importer test checks restoration. Remove this local patch once a release contains [mujoco-usd-converter #161](newton-physics/mujoco-usd-converter#161); merging this PR does not require waiting for it. ## Why other code changes accompany the bump **Reset buffers:** Warp 1.20 rejects a kernel argument in this compile-time expression: ```diff - if wp.static(len(source.shape) == 1): + if wp.static(ndim == 1): ``` Read the rank in Python and specialize a shared gather/scatter kernel. Masks, strided views, and graph replay remain covered. **Sensors:** Newton moved acceleration and joint-force outputs into solver observables: ```diff - state.body_qdd + observables.body_qdd - state.body_parent_f + observables.body_parent_f ``` Request the outputs before solver initialization and bind the arrays afterward. IMU, PVA, and joint-wrench sensors can then work when MuJoCo's sensor stage is disabled for deterministic execution. **Actuators:** adopt the current command-interface API and update existing callers: ```diff - Actuator(delay=delay, ...) + Actuator(command_interface=delay, ...) - state.delay_state + state.command_interface_state ``` Use `CommandInterfaceDelay`, remove the deprecated `"controller"` alias, and use `"drive"` directly. Tests use real Newton actuators instead of maintaining a stand-in for Newton internals. **Solver defaults and reset:** Newton synchronizes inputs on every step and infers world separation: ```diff - MJWarpSolverCfg(update_data_interval=2, ls_parallel=False) + MJWarpSolverCfg() ``` Delete ignored-option warning shims and the private synchronization call. Reset becomes: ```python self.native.reset(state, world_mask=world_mask, flags=0) ``` `flags=0` preserves the authored pose while clearing solver history. Native MuJoCo CPU simulation requires one world. Remove `KaminoPADMMCfg.compl_tolerance`, which Newton rejects; primal and dual tolerances remain. Other changes required by upstream behavior: - Remove `MujocoCollisionCfg.solmix` and its USD writer; MuJoCo 4.1 removed that field. Use `priority` when one collider's parameters should win. - Rename `soft_contact_margin` to Newton's `soft_contact_gap`. - Clear joint-level collision filtering for visual-only clones. - Retain the original RGB camera references. Merged [Newton #5791](newton-physics/newton#5791) fixes the captured upload from freed ambient-light host memory. - Keep only the MPM reference update: [Newton #5021](newton-physics/newton#5021) changes the fixture's particle contact calculation. Swapping only that solver code reproduces the pile-shape change. - Allow ten minutes for NIST and H1 startup; first-time kernel compilation exceeded five minutes on CI. One independent CI fix remains: remove an unused Omniverse documentation inventory that returns HTTP 403. ## CUDA 13 and CI Use standard indexed Warp 1.20 without platform wheel URLs or application compiler overrides. The merged [LEAPP #112](nvidia-isaac/leapp#112), commit [`e43b364`](nvidia-isaac/leapp@e43b364), stops changing process-wide Warp compiler settings on import. Pin that merged `develop` commit in the LEAPP extra and RL CI job. On the original runner, this fix passed the full RL suite: 292 passed, one skipped. **ARM OptiX still needs a runner driver update.** Newton now installs OptiX on ARM64 too. The Spark runner has `580.159.03`; OptiX 9.1 requires **R590 or newer** ([NVIDIA requirements](https://developer.nvidia.com/designworks/optix/download)). Its eight Newton Warp rendering cases pass against the original goldens, but OptiX fails during import with `Unsupported ABI version`. The merged CI configuration marks this ARM-only case as an expected failure until the runner driver is updated. ## Validation - Updated the windowless viewer fixtures for camera revisions, the relocated GUI module, and text-input capture. All 55 visualizer adapter tests pass. - Updated OVPhysX native-delay coverage to `CommandInterfaceDelay` and `command_interface_state`. All 51 OV articulation tests pass, with 15 existing skips. Both suites failed on the old fixture APIs before the update. - All 11 MJCF importer tests pass with published converter 0.7.0, MuJoCo 4.1.0, Warp 1.20.0, and the local patch. The original CI run failed all 11 on the missing `solmix` field. - All 54 actuator-collection and root/wheel packaging tests pass with the restored dependency set. - Full formatting/lint, changelog, LFS, and lock consistency checks pass. - The same Newton revision previously passed nine selected rendering cases with the original references and 182 focused actuator, solver, sensor, reset, and packaging cases. The final converter patch changes only MJCF conversion. CI validates the rebuilt images and platform coverage on the updated head. ARM OptiX is recorded as an expected failure pending the driver update above. --------- Co-authored-by: Kelly Guo <[email protected]>
kellyguo11
added a commit
to kellyguo11/IsaacLab-public
that referenced
this pull request
Dec 3, 2026
## Summary Update Newton to merged [`838ddf5`](newton-physics/newton@838ddf5), including the MuJoCo 4.1 integration and camera graph-capture fix. Use MuJoCo/MuJoCo Warp **4.1.0**, standard indexed Warp **1.20.0** with CUDA 13, and Newton USD schemas **0.8.0**. The released MJCF converter is temporarily patched inside Isaac Lab. There is **no converter fork pin**, no dependency on an unmerged PR, and no converter tests are skipped. The MuJoCo 4.0.1/Warp 1.19 rollback is removed. Newton owns the MuJoCo Warp requirement. Keep a single `mujoco-warp~=4.1.0` override because Isaac Sim pins an older release. The two Newton overrides preserve its `sim` and optional `optix` extras; a plain override silently drops those extras. Wheel overrides are generated from the same root requirements. No unrelated package versions are updated. ## Temporary MJCF converter patch MuJoCo 4.1 removed per-geom `solmix`. The existing released converter still reads it, so MJCF-to-USD conversion fails on collision geometry. Existing USD assets and simulation paths that do not invoke this converter are unaffected. During conversion only, supply the old default weight of `1.0`, which matches MuJoCo 4.1's equal weighting. Simplified: ```python with patch.object(mujoco.MjsGeom, "solmix", 1.0, create=True): generated_usd_path = MJCFImporter(import_config).import_mjcf() ``` The implementation preserves an existing field if present, restores the original interface on exit, and serializes imports while the temporary field is active. The existing importer test checks restoration. Remove this local patch once a release contains [mujoco-usd-converter isaac-sim#161](newton-physics/mujoco-usd-converter#161); merging this PR does not require waiting for it. ## Why other code changes accompany the bump **Reset buffers:** Warp 1.20 rejects a kernel argument in this compile-time expression: ```diff - if wp.static(len(source.shape) == 1): + if wp.static(ndim == 1): ``` Read the rank in Python and specialize a shared gather/scatter kernel. Masks, strided views, and graph replay remain covered. **Sensors:** Newton moved acceleration and joint-force outputs into solver observables: ```diff - state.body_qdd + observables.body_qdd - state.body_parent_f + observables.body_parent_f ``` Request the outputs before solver initialization and bind the arrays afterward. IMU, PVA, and joint-wrench sensors can then work when MuJoCo's sensor stage is disabled for deterministic execution. **Actuators:** adopt the current command-interface API and update existing callers: ```diff - Actuator(delay=delay, ...) + Actuator(command_interface=delay, ...) - state.delay_state + state.command_interface_state ``` Use `CommandInterfaceDelay`, remove the deprecated `"controller"` alias, and use `"drive"` directly. Tests use real Newton actuators instead of maintaining a stand-in for Newton internals. **Solver defaults and reset:** Newton synchronizes inputs on every step and infers world separation: ```diff - MJWarpSolverCfg(update_data_interval=2, ls_parallel=False) + MJWarpSolverCfg() ``` Delete ignored-option warning shims and the private synchronization call. Reset becomes: ```python self.native.reset(state, world_mask=world_mask, flags=0) ``` `flags=0` preserves the authored pose while clearing solver history. Native MuJoCo CPU simulation requires one world. Remove `KaminoPADMMCfg.compl_tolerance`, which Newton rejects; primal and dual tolerances remain. Other changes required by upstream behavior: - Remove `MujocoCollisionCfg.solmix` and its USD writer; MuJoCo 4.1 removed that field. Use `priority` when one collider's parameters should win. - Rename `soft_contact_margin` to Newton's `soft_contact_gap`. - Clear joint-level collision filtering for visual-only clones. - Retain the original RGB camera references. Merged [Newton isaac-sim#5791](newton-physics/newton#5791) fixes the captured upload from freed ambient-light host memory. - Keep only the MPM reference update: [Newton isaac-sim#5021](newton-physics/newton#5021) changes the fixture's particle contact calculation. Swapping only that solver code reproduces the pile-shape change. - Allow ten minutes for NIST and H1 startup; first-time kernel compilation exceeded five minutes on CI. One independent CI fix remains: remove an unused Omniverse documentation inventory that returns HTTP 403. ## CUDA 13 and CI Use standard indexed Warp 1.20 without platform wheel URLs or application compiler overrides. The merged [LEAPP isaac-sim#112](nvidia-isaac/leapp#112), commit [`e43b364`](nvidia-isaac/leapp@e43b364), stops changing process-wide Warp compiler settings on import. Pin that merged `develop` commit in the LEAPP extra and RL CI job. On the original runner, this fix passed the full RL suite: 292 passed, one skipped. **ARM OptiX still needs a runner driver update.** Newton now installs OptiX on ARM64 too. The Spark runner has `580.159.03`; OptiX 9.1 requires **R590 or newer** ([NVIDIA requirements](https://developer.nvidia.com/designworks/optix/download)). Its eight Newton Warp rendering cases pass against the original goldens, but OptiX fails during import with `Unsupported ABI version`. The merged CI configuration marks this ARM-only case as an expected failure until the runner driver is updated. ## Validation - Updated the windowless viewer fixtures for camera revisions, the relocated GUI module, and text-input capture. All 55 visualizer adapter tests pass. - Updated OVPhysX native-delay coverage to `CommandInterfaceDelay` and `command_interface_state`. All 51 OV articulation tests pass, with 15 existing skips. Both suites failed on the old fixture APIs before the update. - All 11 MJCF importer tests pass with published converter 0.7.0, MuJoCo 4.1.0, Warp 1.20.0, and the local patch. The original CI run failed all 11 on the missing `solmix` field. - All 54 actuator-collection and root/wheel packaging tests pass with the restored dependency set. - Full formatting/lint, changelog, LFS, and lock consistency checks pass. - The same Newton revision previously passed nine selected rendering cases with the original references and 182 focused actuator, solver, sensor, reset, and packaging cases. The final converter patch changes only MJCF conversion. CI validates the rebuilt images and platform coverage on the updated head. ARM OptiX is recorded as an expected failure pending the driver update above. --------- Co-authored-by: Kelly Guo <[email protected]> (cherry picked from commit 2578a6a)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Importing LEAPP currently changes Warp compilation for the entire application:
In Isaac Lab, importing LEAPP's tensor semantics is enough to activate this. Warp 1.20's CUDA 13.4 conditional-graph helper then fails with CUDA error 222 on our CI runner's 595.58.03 driver (CUDA 13.2). Warp's default CUBIN selection works on that runner.
Remove both import-time assignments. Preserve export portability at the export boundary instead:
This packages compiled modules and generated CUDA source. A compatible binary loads directly; otherwise Warp recompiles the source for the destination GPU. Update the shared native replay loader to
wp_apic_load_graph_ex()with the inference environment's Warp headers, and require Warp >=1.19, which introduced these APIs. The existing native build already resolves that environment's Warp directory. No saved compiler settings, restore hooks, or compatibility aliases are added.Regression tests verify that importing LEAPP preserves both default and explicitly configured Warp settings. A GPU test precompiles a kernel before tracing, deliberately invalidates the exported CUBIN, then checks native PT2 replay with fresh inputs. This exercises source packaging and destination recompilation together.
Validation:
This addresses the CUDA 222 failure in Isaac Lab #9270 without requiring a runner driver upgrade for that failure. Isaac Lab can adopt the fixed LEAPP release after this merges.