Resets cuda device after each app.update call (#2283)
# Description Calling app.update may change the cuda device that was previously set by Isaac Lab. This change forces the cuda device to be set back to the desired device after each app.update call made in SimulationContext in reset, step, and render. This fixes NCCL errors on distributed setups for certain environments (especially when rendering is enabled), where previously it would generate errors that different ranks were running on the same device. ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task -->
Showing
Please register or sign in to comment