Add back opCount and channel ID to debug trace (#1520)

This commit is contained in:
Wenkai Du
2025-02-03 08:55:27 -08:00
committed by GitHub
parent 7af21dd996
commit a5c6b547a2
5 changed files with 30 additions and 8 deletions
+2
View File
@@ -233,11 +233,13 @@ struct ncclTaskColl {
void* sendMhandle;
void* recvMhandle;
uint64_t opCount;
};
struct ncclTaskP2p {
struct ncclTaskP2p* next;
void* buff;
size_t bytes;
uint64_t opCount;
};
////////////////////////////////////////////////////////////////////////////////
+8 -2
View File
@@ -234,6 +234,7 @@ struct alignas(16) ncclDevWorkP2p {
void *sendAddr, *recvAddr;
size_t sendBytes, recvBytes;
int sendRank, recvRank;
uint64_t sendOpCount, recvOpCount;
// From the part index, nP2pChannels, and channelBase the device code can
// calculate which part of the transfer a channel is responsible for.
uint8_t nP2pChannels; // Always equal to comm->p2pnChannels
@@ -298,6 +299,7 @@ struct alignas(16) ncclDevWorkColl {
} collnet;
};
uint64_t redOpArg;
uint64_t opCount;
};
@@ -418,8 +420,12 @@ struct ncclCollTrace {
uint8_t bid;
int16_t funcIndex;
uint32_t data_0;
uint64_t timeStamp;
uint64_t opCount;
uint8_t channelId;
uint64_t timeStamp:56;
union {
uint64_t opCount;
uint32_t p2pOpCount[2];
};
union {
uint64_t data_1;
struct {