Skip to content

Fix get cc macros - #104

Merged
swlynch99 merged 2 commits into
rust-nvml:mainfrom
dcmiddle:fix-get-cc-macros
Jun 24, 2025
Merged

swlynch99 merged 2 commits into
rust-nvml:mainfrom
dcmiddle:fix-get-cc-macros

Conversation

@dcmiddle

Copy link
Copy Markdown
Contributor

nvmlSystemConfComputeSettings expects the version field to be set.
nvml.h defines a macro for that purpose which is implemented in this patch following similar macro implementations like
https://github.com/rust-nvml/nvml-wrapper/blob/main/nvml-wrapper/src/device.rs#L1835-L1837

fixes #97

Version 12 is already supported.

Signed-off-by: Dan Middleton <dan.middleton@intel.com>
nvmlSystemConfComputeSettings expects the version field to be set.
nvml.h defines a macro for that purpose which is implemented in this patch.

Signed-off-by: Dan Middleton <dan.middleton@intel.com>
@dcmiddle
dcmiddle force-pushed the fix-get-cc-macros branch from 2faf9a6 to bfe9ee9 Compare June 23, 2025 23:50
@dcmiddle

Copy link
Copy Markdown
Contributor Author

fixed up cargo fmt lint
please /retest

@swlynch99
swlynch99 merged commit be0bd4a into rust-nvml:main Jun 24, 2025
@swlynch99

Copy link
Copy Markdown
Contributor

Thanks!

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.

nvmlSystemGetConfComputeSettings: unexpected enum variant value: 25

2 participants