Remove unused but set variable from all_reduce.h (#1258)

Allows `-Wunused-but-set-variable` to pass

[ROCm/rccl commit: d09b152aa0]
Этот коммит содержится в:
Richard Barnes
2024-07-29 11:11:24 -04:00
коммит произвёл GitHub
родитель 3d208c8eb9
Коммит 92d874be50
+1 -9
Просмотреть файл
@@ -59,14 +59,6 @@ namespace {
}
#endif
int minChunkSize;
if (Proto::Id == NCCL_PROTO_LL)
minChunkSize = nthreads*(Proto::calcBytePerGrain()/sizeof(T));
if (Proto::Id == NCCL_PROTO_LL128) {
// We should not need the final /2 but it makes performance much, much smoother. Might be a bug somewhere.
minChunkSize = nthreads*(Proto::calcBytePerGrain()/sizeof(T))/2;
}
Primitives<T, RedOp, FanSymmetric<1>, 0, Proto, 0> prims
(tid, nthreads, &ring->prev, &ring->next, args->sendbuff, args->recvbuff, args->redOpArg, 0, args->connIndex, args->connIndex);
@@ -1030,4 +1022,4 @@ struct RunWorkElement<ncclFuncAllReduce, T, RedOp, NCCL_ALGO_TREE, NCCL_PROTO_LL
runTreeSplit<T, RedOp, ProtoLL128>(args);
//LAUNCH_CLIQUE_KERNEL(AllReduceCliqueSplitKernel, RedOp, T, args);
}
};
};