aup-learning-cloud icon indicating copy to clipboard operation
aup-learning-cloud copied to clipboard

Track Physim AMD regression in genesis-world 0.4.5

Open MioYuuIH opened this issue 7 months ago • 4 comments

Summary

Physim Lab 1 fails on AMD/ROCm when genesis-world==0.4.5 is used.

Reproduction

In the Physim image, the following sequence reproduces the failure on AMD GPUs:

  • gs.init(backend=gs.amdgpu, theme=\"light\") succeeds
  • scene = gs.Scene(show_viewer=False) succeeds
  • scene.build() fails

Observed errors

With genesis-world==0.4.5:

  1. ModuleNotFoundError: No module named 'cuda'
  2. After installing cuda-python, scene.build() still fails with: TypeError: unsupported operand type(s) for /=: 'NoneType' and 'float'

Traceback points to genesis/engine/solvers/rigid/rigid_solver.py, where cuda.bindings.runtime is queried during scene.build().

Validation

  • The same Physim pod works with:
    • torch==2.9.1+rocm7.11.0
    • torchvision==0.24.0+rocm7.11.0
    • torchaudio==2.9.0+rocm7.11.0
  • Downgrading only genesis-world from 0.4.5 to 0.4.3 makes scene.build() succeed.

Upstream context

  • Upstream issue: Genesis-Embodied-AI/Genesis#2662
  • Upstream fix PR: Genesis-Embodied-AI/Genesis#2664

Current workaround

Pin Physim to genesis-world==0.4.3 until an upstream Genesis release includes the fix from PR #2664.

Follow-up

  • Track the first upstream Genesis release that includes PR #2664
  • Re-test Physim on AMD/ROCm when that release is available
  • Remove the temporary 0.4.3 pin after validation

MioYuuIH avatar Apr 09 '26 10:04 MioYuuIH

Genesis v0.4.6 Upgrade

Status: Fix implemented and ready for testing

Changes:

  • Upgraded PhySim from genesis-world==0.4.3 to genesis-world==0.4.6
  • Branch: fix/physim-upgrade-genesis-0.4.6
  • Commit: https://github.com/AMDResearch/aup-learning-cloud/commit/b62335a

Genesis v0.4.6 includes the AMD/ROCm fix (released 2026-04-11):

  • ✅ PR Genesis-Embodied-AI/Genesis#2664 merged: Replaced cuda.bindings.runtime with cross-platform shared-memory query
  • ✅ Enabled parallel linesearch on all GPU backends (not just CUDA)
  • ✅ Fixed contact overflow causing unbounded memory access
  • ✅ Relaxed CUDA Toolkit requirements

Upstream References:

  • Genesis Release: https://github.com/Genesis-Embodied-AI/Genesis/releases/tag/v0.4.6
  • Fix PR: https://github.com/Genesis-Embodied-AI/Genesis/pull/2664

Next Steps:

  1. Create PR and merge to develop
  2. Test PhySim Lab 1 on AMD/ROCm hardware
  3. Verify scene.build() succeeds without errors
  4. Confirm no cuda-python dependency is required

MioYuuIH avatar Apr 21 '26 02:04 MioYuuIH

Draft PR created: https://github.com/AMDResearch/aup-learning-cloud/pull/75

The PR is in draft status pending testing verification on AMD/ROCm hardware.

MioYuuIH avatar Apr 21 '26 02:04 MioYuuIH

@sonyyang-amd Please help to test version 0.4.6

kerwtsai-amd avatar Apr 22 '26 03:04 kerwtsai-amd

@KerwinTsaiii All tested. Version 0.4.6 works well on current notebooks.

sonyyang-tw avatar Apr 22 '26 04:04 sonyyang-tw