[NPKit] Create dump dir regardless of default or user provided path (#1757)

[ROCm/rccl commit: 675b495a00]
Bu işleme şunda yer alıyor:
Bertan Dogancay authored and GitHub committed 2025-06-21 21:18:20 -05:00
1 ebeveyn 1e42d866da
işleme eaa770a017
1 file changed
+5 -6
+5 -6
Dosyayı Görüntüle
@@ -2576,12 +2576,11 @@ static ncclResult_t commCleanup(ncclComm_t comm) {
if (npkitDumpDir == nullptr) {
npkitDumpDir = "./npkit_dump";
INFO(NCCL_INIT, "NPKIT_DUMP_DIR is not set, using default directory: %s", npkitDumpDir);
struct stat st;
if (stat(npkitDumpDir, &st) != 0) {
if (mkdir(npkitDumpDir, 0755) != 0) {
WARN("Failed to create NPKIT_DUMP_DIR directory: %s", npkitDumpDir);
}
}
struct stat st;
if (stat(npkitDumpDir, &st) != 0) {
if (mkdir(npkitDumpDir, 0755) != 0) {
WARN("Failed to create NPKIT_DUMP_DIR directory: %s", npkitDumpDir);
}
}
NCCLCHECK(NpKit::Dump(npkitDumpDir));