Skip to content

Commit

Permalink
Merge pull request ROCm#344 from leekillough/remove_unnecessary_syncs
Browse files Browse the repository at this point in the history
Do not synchronize when unnecessary
  • Loading branch information
leekillough authored Sep 28, 2020
2 parents 8f7fd69 + ab95aec commit 91e553c
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 91e553c

Please sign in to comment.