Remove unused but set variable from all_reduce.h (#1258)
Allows `-Wunused-but-set-variable` to pass
[ROCm/rccl commit: d09b152aa0]
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
@@ -1030,4 +1022,4 @@ struct RunWorkElement<ncclFuncAllReduce, T, RedOp, NCCL_ALGO_TREE, NCCL_PROTO_LL
|
|||||||
runTreeSplit<T, RedOp, ProtoLL128>(args);
|
runTreeSplit<T, RedOp, ProtoLL128>(args);
|
||||||
//LAUNCH_CLIQUE_KERNEL(AllReduceCliqueSplitKernel, RedOp, T, args);
|
//LAUNCH_CLIQUE_KERNEL(AllReduceCliqueSplitKernel, RedOp, T, args);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
مرجع در شماره جدید
Block a user