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

fix(api/device): fix passing invalid device handle to NVML functions #146

Merged
merged 4 commits into from
Jan 13, 2025

Conversation

XuehaiPan
Copy link
Owner

Issue Type

  • Bug fix

Description

Add guard self.handle is not None in query functions.

Motivation and Context

Fixes #145
Fixes #139

@XuehaiPan XuehaiPan added bug Something isn't working pynvml Something related to the `nvidia-ml-py` package api Something related to the core APIs labels Jan 13, 2025
@XuehaiPan XuehaiPan changed the title fix(api): fix passing invalid device handle to NVML functions fix(api/device): fix passing invalid device handle to NVML functions Jan 13, 2025
@XuehaiPan XuehaiPan force-pushed the fix-invalid-device-handle branch from 556f4dd to 958c057 Compare January 13, 2025 09:33
@XuehaiPan XuehaiPan merged commit d623531 into main Jan 13, 2025
2 checks passed
@XuehaiPan XuehaiPan deleted the fix-invalid-device-handle branch January 13, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Something related to the core APIs bug Something isn't working pynvml Something related to the `nvidia-ml-py` package
Projects
None yet
1 participant