Merge remote-tracking branch 'nccl/master' into develop
Этот коммит содержится в:
@@ -8,6 +8,7 @@
|
||||
#include "nccl_net.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <sys/syscall.h>
|
||||
@@ -89,6 +90,8 @@ static void ncclDebugInit() {
|
||||
mask = NCCL_REG;
|
||||
} else if (strcasecmp(subsys, "PROFILE") == 0) {
|
||||
mask = NCCL_PROFILE;
|
||||
} else if (strcasecmp(subsys, "RAS") == 0) {
|
||||
mask = NCCL_RAS;
|
||||
} else if (strcasecmp(subsys, "VERBS") == 0) {
|
||||
mask = NCCL_VERBS;
|
||||
} else if (strcasecmp(subsys, "ALL") == 0) {
|
||||
@@ -226,6 +229,19 @@ void ncclDebugLog(ncclDebugLogLevel level, unsigned long flags, const char *file
|
||||
}
|
||||
}
|
||||
|
||||
NCCL_API(void, ncclResetDebugInit);
|
||||
void ncclResetDebugInit() {
|
||||
// Cleans up from a previous ncclDebugInit() and reruns.
|
||||
// Use this after changing NCCL_DEBUG and related parameters in the environment.
|
||||
__atomic_load_n(&ncclDebugLevel, __ATOMIC_ACQUIRE);
|
||||
if (ncclDebugFile != stdout) {
|
||||
fclose(ncclDebugFile);
|
||||
ncclDebugFile = stdout;
|
||||
}
|
||||
ncclDebugLevel = -1;
|
||||
ncclDebugInit();
|
||||
}
|
||||
|
||||
NCCL_PARAM(SetThreadName, "SET_THREAD_NAME", 0);
|
||||
|
||||
void ncclSetThreadName(pthread_t thread, const char *fmt, ...) {
|
||||
|
||||
Ссылка в новой задаче
Block a user