Skip to content

Commit

Permalink
Add read back to HDP flush register
Browse files Browse the repository at this point in the history
  • Loading branch information
wenkaidu committed Dec 12, 2024
1 parent 86bfa80 commit f222b3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/transport/net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1548,11 +1548,11 @@ static ncclResult_t recvProxyProgress(struct ncclProxyState* proxyState, struct
struct recvNetResources* resources = (struct recvNetResources*) (subGroup->connection->transportResources);
if (rcclParamNetHdpFlush() && resources->curr_hdp_reg) {
static bool once = true;
*resources->curr_hdp_reg = 0x1;
__sync_synchronize();
__atomic_store_n(resources->curr_hdp_reg, 0x1, __ATOMIC_RELAXED);
int val = __atomic_load_n(resources->curr_hdp_reg, __ATOMIC_ACQUIRE);
if (once) {
once = false;
INFO(NCCL_INIT, "%s: flushed HDP %p", __func__, resources->curr_hdp_reg);
INFO(NCCL_INIT, "%s: flushed HDP %p val %d", __func__, resources->curr_hdp_reg, val);
}
}
if (resources->gdcFlush) {
Expand Down

0 comments on commit f222b3c

Please sign in to comment.