Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions py/torch_tensorrt/dynamo/conversion/custom_ops_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def fused_nccl_all_gather(
SourceIR.ATEN,
name,
[args[0]],
group_name=args[2] if len(args) > 2 else None,
)

@dynamo_tensorrt_converter(
Expand All @@ -66,6 +67,7 @@ def fused_nccl_reduce_scatter(
name,
[args[0]],
reduce_op=reduce_op,
group_name=args[3] if len(args) > 3 else None,
)

@dynamo_tensorrt_converter(
Expand All @@ -87,6 +89,7 @@ def fused_nccl_all_reduce(
name,
[args[0]],
reduce_op=reduce_op,
group_name=args[2] if len(args) > 2 else None,
)

@dynamo_tensorrt_converter(
Expand All @@ -106,6 +109,7 @@ def fused_nccl_all_to_all(
SourceIR.ATEN,
name,
[args[0]],
group_name=args[3] if len(args) > 3 else None,
)

@dynamo_tensorrt_converter(
Expand All @@ -121,7 +125,8 @@ def fused_nccl_scatter(
"""Scatter using native TensorRT DistCollective API."""
root = args[1] if len(args) > 1 else 0
return impl.nccl_ops.nccl_scatter_native(
ctx, target, SourceIR.ATEN, name, [args[0]], root=root
ctx, target, SourceIR.ATEN, name, [args[0]], root=root,
group_name=args[2] if len(args) > 2 else None,
)

@dynamo_tensorrt_converter(
Expand All @@ -137,7 +142,8 @@ def fused_nccl_gather(
"""Gather using native TensorRT DistCollective API."""
root = args[1] if len(args) > 1 else 0
return impl.nccl_ops.nccl_gather_native(
ctx, target, SourceIR.ATEN, name, [args[0]], root=root
ctx, target, SourceIR.ATEN, name, [args[0]], root=root,
group_name=args[2] if len(args) > 2 else None,
)


Expand Down
Loading
Loading