Skip to content

Commit

Permalink
Fix the sync bug in stream ref wait
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Dec 21, 2023
1 parent 2165845 commit 44f6821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/stream_ref
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public:
*/
void wait() const
{
const auto __result = ::cudaStreamQuery(get());
const auto __result = ::cudaStreamSynchronize(get());
switch (__result)
{
case ::cudaSuccess:
Expand Down

0 comments on commit 44f6821

Please sign in to comment.