Merge pull request #584 from edgargabriel/topic/signal-backtrace

intercept SIGUSR2 in RCCL

[ROCm/rccl commit: 58437544f8]
This commit is contained in:
Edgar Gabriel
2022-07-15 11:31:19 -05:00
committed by GitHub
+5 -1
View File
@@ -58,6 +58,10 @@ void sig_handler(int signum)
free (strings);
#endif
if (signum == SIGUSR2) {
return;
}
exit (-1);
}
@@ -69,7 +73,7 @@ void RegisterSignalHandlers()
{
INFO(NCCL_INIT, "Enabling custom signal handler");
std::vector<int> signalsToCatch = {SIGILL, SIGBUS, SIGFPE, SIGSEGV};
std::vector<int> signalsToCatch = {SIGILL, SIGBUS, SIGFPE, SIGSEGV, SIGUSR2};
for (auto signum : signalsToCatch)
{