[MISC] Enforce autograd cases not using cuda graph#2633
Closed
erizmr wants to merge 1 commit intoGenesis-Embodied-AI:mainfrom
Closed
[MISC] Enforce autograd cases not using cuda graph#2633erizmr wants to merge 1 commit intoGenesis-Embodied-AI:mainfrom
erizmr wants to merge 1 commit intoGenesis-Embodied-AI:mainfrom
Conversation
|
🔴 Benchmark Regression Detected ➡️ Report |
duburcqa
reviewed
Apr 1, 2026
| is_compatible=lambda *args, **kwargs: _get_static_config(*args, **kwargs).prefer_parallel_linesearch != 1 | ||
| is_compatible=lambda *args, **kwargs: ( | ||
| _get_static_config(*args, **kwargs).prefer_parallel_linesearch != 1 | ||
| or _get_static_config(*args, **kwargs).requires_grad |
Collaborator
There was a problem hiding this comment.
Do not change this condition. At this point, it is only about prefer_parallel_linesearch. Nothing to do with requiring grad or not. Each variant must specify its own restrictions for compatibility. Nothing more. Nothing else.
duburcqa
reviewed
Apr 1, 2026
| rigid_global_info, | ||
| static_rigid_sim_config, | ||
| _n_iterations: not static_rigid_sim_config.requires_grad | ||
| and static_rigid_sim_config.backend != gs.cpu |
Collaborator
There was a problem hiding this comment.
Are you sure this kernel does not run on CPU? If it runs on CPU, there is no reason to exclude it here.
duburcqa
reviewed
Apr 1, 2026
| @func_solve_body.register( | ||
| is_compatible=lambda *args, **kwargs: _get_static_config(*args, **kwargs).prefer_parallel_linesearch != 1 | ||
| is_compatible=lambda *args, **kwargs: ( | ||
| _get_static_config(*args, **kwargs).prefer_parallel_linesearch != 1 |
Collaborator
There was a problem hiding this comment.
You must update how prefer_parallel_linesearch is computed:
def _build_static_config(self):
prefer_parallel_linesearch = self._options.prefer_parallel_linesearch
# FIXME: Enable gs.metal once Quadrants supports shared memory atomics on Apple Metal.
if gs.backend in (gs.cpu, gs.metal) or self._enable_mujoco_compatibility or self.sim.options.requires_grad:
prefer_parallel_linesearch = False
Collaborator
|
Superseded by #2635 |
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
Related Issue
Resolves Genesis-Embodied-AI/Genesis#
Motivation and Context
How Has This Been / Can This Be Tested?
Screenshots (if appropriate):
Checklist:
Submitting Code Changessection of CONTRIBUTING document.