Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify batch and stream API check #271

Merged
Prev Previous commit
Next Next commit
cudaFreeHost
  • Loading branch information
madsbk committed Aug 30, 2023
commit 10f7b0f150ef0174602fbbd5c66e6e238ed32cbc
2 changes: 1 addition & 1 deletion cpp/examples/basic_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ int main()
CUFILE_CHECK_STREAM_IO(bytes_done_p);
check(*bytes_done_p == SIZE);
cout << "File async read : " << *bytes_done_p << endl;
madsbk marked this conversation as resolved.
Show resolved Hide resolved
check(cudaHostFree((void*)bytes_done_p) == cudaSuccess);
check(cudaFreeHost((void*)bytes_done_p) == cudaSuccess);
}
} else {
cout << "The batch and stream API isn't available, requires CUDA 12.2+" << endl;
Expand Down
Loading