-
Notifications
You must be signed in to change notification settings - Fork 3.5k
pref: 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
Open
pv-nvidia
wants to merge
1
commit into
isaac-sim:develop
Choose a base branch
from
pv-nvidia:feat/frame-view-enable-mgpu
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
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
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,60 @@ | ||
| # 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 | ||
|
|
||
| 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: | ||
|
|
||
| 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 | ||
| run: | | ||
| ./isaaclab.sh -p -m pytest -m multi_gpu \ | ||
| source/isaaclab_physx/test/sim/test_views_xform_prim_fabric.py -v |
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
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.