Skip to content

Commit e46bbea

Browse files
committed
Test new loadChunk syntax
1 parent fd24be2 commit e46bbea

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/ParallelIOTest.cpp

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

492492
auto E_y = it0.meshes["E"]["y"];
493493
auto width = E_y.getExtent()[1];
494-
auto first_row = E_y.loadChunk<int>({0, 0}, {1, width});
495-
auto middle_rows = E_y.loadChunk<int>({1, 0}, {3, width});
496-
auto last_row = E_y.loadChunk<int>({4, 0}, {1, width});
494+
auto first_row =
495+
E_y.prepareLoadStore().extent({1, width}).enqueueLoad<int>();
496+
auto middle_rows = E_y.prepareLoadStore()
497+
.offset({1, 0})
498+
.extent({3, width})
499+
.enqueueLoad<int>();
500+
auto last_row =
501+
E_y.prepareLoadStore().offset({4, 0}).enqueueLoad<int>();
497502
read.flush();
498503

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

0 commit comments

Comments
 (0)