Skip to content

Commit

Permalink
Merge pull request #8089 from jemiryguo/fix
Browse files Browse the repository at this point in the history
Fix#7981, Update _nccl_comm.py
  • Loading branch information
emcastillo committed Jan 16, 2024
2 parents 1737214 + 49030c8 commit 02b69f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cupyx/distributed/_nccl_comm.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _get_stream(self, stream):
def _get_op(self, op, dtype):
if op not in _nccl_ops:
raise RuntimeError(f'Unknown op {op} for NCCL')
if dtype in 'FD' and op != nccl.NCCL_SUM:
if dtype in 'FD' and op != 'sum':
raise ValueError(
'Only nccl.SUM is supported for complex arrays')
return _nccl_ops[op]
Expand Down

0 comments on commit 02b69f0

Please sign in to comment.