Merge remote-tracking branch 'remotes/nccl/master' into HEAD

[ROCm/rccl commit: 7c38da0939]
This commit is contained in:
Wenkai Du
2019-08-16 16:13:34 -07:00
5 changed files with 18 additions and 7 deletions
+4
View File
@@ -327,7 +327,11 @@ static ncclResult_t createListenSocket(int *fd, union socketAddress *localAddr)
if (socketToPort(&localAddr->sa)) {
// Port is forced by env. Make sure we get the port.
int opt = 1;
#if defined(SO_REUSEPORT)
SYSCHECK(setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR | SO_REUSEPORT, &opt, sizeof(opt)), "setsockopt");
#else
SYSCHECK(setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)), "setsockopt");
#endif
}
// localAddr port should be 0 (Any port)
+1 -1
View File
@@ -12,7 +12,7 @@
#include <stdint.h>
ncclResult_t getHostName(char* hostname, int maxlen, const char delim);
uint64_t getnHash(const char* string, int n);
uint64_t getHash(const char* string, int n);
uint64_t getHostHash();
uint64_t getPidHash();