[bugfix]save undo plans in some case
This commit is contained in:
parent
48bb7fec79
commit
9ef920a77b
@ -142,7 +142,7 @@ static ncclResult_t doLaunches(struct ncclComm* head) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (true) { // Iterate rounds of launches for clique.
|
while (true) { // Iterate rounds of launches for clique.
|
||||||
bool moreRounds;
|
bool moreRounds = false;
|
||||||
comm = cliqueHead;
|
comm = cliqueHead;
|
||||||
do { // Iterate clique members.
|
do { // Iterate clique members.
|
||||||
struct ncclComm* next = comm->groupNext;
|
struct ncclComm* next = comm->groupNext;
|
||||||
@ -150,7 +150,7 @@ static ncclResult_t doLaunches(struct ncclComm* head) {
|
|||||||
// Barrier reduction result tells us if this was the final round.
|
// Barrier reduction result tells us if this was the final round.
|
||||||
moreRounds = 0 != ncclCommIntraBarrierOut(comm);
|
moreRounds = 0 != ncclCommIntraBarrierOut(comm);
|
||||||
} else {
|
} else {
|
||||||
moreRounds = comm->unlaunchedPlansHead != nullptr;
|
moreRounds |= comm->unlaunchedPlansHead != nullptr;
|
||||||
}
|
}
|
||||||
if (moreRounds) {
|
if (moreRounds) {
|
||||||
// Pop next unlaunched kernel
|
// Pop next unlaunched kernel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user