Skip to content
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

Update tests/utils/test_device_utils.py #672

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

nikg4
Copy link
Collaborator

@nikg4 nikg4 commented Oct 14, 2024

-- Manually call torch.cuda.init() if not called yet in tests

@nikg4 nikg4 requested review from oelachqar, taenin, wizeng23, a team and kaisopos October 14, 2024 17:23
@nikg4 nikg4 merged commit 54e0293 into main Oct 14, 2024
1 check passed
@nikg4 nikg4 deleted the xrdaukar/test-device-utils-minor-fix branch October 14, 2024 18:43
@@ -17,7 +17,11 @@


def is_cuda_available_and_initialized():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious what scenario do we need to initialize cuda? Usually this is not needed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it happens in this file when this function runs in test skipif condition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants