Skip to content

Commit

Permalink
fixed synchronization bug
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianbehr committed Mar 5, 2024
1 parent 78e40f5 commit 30f534d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cuexpm.cu
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ static int cuexpm(const int n, const T *d_A, const int ldA, void *d_buffer, void
/*-----------------------------------------------------------------------------
* compute U and V for the Pade approximant independently on different streams
*-----------------------------------------------------------------------------*/
CHECK_CUDA(cudaDeviceSynchronize());
cudaStream_t streamU, streamV;
CHECK_CUDA(cudaStreamCreate(&streamU));
CHECK_CUDA(cudaStreamCreate(&streamV));
Expand Down

0 comments on commit 30f534d

Please sign in to comment.