Fix share memory collision in multi-communicator case.

Current SHM object name would only use pidHash and ranks as
identification, which would collide each other when program runs with
multiple communicators. Here we added commId info into pidHash, it makes
'pidHash'es of different communicators keeping in same process will be
distincted with each other.


[ROCm/rccl commit: 161763aab2]
이 커밋은 다음에 포함됨:
Cao Zongyan
2019-03-13 17:13:39 +08:00
부모 ab2dd12f3e
커밋 8b3bc4ef7a
3개의 변경된 파일과 17개의 추가작업 그리고 6개의 파일을 삭제
+1
파일 보기
@@ -11,6 +11,7 @@
#include <stdint.h>
ncclResult_t getHostName(char* hostname, int maxlen);
uint64_t getnHash(const char* string, int n);
uint64_t getHostHash();
uint64_t getPidHash();