-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Move accelerator-specific parsing functions with their accelerators #14753
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, need to block merge as this is undoing most work done in #14708. I'll have to re-apply the adjustments.
…o refactor/move-parsing-utils
tests/tests_lite/conftest.py
Outdated
mock_cuda_count(monkeypatch, 4) | ||
|
||
|
||
def mock_mps_count(monkeypatch, n: int) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@awaelchli You added these to Lite conftest but they are unused. I suggest removing them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Introducing these inconsistencies in the two code bases generates a lot of new work when moving/rewriting tests to Lite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add them to Lite too if it reduces the boilerplate. Just saying that either we add them and use them or not add them. When I made the comment above, they were added but not used.
I see now you have removed them. We can add them and refactor the lite tests in a different PR if you would like.
…14753) Co-authored-by: awaelchli <[email protected]>
What does this PR do?
Reduces circular dependencies by improving code locality
This will help with #14550 which had to move many of these into local imports
Does your PR introduce any breaking changes? If yes, please list them.
None
Before submitting
PR review
cc @Borda @justusschock @awaelchli @rohitgr7 @tchaton @akihironitta