Skip to content

Commit 3ecc97a

Browse files
committed
Test new loadChunk syntax
1 parent b79d2cb commit 3ecc97a

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

test/ParallelIOTest.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,14 @@ void available_chunks_test(std::string const &file_ending)
494494

495495
auto E_y = it0.meshes["E"]["y"];
496496
auto width = E_y.getExtent()[1];
497-
auto first_row = E_y.loadChunk<int>({0, 0}, {1, width});
498-
auto middle_rows = E_y.loadChunk<int>({1, 0}, {3, width});
499-
auto last_row = E_y.loadChunk<int>({4, 0}, {1, width});
497+
auto first_row =
498+
E_y.prepareLoadStore().extent({1, width}).enqueueLoad<int>();
499+
auto middle_rows = E_y.prepareLoadStore()
500+
.offset({1, 0})
501+
.extent({3, width})
502+
.enqueueLoad<int>();
503+
auto last_row =
504+
E_y.prepareLoadStore().offset({4, 0}).enqueueLoad<int>();
500505
read.flush();
501506

502507
for (auto row : [&]() -> std::vector<std::shared_ptr<int> *> {

0 commit comments

Comments
 (0)