Skip to content

Commit

Permalink
Merge pull request #56 from jichangjichang/master
Browse files Browse the repository at this point in the history
fix bug in rcclReduce for prod op
  • Loading branch information
wenkaidu authored Nov 29, 2018
2 parents cf6bbf3 + 2f72457 commit 76cd53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rcclScalarReduceKernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ __global__ void RcclKernelScalarReduce(RingNode_t* pcurr_track, const void* send
reinterpret_cast<DataType_t*>(pnext_track->src_buffer);

if (Op == rcclSum) result = result + next_src_buff[index];
if (Op == rcclProd) result = result + next_src_buff[index];
if (Op == rcclProd) result = result * next_src_buff[index];
if (Op == rcclMax)
result = result > next_src_buff[index] ? result
: next_src_buff[index];
Expand Down

0 comments on commit 76cd53d

Please sign in to comment.