Skip to content

Commit

Permalink
fix comm/ccl.py return issue
Browse files Browse the repository at this point in the history
  • Loading branch information
YizhouZ committed May 14, 2024
1 parent 86abd39 commit 00dd34e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deepspeed/comm/ccl.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@

import torch
from deepspeed.accelerator import get_accelerator
from deepspeed.ops.op_builder import NotImplementedBuilder
from .reduce_op import ReduceOp
from .torch import TorchBackend


def build_ccl_op():
builder = get_accelerator().create_op_builder("CCLCommBuilder")
if builder is None:
if builder is None or NotImplementedBuilder:
return None
ccl_cpp_module = builder.load()
print(f'DeepSpeed {builder.absolute_name()} built successfully')
Expand Down

0 comments on commit 00dd34e

Please sign in to comment.