From 698524e42e84c1db44f4e86a18b80356bbe3dd26 Mon Sep 17 00:00:00 2001 From: Ziyue Yang Date: Sat, 19 Feb 2022 00:31:40 +0800 Subject: [PATCH] move to a2a api (#9) --- src/alltoall.cu | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/alltoall.cu b/src/alltoall.cu index ba3c6f1088..4b8e66d5a2 100644 --- a/src/alltoall.cu +++ b/src/alltoall.cu @@ -60,23 +60,8 @@ void AlltoAllGetBw(size_t count, int typesize, double sec, double* algBw, double } testResult_t AlltoAllRunColl(void* sendbuff, void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, ncclComm_t comm, hipStream_t stream) { - int nRanks; - NCCLCHECK(ncclCommCount(comm, &nRanks)); - size_t rankOffset = count * wordSize(type); - if (count == 0) return testSuccess; - -#if NCCL_MAJOR < 2 || NCCL_MINOR < 7 - printf("NCCL 2.7 or later is needed for alltoall. This test was compiled with %d.%d.\n", NCCL_MAJOR, NCCL_MINOR); - return testNcclError; -#else - NCCLCHECK(ncclGroupStart()); - for (int r=0; r