Fix incorrect pointer checking for scatter and gather (#285)

Dieser Commit ist enthalten in:
Wenkai Du verfasst und GitHub committed 2020-10-19 13:27:09 -07:00
1 Ursprung 9b3f762b68
Commit dcad0ef7cb
1 Datei geändert
+2 -2
+2 -2
Datei anzeigen
@@ -73,10 +73,10 @@ ncclResult_t ArgsCheck(struct ncclInfo* info) {
}
} else {
// Check CUDA device pointers
if (info->coll != ncclCollBroadcast || info->comm->rank == info->root) {
if ((info->coll != ncclCollBroadcast && info->coll != ncclCollScatter) || info->comm->rank == info->root) {
NCCLCHECK(CudaPtrCheck(info->sendbuff, info->comm, "sendbuff", info->opName));
}
if (info->coll != ncclCollReduce || info->comm->rank == info->root) {
if ((info->coll != ncclCollReduce && info->coll != ncclCollGather) || info->comm->rank == info->root) {
NCCLCHECK(CudaPtrCheck(info->recvbuff, info->comm, "recvbuff", info->opName));
}
}