Skip to content

Commit

Permalink
Do not synchronize when unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Killough committed Sep 26, 2020
1 parent 8f7fd69 commit ab95aec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/src/rocblas_auxiliary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ try
return rocblas_status_invalid_handle;
if(handle->layer_mode & rocblas_layer_mode_log_trace)
log_trace(handle, "rocblas_set_stream", stream_id);
if(stream_id == handle->rocblas_stream)
return rocblas_status_success;
RETURN_IF_HIP_ERROR(hipStreamSynchronize(handle->rocblas_stream));
handle->rocblas_stream = stream_id;
return rocblas_status_success;
Expand Down

0 comments on commit ab95aec

Please sign in to comment.