Skip to content

Newton backend: no supported path to run-to-run determinism with contacts (6.2.0.1) #935

Done

Description

@ycpss91255

Summary

Newton 1.6.1 shipped in Isaac Sim 6.2.0.1 predates Newton's deterministic collision pipeline and solver APIs (merged on Newton main in newton-physics/newton#5041, 2026-11-03). There is currently no supported path to achieve run-to-run determinism with contacts enabled when using the Newton backend from an Isaac Sim script.

Environment

  • Isaac Sim 6.2.0.1 (nvcr.io/nvidia/isaac-sim:6.2.0.1)
  • Newton 1.6.1 (bundled in isaacsim.pip.newton)
  • Warp 1.17.0 (omni.warp.core-1.17.0)
  • MuJoCo Warp 3.12.0
  • GPU: NVIDIA GeForce RTX 5090
  • Driver: 610.57.04
  • OS: Ubuntu, kernel 6.8.0-138-generic

Problem

1. wp.config.deterministic = RUN_TO_RUN fails to compile

Setting the global Warp deterministic flag before Newton initializes causes a compilation failure in Newton's collision pipeline:

newton/_src/geometry/contact_reduction_global.py

Error: "Deterministic mode currently supports consumed-return counter atomics only for atomic_add, got atomic_max."

Newton's contact_reduction_global.py uses wp.atomic_max for contact-slot reservation (lines 235, 251, etc. in the bundled 1.6.1 wheel). Warp 1.17 deterministic mode does not support atomic_max.

2. Solver-only deterministic patch runs but is not bit-identical

Patching SolverMuJoCo._deterministic = wp.DeterministicMode.RUN_TO_RUN after Newton initializes (bypassing the collision pipeline compilation) and calling solver._prepare_generated_kernels() succeeds, and readback confirms solver_deterministic=1. However, three identical runs produce different trajectories:

Scenario Metric Spread (n=3)
straight (300 ticks, 1 m) final position error 5.1 mm
square (3 laps, 12 sides) final position error 16.3 mm (30 mm spread)

For comparison, PhysX GPU produces spread = 0 (bit-identical) on the same scenarios.

3. Root cause: contacts from Newton's non-deterministic pipeline

MuJoCoSolverConfig defaults use_mujoco_contacts=False, so contacts come from Newton's own collision pipeline, which has no deterministic option in 1.6.1. Making the solver deterministic does not help when its contact input is not. Newton's own test_solver_determinism.py (bundled in the wheel) runs its rigid-body tests with disable_contacts=True.

What we tried

  1. wp.config.deterministic = wp.DeterministicMode.RUN_TO_RUN before init -- compile failure (above)
  2. Patching solver._deterministic after init -- runs but not bit-identical (above)
  3. Looking for NewtonConfig.deterministic or MuJoCoSolverConfig.deterministic -- neither exists
  4. Looking for CollisionPipeline(deterministic=True) -- not present in Newton 1.6.1

Current state on Newton main

Newton's main branch (post-PR newton-physics/newton#5041, merged 2026-11-03) documents and implements:

  • CollisionPipeline(deterministic=True) -- sorts contacts, fingerprint tie-breaking
  • Per-solver deterministic=wp.DeterministicMode.RUN_TO_RUN as a public constructor argument
  • SolverMuJoCo is listed as "CPU only" for determinism (GPU compilation still fails with Warp 1.19; MuJoCo Warp does not yet order contacts/constraint rows, tracked in SolverMuJoCo: use MuJoCo Warp's native determinism mode newton-physics/newton#5042)

The full determinism roadmap is tracked in newton-physics/newton#5049.

Questions

  1. When will Isaac Sim ship a Newton version (>= the one with Document deterministic simulation newton-physics/newton#5041) that exposes CollisionPipeline(deterministic=True) and solver deterministic constructor arguments?
  2. Will isaacsim.physics.newton's NewtonConfig or MuJoCoSolverConfig gain a deterministic field that users can set from scripts, so determinism can be enabled without patching private attributes?
  3. MuJoCoSolverConfig.use_mujoco_contacts exists (defaults False) but does not appear in the public docs. Is enabling it (to route contacts through MuJoCo Warp's own pipeline, bypassing Newton's atomic_max path) a supported configuration? If so, does it have accuracy/feature parity with the default Newton contacts?

Repro

Open-loop TB3 articulation on a triangle-mesh ground plane, velocity drives, 1/60 s dt, 10 substeps. Scenario script and full data at ycpss91255-docker/isaac#310. The comparison shows PhysX GPU is bit-identical across runs while Newton is not.

Data filed on Newton's determinism epic: newton-physics/newton#5049 (comment).

Activity

  1. PeterL-NV commented on Nov 12, 2026

    @PeterL-NV

    Hi, thanks for the report! Next Isaac Sim release will ship Newton 1.7, the fix you mentioned seems will be in 1.8 release, so I won't that will be available in our next Isaac Sim release. Please check back with the release after next.

  2. PeterL-NV commented on Nov 30, 2026

    @PeterL-NV

    Hi, I am closing the issue for now. Please check the release notes on Newton 1.8 integration for our future releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions