Skip to content

Fix articulation data micro-benchmarks - #6565

Closed
AntoineRichard wants to merge 1 commit into
isaac-sim:developfrom
AntoineRichard:antoiner/fix-articulation-micro-benchmarks
Closed

AntoineRichard wants to merge 1 commit into
isaac-sim:developfrom
AntoineRichard:antoiner/fix-articulation-micro-benchmarks

Conversation

@AntoineRichard

@AntoineRichard AntoineRichard commented Jul 16, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Fixes articulation-data micro-benchmarks uncovered while evaluating cached read paths.

The previous harness regenerated large random buffers before every sample, modeled stable PhysX reads as mock-side clones, and silently skipped dynamics accessors whose mock backend data was incomplete. Those effects made accessor latency and total benchmark runtime misleading.

This change:

  • synchronizes the configured CUDA device once per timing boundary through the shared runner;
  • keeps backend mock state preallocated and invalidates timestamps between cold-read samples;
  • models PhysX state, mass-property, and dynamics reads with stable buffers;
  • initializes Newton model dimensions, dynamics stubs, and post-resolution ordering state;
  • documents that Newton dynamics stubs isolate Isaac Lab accessor and gather overhead;
  • excludes Newton gravity compensation and deprecated properties;
  • supports zero-joint workloads through the shared public benchmark runner introduced by the preceding PR.

This PR changes only benchmark infrastructure, mock fidelity, and workloads. It does not contain articulation ordering or launch-caching implementation.

Dependencies

Type of change

  • Bug fix

Validation

  • Stable PhysX mass/inertia view regression: failed for both getters before the fix and passes after it.
  • Focused tests: 58 passed across the PhysX Warp mock and shared method benchmark runner.
  • Local CUDA smokes: PhysX reports 65 properties; Newton reports 64 after excluding default_root_state; zero skips and zero tracebacks.
  • Zero-joint CUDA smokes pass for both backends.
  • ./isaaclab.sh -f
  • ./isaaclab.sh -p tools/changelog/cli.py check develop

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks
  • My changes generate no new warnings
  • I have added regression coverage
  • I have added the required changelog fragments
  • My name already exists in CONTRIBUTORS.md

@github-actions github-actions Bot added bug Something isn't working isaac-lab Related to Isaac Lab team labels Jul 16, 2026
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 20, 2026
@AntoineRichard AntoineRichard mentioned this pull request Jul 20, 2026
7 tasks done
@AntoineRichard
AntoineRichard marked this pull request as ready for review July 20, 2026 15:21
@AntoineRichard
AntoineRichard requested a review from a team July 20, 2026 15:21
@greptile-apps

greptile-apps Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Too many files changed for review. (124 files found, 100 file limit)

Bypass the limit by tagging @greptile-apps to review.

@AntoineRichard
AntoineRichard force-pushed the antoiner/fix-articulation-micro-benchmarks branch from 3c2ca66 to b9a264d Compare July 20, 2026 19:18
Keep mock state buffers stable so timed samples measure accessor work instead of random-data allocation or mock-side copies. Initialize Newton dynamics metadata and make unsupported or deprecated properties explicit.
@AntoineRichard
AntoineRichard force-pushed the antoiner/fix-articulation-micro-benchmarks branch from b9a264d to 4f2482e Compare July 28, 2026 21:45
@AntoineRichard

Copy link
Copy Markdown
Collaborator Author

Superseded by #6769, which consolidates this work and is now the canonical source for review, CI, and merge. Closing this PR to keep discussion and validation centralized there.

AntoineRichard added a commit that referenced this pull request Jul 30, 2026
## Summary

Consolidates the remaining open benchmarking work onto `develop`, which
now
contains #6564 and #6631. This pull request is the canonical source for
review,
CI, and merge; the superseded individual pull requests are closed to
keep
discussion and validation centralized here.

## Superseded pull requests

- #6565 — Fix articulation data micro-benchmarks
- #6566 — Add OVPhysX asset micro-benchmarks
- #6567 — Add OVPhysX sensor micro-benchmarks
- #6568 — Add Newton sensor micro-benchmarks
- #6587 — Document micro-benchmark workflows
- #6595 — Rewrite benchmark user guide
- #6624 — Success series in benchmark schema
- #6627 — Rewrite advanced benchmark framework guide
- #6629 — Unify benchmark documentation journey
- #6764 — Standardize benchmark warm-up steps

## Already landed dependencies

- #6564 — Benchmark library API
- #6631 — Restore RL entrypoint backend state

## Integration notes

- The success-rate learning curve advances the benchmark bundle schema
from
  1.2 to 1.3.
- Runtime and play use `num_steps` and `warmup_steps` consistently.
- Shared asset and sensor suites preserve backend-specific setup while
  centralizing common workload, timing, and reporting behavior.
- The top-level micro-benchmark factory exposes exact physics selectors
and
  runs retained benchmark scripts in child processes.
- The benchmark user, framework, and micro-benchmark guides form one
  documentation path with generated API coverage for public symbols.
- Historical plan/spec commits were excluded from the consolidated
history.

## Verification

- `./isaaclab.sh -f`
- `python3 tools/changelog/cli.py check develop`
- `./isaaclab.sh -d`
- Focused benchmark and RL entrypoint tests: 315 passed, 9 skipped

---------

Co-authored-by: Kelly Guo <[email protected]>
matthewtrepte pushed a commit to matthewtrepte/IsaacLab that referenced this pull request Aug 4, 2026
## Summary

Consolidates the remaining open benchmarking work onto `develop`, which
now
contains isaac-sim#6564 and isaac-sim#6631. This pull request is the canonical source for
review,
CI, and merge; the superseded individual pull requests are closed to
keep
discussion and validation centralized here.

## Superseded pull requests

- isaac-sim#6565 — Fix articulation data micro-benchmarks
- isaac-sim#6566 — Add OVPhysX asset micro-benchmarks
- isaac-sim#6567 — Add OVPhysX sensor micro-benchmarks
- isaac-sim#6568 — Add Newton sensor micro-benchmarks
- isaac-sim#6587 — Document micro-benchmark workflows
- isaac-sim#6595 — Rewrite benchmark user guide
- isaac-sim#6624 — Success series in benchmark schema
- isaac-sim#6627 — Rewrite advanced benchmark framework guide
- isaac-sim#6629 — Unify benchmark documentation journey
- isaac-sim#6764 — Standardize benchmark warm-up steps

## Already landed dependencies

- isaac-sim#6564 — Benchmark library API
- isaac-sim#6631 — Restore RL entrypoint backend state

## Integration notes

- The success-rate learning curve advances the benchmark bundle schema
from
  1.2 to 1.3.
- Runtime and play use `num_steps` and `warmup_steps` consistently.
- Shared asset and sensor suites preserve backend-specific setup while
  centralizing common workload, timing, and reporting behavior.
- The top-level micro-benchmark factory exposes exact physics selectors
and
  runs retained benchmark scripts in child processes.
- The benchmark user, framework, and micro-benchmark guides form one
  documentation path with generated API coverage for public symbols.
- Historical plan/spec commits were excluded from the consolidated
history.

## Verification

- `./isaaclab.sh -f`
- `python3 tools/changelog/cli.py check develop`
- `./isaaclab.sh -d`
- Focused benchmark and RL entrypoint tests: 315 passed, 9 skipped

---------

Co-authored-by: Kelly Guo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants