Skip to content

Commit 36101a9

Browse files
authored
Set LIB_PATH to libnvidia-ml.so.1 instead of libnvidia-ml.so on Linux (#63)
Sets the default path on linux to the versioned library.
1 parent 9403545 commit 36101a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvml-wrapper/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ use crate::bitmasks::InitFlags;
155155
const LIB_PATH: &str = "nvml.dll";
156156

157157
#[cfg(target_os = "linux")]
158-
const LIB_PATH: &str = "libnvidia-ml.so";
158+
const LIB_PATH: &str = "libnvidia-ml.so.1";
159159

160160
/// Determines the major version of the CUDA driver given the full version.
161161
///

0 commit comments

Comments
 (0)