Checking kernel header files only when missing sysfs entry (#1239)

Este commit está contenido en:
Wenkai Du
2024-07-03 15:53:15 -07:00
cometido por GitHub
padre aeaaacad26
commit 45f3fbc52f
+1 -2
Ver fichero
@@ -362,10 +362,9 @@ ncclResult_t ncclIbGdrSupport() {
NCCLCHECK(ncclTopoGetStrFromSys("/proc/sys/kernel", "numa_balancing", strValue)); NCCLCHECK(ncclTopoGetStrFromSys("/proc/sys/kernel", "numa_balancing", strValue));
if (strcmp(strValue, "1") == 0 && roMode == 0) if (strcmp(strValue, "1") == 0 && roMode == 0)
moduleLoaded = 0; moduleLoaded = 0;
} else { } else if (moduleLoaded == 0) {
char kernel_header_file[256]; char kernel_header_file[256];
struct utsname utsname; struct utsname utsname;
moduleLoaded = 0;
char buf[256]; char buf[256];
FILE *fp = NULL; FILE *fp = NULL;
//check for kernel name exists //check for kernel name exists