Skip to content

Commit

Permalink
add stream sync
Browse files Browse the repository at this point in the history
  • Loading branch information
sneaxiy committed Dec 12, 2023
1 parent 3897a46 commit c0e4c7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test_aadiff.cu
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ class Matrix {
std::vector<float> out(height_ * width_);
resource.SyncStream();
CUDA_CHECK(cudaMemcpyAsync(out.data(), data_, nbytes, cudaMemcpyDeviceToHost, resource.stream));
resource.SyncStream();
return out;
}

Expand Down

0 comments on commit c0e4c7c

Please sign in to comment.