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

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

[ROCm/rccl commit: d09b152aa0]
Dieser Commit ist enthalten in:
Richard Barnes
2024-07-29 11:11:24 -04:00
committet von GitHub
Ursprung 3d208c8eb9
Commit 92d874be50
-8
Datei anzeigen
@@ -59,14 +59,6 @@ namespace {
} }
#endif #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 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); (tid, nthreads, &ring->prev, &ring->next, args->sendbuff, args->recvbuff, args->redOpArg, 0, args->connIndex, args->connIndex);