Skip to content
This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Commit 287fcf7

Browse files
author
kc432959
committed
Added halo_2d exchange test
1 parent 3d410d2 commit 287fcf7

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

test/gtest/mp/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ add_executable(
3737
copy.cpp
3838
distributed_vector.cpp
3939
halo.cpp
40+
halo-2d.cpp
4041
mdstar.cpp
4142
mpsort.cpp
4243
reduce.cpp
@@ -60,7 +61,7 @@ add_executable(
6061
# is OK to commit changes to the source file list.
6162
add_executable(mp-quick-test
6263
mp-tests.cpp
63-
halo-3.cpp
64+
halo-2d.cpp
6465
)
6566
add_executable(mp-quick-test-3-only
6667
mp-tests.cpp

test/gtest/mp/halo-2d.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// SPDX-FileCopyrightText: Intel Corporation
2+
//
3+
// SPDX-License-Identifier: BSD-3-Clause
4+
5+
#include "xp-tests.hpp"
6+
7+
TEST(Halo2D, exchange_2d_test) {
8+
dr::mp::distributed_mdarray<int, 2> dv({10, 10}, dr::mp::distribution().halo(1));
9+
10+
DRLOG("exchange start");
11+
dv.halo().exchange();
12+
DRLOG("exchange end");
13+
}

0 commit comments

Comments
 (0)