-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Enable mgpu in FrameView #5514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kellyguo11
merged 8 commits into
isaac-sim:develop
from
pv-nvidia:feat/frame-view-enable-mgpu
May 20, 2026
+190
−24
Merged
Enable mgpu in FrameView #5514
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
17be306
Enable FabricFrameView on non-primary GPUs
pv-nvidia abab55a
Skip cuda:1 fabric tests on single-GPU runners instead of failing
pv-nvidia cb81414
Strip sys.argv before AppLauncher boot in fabric test
pv-nvidia 875594d
Use ProxyArray.torch accessor in fabric view tests
pv-nvidia 8abdf67
Address review feedback on the multi-GPU branch
pv-nvidia 711264b
Update FabricFrameView docstrings for multi-GPU support
pv-nvidia 60d99b8
Split FabricFrameView multi-GPU tests into their own workflow
pv-nvidia a039313
ci: disable multi-GPU workflow (no runner available)
pv-nvidia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| # Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). | ||
| # All rights reserved. | ||
| # | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| # FabricFrameView multi-GPU unit tests | ||
| # | ||
| # Runs the cuda:1-parameterized unit tests in | ||
| # source/isaaclab_physx/test/sim/test_views_xform_prim_fabric.py on the | ||
| # dedicated multi-GPU runner. Kept separate from test-multi-gpu.yaml so | ||
| # changes to FabricFrameView do not gate distributed-training validation and | ||
| # vice versa. Runner preconditions (label, install step, GPU pre-flight) are | ||
| # identical to the training workflow. | ||
|
|
||
| name: FabricFrameView Multi-GPU Tests | ||
|
|
||
| # DISABLED: No self-hosted runner with the 'multi-gpu' label is currently | ||
| # registered. All runs queue indefinitely. Re-enable once infra provisions | ||
| # a multi-GPU runner (see also .github/workflows/test-multi-gpu.yaml which | ||
| # has the same issue). | ||
| # | ||
| # on: | ||
| # pull_request: | ||
| # paths: | ||
| # - "source/isaaclab_physx/isaaclab_physx/sim/views/fabric_frame_view.py" | ||
| # - "source/isaaclab_physx/test/sim/test_views_xform_prim_fabric.py" | ||
| # - ".github/workflows/test-fabric-multi-gpu.yaml" | ||
| # workflow_dispatch: | ||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| test-fabric-multi-gpu: | ||
| name: FabricFrameView multi-GPU unit tests | ||
| runs-on: [self-hosted, linux, x64, gpu, multi-gpu] | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Isaac Lab | ||
| run: ./isaaclab.sh --install | ||
|
|
||
| - name: Verify multi-GPU availability | ||
| # Fail loud if the runner regressed to a single GPU. Without this, the | ||
| # test helper's ``_skip_if_unavailable`` would skip every ``cuda:1`` case | ||
| # and the job would go green with no real coverage. | ||
| run: | | ||
| echo "=== GPU Info ===" | ||
| nvidia-smi --query-gpu=index,name,memory.total --format=csv | ||
|
|
||
| GPU_COUNT=$(./isaaclab.sh -p -c "import torch; print(torch.cuda.device_count())") | ||
| echo "Detected $GPU_COUNT GPU(s)" | ||
|
|
||
| if [ "$GPU_COUNT" -lt 2 ]; then | ||
| echo "::error::At least 2 GPUs required for Fabric multi-GPU tests, found $GPU_COUNT" | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Run FabricFrameView multi-GPU unit tests | ||
| env: | ||
| ISAACLAB_TEST_MULTI_GPU: "1" | ||
| run: | | ||
| ./isaaclab.sh -p -m pytest \ | ||
| source/isaaclab_physx/test/sim/test_views_xform_prim_fabric.py -v |
9 changes: 9 additions & 0 deletions
9
source/isaaclab_physx/changelog.d/feat-frame-view-enable-mgpu.rst
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| Fixed | ||
| ^^^^^ | ||
|
|
||
| * Fixed :class:`~isaaclab_physx.sim.views.FabricFrameView` falling back to | ||
| the slow USD path on every CUDA device other than ``cuda:0``. USDRT | ||
| ``SelectPrims`` now accepts any CUDA device index, so Fabric acceleration | ||
| runs on the simulation device the view was constructed with (e.g. | ||
| ``cuda:1``). This unblocks distributed training where each rank is | ||
| pinned to a non-primary GPU. |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.