Skip to content

Commit 6da2b4f

Browse files
authored
Merge pull request #1514 from boded/mstflint_4_34_1_lts
Mstflint 4 34 1 lts
2 parents 61afa0b + 1440a43 commit 6da2b4f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ AM_CONDITIONAL(ENABLE_INBAND, [ test "x$enable_inband" = "xyes" ])
391391

392392
AC_MSG_CHECKING(--enable-nvml argument)
393393
AC_ARG_ENABLE(nvml,
394-
AS_HELP_STRING([--enable-nvml], [enable GPU device access using NVML library (Linux only), requires libnvidia-ml.so]),
394+
AS_HELP_STRING([--enable-nvml], [enable GPU device access using NVML library (Linux only), requires libnvidia-ml.so.1]),
395395
[enable_nvml="$enableval"],
396396
[enable_nvml="$default_en_nvml"]
397397
)

mtcr_ul/mtcr_nvml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ int init_nvml_lib_handle(mfile* mf)
7878
}
7979
memset(nvml_ctx, 0, sizeof(*nvml_ctx));
8080

81-
nvml_ctx->dl_handle = dlopen("libnvidia-ml.so", RTLD_LAZY);
81+
nvml_ctx->dl_handle = dlopen("libnvidia-ml.so.1", RTLD_LAZY);
8282

8383
if (!nvml_ctx->dl_handle) {
84-
printf("Failed to load libnvidia-ml.so, %s\n", dlerror());
84+
printf("Failed to load libnvidia-ml.so.1, %s\n", dlerror());
8585
return -1;
8686
}
8787

nvml_lib/nvml_lib_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void NvmlLibWrapper::LoadDynamicLib()
6666
{
6767
_libraryHandle = dlopen(_libPath.c_str(), RTLD_LAZY);
6868
if (!_libraryHandle) {
69-
throw NvmlException("Failed to load libnvidia-ml.so, %s\n", dlerror());
69+
throw NvmlException("Failed to load libnvidia-ml.so.1, %s\n", dlerror());
7070
}
7171
}
7272

nvml_lib/nvml_lib_wrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ typedef nvmlReturn_t (*f_nvmlDeviceReadWritePRM)(nvmlDevice_t, nvmlPRMTLV_v1_t*)
5050
class NvmlLibWrapper
5151
{
5252
public:
53-
NvmlLibWrapper(const string libPath = "libnvidia-ml.so");
53+
NvmlLibWrapper(const string libPath = "libnvidia-ml.so.1");
5454
~NvmlLibWrapper();
5555
/* Dynamic functions */
5656
f_nvmlDeviceGetHandleByIndex_v2 nvmlDeviceGetHandleByIndex;

0 commit comments

Comments
 (0)