Repository navigation
Fixes memory leak in SDF calculation - warp doesn't free memory - #2680
Merged
Merged
Conversation
Mayankm96
reviewed
Jun 15, 2025
|
|
||
| sdf_reward = -torch.log(sdf_reward) | ||
|
|
||
| gp.collect() # Force garbage collection to free memory |
Contributor
There was a problem hiding this comment.
Should this be gc.collect()?
Contributor
Author
There was a problem hiding this comment.
Yes - I will fix this typo
Thanks!
Contributor
|
@yijieg could you help review this one as well? |
Contributor
|
Hi @kellyguo11 , this change looks good to me. It helps save memory but does not affect the reward we calculated, so it will not affect the learning performance. |
Fix typo Signed-off-by: David <[email protected]>
Contributor
|
@leondavi could you please run the formatter with |
Signed-off-by: Kelly Guo <[email protected]>
harry-wf-cheung
pushed a commit
to harry-wf-cheung/IsaacLab-Harry
that referenced
this pull request
Jul 30, 2025
…c-sim#2680) # Description Thanks to Matteo Grimaldi, Saleh Nabi and Wonju Lee for identifying the source of this memory leak. <!-- Thank you for your interest in sending a pull request. Please make sure to check the contribution guidelines. Link: https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html --> Add garbage collector calls since warp doesn't handle well the free memory. Fixes isaac-sim#2679 <!-- As a practice, it is recommended to open an issue to have discussions on the proposed pull request. This makes it easier for the community to keep track of what is being developed or added, and if a given feature is demanded by more than one party. --> ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix ## Screenshots Before this change - the experiment hasn't been completed on 64GB RAM machines. After this change it requires less than 12GB RAM. <!-- Example: | Before | After | | ------ | ----- | To upload images to a PR -- simply drag and drop an image while in edit mode and it should upload the image directly. You can then paste that source into the above before/after sections. -->  ## 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 - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] 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 --> --------- Signed-off-by: David <[email protected]> Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
LJones-alt
pushed a commit
to LJones-alt/IsaacLab-Laura
that referenced
this pull request
Jul 1, 2026
…c-sim#2680) # Description Thanks to Matteo Grimaldi, Saleh Nabi and Wonju Lee for identifying the source of this memory leak. <!-- Thank you for your interest in sending a pull request. Please make sure to check the contribution guidelines. Link: https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html --> Add garbage collector calls since warp doesn't handle well the free memory. Fixes isaac-sim#2679 <!-- As a practice, it is recommended to open an issue to have discussions on the proposed pull request. This makes it easier for the community to keep track of what is being developed or added, and if a given feature is demanded by more than one party. --> ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix ## Screenshots Before this change - the experiment hasn't been completed on 64GB RAM machines. After this change it requires less than 12GB RAM. <!-- Example: | Before | After | | ------ | ----- | To upload images to a PR -- simply drag and drop an image while in edit mode and it should upload the image directly. You can then paste that source into the above before/after sections. -->  ## 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 - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] 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 --> --------- Signed-off-by: David <[email protected]> Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
csj-275
pushed a commit
to csj-275/IsaacLab
that referenced
this pull request
Jul 8, 2026
…c-sim#2680) # Description Thanks to Matteo Grimaldi, Saleh Nabi and Wonju Lee for identifying the source of this memory leak. <!-- Thank you for your interest in sending a pull request. Please make sure to check the contribution guidelines. Link: https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html --> Add garbage collector calls since warp doesn't handle well the free memory. Fixes isaac-sim#2679 <!-- As a practice, it is recommended to open an issue to have discussions on the proposed pull request. This makes it easier for the community to keep track of what is being developed or added, and if a given feature is demanded by more than one party. --> ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix ## Screenshots Before this change - the experiment hasn't been completed on 64GB RAM machines. After this change it requires less than 12GB RAM. <!-- Example: | Before | After | | ------ | ----- | To upload images to a PR -- simply drag and drop an image while in edit mode and it should upload the image directly. You can then paste that source into the above before/after sections. -->  ## 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 - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] 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 --> --------- Signed-off-by: David <[email protected]> Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Thanks to Matteo Grimaldi, Saleh Nabi and Wonju Lee for identifying the source of this memory leak.
Add garbage collector calls since warp doesn't handle well the free memory.
Fixes #2679
Type of change
Screenshots
Before this change - the experiment hasn't been completed on 64GB RAM machines.
After this change it requires less than 12GB RAM.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there