Skip to content

Commit

Permalink
Merge pull request #72 from wenkaidu/default_rings
Browse files Browse the repository at this point in the history
Increase number of rings with XGMI connection
  • Loading branch information
wenkaidu authored May 24, 2019
2 parents b921279 + f45566a commit 9a0ac84
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/transport/p2p.cu
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ ncclResult_t p2pCanConnect(ncclTvalue_t* ret, ncclTinfo_t* myOpaqueInfo, ncclTin
link_status_print_once_mask |= (1 << (myInfo->cudaDev*8 + peerInfo->cudaDev));
}
if (link_type != HSA_AMD_LINK_INFO_TYPE_XGMI) {
// enable below lines on release only: disable PCIe P2P until HDP flush is implemented.
// p2p = 0;
// return ncclSuccess;
// disable PCIe P2P until HDP flush is implemented.
p2p = 0;
return ncclSuccess;
}
int nvlinkp2p = 0;
if (link_type == HSA_AMD_LINK_INFO_TYPE_XGMI && hops == 1)
Expand Down Expand Up @@ -290,7 +290,11 @@ int p2pComputeRingsNvLink(ncclTvalue_t* values, int nranks, int* rings, int nrin
}

// Duplicate the rings for direct NVLink
#if defined(__HIP_PLATFORM_HCC__) || defined(__HCC__)
compNrings = copyRings(nranks, rings, compNrings, compNrings*3);
#else
compNrings = copyRings(nranks, rings, compNrings, compNrings*2);
#endif

if (ncclCudaCompCap() == 6) *nthreads /= 2;
return compNrings;
Expand Down

0 comments on commit 9a0ac84

Please sign in to comment.