Skip to content

Commit

Permalink
Merge branch 'branch-23.10' of https://github.com/rapidsai/kvikio int…
Browse files Browse the repository at this point in the history
…o zarr_notebook
  • Loading branch information
madsbk committed Aug 7, 2023
2 parents 03ba302 + 0247ca6 commit 21d9345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/examples/basic_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ int main()
{
kvikio::FileHandle f("/tmp/test-file", "r+", kvikio::FileHandle::m644);
kvikio::buffer_register(c_dev, SIZE);
size_t read = f.pread(b_dev, SIZE).get();
size_t read = f.pread(c_dev, SIZE).get();
check(read == SIZE);
check(read == f.nbytes());
kvikio::buffer_deregister(c_dev);
cout << "Read buffer registered data: " << read << endl;
}

{
kvikio::FileHandle f("/tmp/test-file", "w");
size_t written = f.pwrite(a, SIZE).get();
Expand Down

0 comments on commit 21d9345

Please sign in to comment.