Skip to content

Commit eee5e69

Browse files
committed
#2281: use or remove unused variables
1 parent 5c33e20 commit eee5e69

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/vt/collective/reduce/allreduce/rabenseifner.impl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ void Rabenseifner::storeData(size_t id, Args&&... data) {
9393
}
9494

9595
state.local_col_wait_count_++;
96-
auto const is_ready = state.local_col_wait_count_ == local_num_elems_;
9796
}
9897

9998
template <typename DataT, template <typename Arg> class Op>

src/vt/objgroup/manager.impl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ ObjGroupManager::allreduce(ProxyType<ObjT> proxy, Args&&... data) {
289289
// We only support allreduce with a single data type
290290
using DataT = typename std::tuple_element<0, typename Trait::TupleType>::type;
291291

292-
auto const this_node = vt::theContext()->getNode();
293292
auto const strong_proxy = vt::collective::reduce::detail::StrongObjGroup{proxy.getProxy()};
294293
auto const id = StateHolder::getNextID(strong_proxy);
295294

tests/perf/allreduce.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ static constexpr std::array<size_t, 9> const payloadSizes = {
7171
64, 128, 2048, 16384, 32768, 524288, 1048576, 2097152, 4194304};
7272

7373
struct MyTest : PerfTestHarness {
74-
MyTest() { DisableGlobalTimer(); }
74+
MyTest() {
75+
DisableGlobalTimer();
76+
data.reserve(*std::max_element(payloadSizes.begin(), payloadSizes.end()));
77+
}
7578

7679
std::vector<int32_t> data;
7780
};

0 commit comments

Comments
 (0)