Skip to content

Commit

Permalink
[Bugfix] Handle case where process has no elements to update, in NCCL…
Browse files Browse the repository at this point in the history
… communicator (dmlc#3035)

Co-authored-by: Minjie Wang <[email protected]>
  • Loading branch information
nv-dlasalle and jermainewang authored Jun 23, 2021
1 parent cb2327d commit 7415eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/cuda/nccl_api.cu
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ std::pair<IdArray, NDArray> SparsePush(
Workspace<DType> send_value(device, ctx, num_in*num_feat);

// permute the indices and values
{
if (num_in > 0) {
const dim3 block(256);
const dim3 grid((num_in+block.x-1)/block.x);

Expand Down

0 comments on commit 7415eaa

Please sign in to comment.