Skip to content

Conversation

@fslongjin
Copy link
Contributor

  • Add conversion implementation from custom NvmlError to nvmlReturn_t enum
  • Handle all NvmlError variants with corresponding nvmlReturn_t values
  • Use #[allow(deprecated)] attribute for compatibility

- Add conversion implementation from custom NvmlError to nvmlReturn_t enum
- Handle all NvmlError variants with corresponding nvmlReturn_t values
- Use #[allow(deprecated)] attribute for compatibility

Signed-off-by: jinlong <jinlong@tencent.com>
@swlynch99
Copy link
Contributor

swlynch99 commented Dec 8, 2025

I'm alright with merging this, but what's your use case for it?

@swlynch99 swlynch99 merged commit 0281788 into rust-nvml:main Dec 8, 2025
7 checks passed
@fslongjin
Copy link
Contributor Author

I'm alright with merging this, but what's your use case for this?

When I was developing the nvml hijacking library, I needed to convert the NvmlError into the original nvml error code that would be returned to the user side.

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.

2 participants