Skip to content

Commit

Permalink
Rely on ADL for creat_mirror(GRAPH)
Browse files Browse the repository at this point in the history
Signed-off-by: Damien L-G <[email protected]>
  • Loading branch information
dalg24 committed Dec 7, 2024
1 parent 7f60c10 commit 4615b00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sparse/unit_test/Test_Sparse_StaticCrsGraph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void run_test_graph() {
hView hx;

dx = KokkosSparse::create_staticcrsgraph<dView>("dx", graph);
hx = KokkosSparse::create_mirror(dx);
hx = create_mirror(dx);

ASSERT_EQ(hx.row_map.extent(0) - 1, LENGTH);

Expand Down Expand Up @@ -99,8 +99,8 @@ void run_test_graph2() {
}

dView dx = KokkosSparse::create_staticcrsgraph<dView>("test", sizes);
hView hx = KokkosSparse::create_mirror(dx);
hView mx = KokkosSparse::create_mirror(dx);
hView hx = create_mirror(dx);
hView mx = create_mirror(dx);

ASSERT_EQ((size_t)dx.row_map.extent(0), (size_t)LENGTH + 1);
ASSERT_EQ((size_t)hx.row_map.extent(0), (size_t)LENGTH + 1);
Expand Down Expand Up @@ -162,7 +162,7 @@ void run_test_graph3(size_t B, size_t N) {
int C = 0;
dView dx = KokkosSparse::create_staticcrsgraph<dView>("test", sizes);
dx.create_block_partitioning(B, C);
hView hx = KokkosSparse::create_mirror(dx);
hView hx = create_mirror(dx);

for (size_t i = 0; i < B; i++) {
size_t ne = 0;
Expand Down

0 comments on commit 4615b00

Please sign in to comment.