Skip to content

Commit

Permalink
feat(wrapper): provide access to the underlying library
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Heiss <[email protected]>
  • Loading branch information
christoph-heiss committed Nov 6, 2024
1 parent aeedc25 commit b1fc692
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nvml-wrapper/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ impl Nvml {
NvmlBuilder::default()
}

/// Get the underlying `NvmlLib` instance.
pub fn lib(&self) -> &NvmlLib {
&self.lib
}

/**
Use this to shutdown NVML and release allocated resources if you care about handling
potential errors (*the `Drop` implementation ignores errors!*).
Expand Down

0 comments on commit b1fc692

Please sign in to comment.