Skip to content

Commit

Permalink
Match cuBLAS sync behavior (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
benson31 authored Nov 7, 2023
1 parent bc4ea53 commit d883ac3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hydrogen/device/rocBLAS_API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ class ResultMgr
H_CHECK_HIP(hipFreeAsync(device_, stream));
#endif // HYDROGEN_HAVE_CUB

// Sync stream to match cuBLAS behavior (cuBLAS docs here:
// https://docs.nvidia.com/cuda/cublas/#scalar-parameters)
H_CHECK_HIP(hipStreamSynchronize(stream));

// Reset pointer mode
H_CHECK_ROCBLAS(rocblas_set_pointer_mode(handle_, rocblas_pointer_mode_host));
}
Expand Down

0 comments on commit d883ac3

Please sign in to comment.