Skip to content

Commit

Permalink
Enable GDR copy by default
Browse files Browse the repository at this point in the history
  • Loading branch information
wenkaidu committed Dec 17, 2024
1 parent 86bfa80 commit 40f7bd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static constexpr int64_t defaultEnableMscclpp = 0;
RCCL_PARAM(MscclppEnabled, "MSCCLPP_ENABLE", defaultEnableMscclpp);

// GDRCOPY support: Off by default
NCCL_PARAM(GdrCopyEnable, "GDRCOPY_ENABLE", 0);
NCCL_PARAM(GdrCopyEnable, "GDRCOPY_ENABLE", 1);

// GDRCOPY support
gdr_t ncclGdrCopy = NULL;
Expand Down
5 changes: 5 additions & 0 deletions src/transport/net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,12 @@ static ncclResult_t recvProxyProgress(struct ncclProxyState* proxyState, struct
if (resources->gdcFlush) {
#if defined (__x86_64__)
// Force a PCI-E read from GPU memory
static bool once = true;
asm volatile ("mov (%0), %%eax" :: "l"(resources->gdcFlush) : "%eax");
if (once) {
once = false;
INFO(NCCL_INIT, "%s: issued GDC flush", __func__);
}
#else
WARN("NET: GDR Flush only supported on x86_64");
return ncclInternalError;
Expand Down

0 comments on commit 40f7bd1

Please sign in to comment.