Skip to content

Conversation

codifryed
Copy link
Contributor

This PR adds the nvmlDeviceGetFanSpeedRPM binding and wrapper. This is a newer method introduced in v565 of the driver which means the bindings need to be updated to support this method.

Things done to make this possible:

  • The nvml.h header file was updated to be able to generate the new bindings.
  • New bindings were generated and the existing bindings were replaced.
  • unwrapped_functions.sh was executed to update the unwrapped_functions.txt list.
  • FanSpeedInfo device struct wrapper
  • Wrapper for nvmlDeviceGetFanSpeedRPM
  • A Test was added for fan_speed_rpm() - passes.

Tested working on local machine (Linux v570)

If there's anything I can do to help with these changes, let me know.

@ilya-zlobintsev
Copy link
Contributor

I just wanted to say that I'm also interested in the header update, as it makes it possible to add wrappers for nvmlDeviceGetClockOffsets/nvmlDeviceSetClockOffsets.

Copy link
Contributor

@brayniac brayniac left a comment

Choose a reason for hiding this comment

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

Thanks for opening this. Looks good to me.

@brayniac brayniac merged commit c42a7a7 into rust-nvml:main Mar 24, 2025
7 checks passed
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