Skip to content

Commit 2aedb88

Browse files
committed
[dist] add test for default coll comm in row gatherer
1 parent b38dcc1 commit 2aedb88

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

core/test/mpi/distributed/row_gatherer.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,19 @@ TYPED_TEST(RowGatherer, CanDefaultConstruct)
7676
}
7777

7878

79+
TYPED_TEST(RowGatherer, HasDefaultCollectiveCommunicator)
80+
{
81+
using RowGatherer = typename TestFixture::row_gatherer_type;
82+
83+
auto rg = RowGatherer::create(this->ref, this->comm);
84+
85+
auto coll_comm = rg->get_collective_communicator();
86+
ASSERT_NE(std::dynamic_pointer_cast<
87+
const gko::experimental::mpi::DenseCommunicator>(coll_comm),
88+
nullptr);
89+
}
90+
91+
7992
TYPED_TEST(RowGatherer, CanConstructWithEmptyCollectiveCommAndIndexMap)
8093
{
8194
using RowGatherer = typename TestFixture::row_gatherer_type;

0 commit comments

Comments
 (0)