Skip to content

Commit

Permalink
remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarkauskas committed Nov 27, 2024
1 parent b164bae commit d82c02a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/gtest/coll/test_allgatherv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class test_allgatherv : public UccCollArgs, public ucc::test
int *displs;
size_t my_count = (nprocs - r) * count;
size_t disp_counter = 0;
size_t noncontig_total_padding = noncontig_padding * nprocs;
ucc_coll_args_t *coll = (ucc_coll_args_t*)calloc(1, sizeof(ucc_coll_args_t));

ctxs[r] = (gtest_ucc_coll_ctx_t*)calloc(1, sizeof(gtest_ucc_coll_ctx_t));
Expand Down Expand Up @@ -59,7 +58,7 @@ class test_allgatherv : public UccCollArgs, public ucc::test
coll->dst.info_v.displacements = (ucc_aint_t*)displs;
coll->dst.info_v.datatype = dtype;

ctxs[r]->init_buf = ucc_malloc(ucc_dt_size(dtype) * (my_count + noncontig_total_padding), "init buf");
ctxs[r]->init_buf = ucc_malloc(ucc_dt_size(dtype) * my_count, "init buf");
EXPECT_NE(ctxs[r]->init_buf, nullptr);
for (int i = 0; i < (ucc_dt_size(dtype) * my_count); i++) {
uint8_t *sbuf = (uint8_t*)ctxs[r]->init_buf;
Expand Down

0 comments on commit d82c02a

Please sign in to comment.