Skip to content

Commit bc9edae

Browse files
feat(wrapper): provide access to the underlying library
Signed-off-by: Christoph Heiss <[email protected]>
1 parent 199e3a0 commit bc9edae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nvml-wrapper/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,11 @@ impl Nvml {
298298
NvmlBuilder::default()
299299
}
300300

301+
/// Get the underlying `NvmlLib` instance.
302+
pub fn lib(&self) -> &NvmlLib {
303+
&self.lib
304+
}
305+
301306
/**
302307
Use this to shutdown NVML and release allocated resources if you care about handling
303308
potential errors (*the `Drop` implementation ignores errors!*).

0 commit comments

Comments
 (0)