Skip to content

Commit

Permalink
add stream sync
Browse files Browse the repository at this point in the history
  • Loading branch information
terryysun committed Aug 5, 2024
1 parent 6db4cec commit 37c3bb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xla/service/gpu/runtime/nccl_all_to_all_thunk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ absl::Status RunAllToAll(NcclApi* nccl_api, bool has_split_dimension,

TF_ASSIGN_OR_RETURN(int32_t num_participants, nccl_api->CommCount(comm));

if (!use_memcpy) {
if (use_memcpy) {
TF_RETURN_IF_ERROR(stream.BlockHostUntilDone());
} else {
TF_RETURN_IF_ERROR(nccl_api->GroupStart());
}

Expand Down

0 comments on commit 37c3bb7

Please sign in to comment.