Skip to content

Commit

Permalink
fix: AllReduce minor
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhuofu committed Nov 23, 2024
1 parent 1c2875f commit 1f6dab4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parallel_ops/kernels/allreduce_kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ void inference_kernel_wrapper(Context ctx,
int device_id = m->handle.device_id;
ncclComm_t ncclComm = m->handle.ncclComm;
DataType dtype = input.data_type;
if (num_elements == 0) {
return;
}

tensorrt_llm::AllReduceStrategyType strategy =
tensorrt_llm::SelectImplementation(
Expand Down

0 comments on commit 1f6dab4

Please sign in to comment.