Skip to content

Commit

Permalink
fixes #254 (#262)
Browse files Browse the repository at this point in the history
Authors:
  - Mads R. B. Kristensen (https://github.com/madsbk)

Approvers:
  - Vukasin Milovanovic (https://github.com/vuule)

URL: #262
  • Loading branch information
madsbk authored Aug 7, 2023
1 parent 2f05dd8 commit 0247ca6
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 0247ca6

Please sign in to comment.