Checking kernel header files only when missing sysfs entry (#1239)
Este commit está contenido en:
@@ -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
|
||||||
|
|||||||
Referencia en una nueva incidencia
Block a user