Skip to content

Commit dc84695

Browse files
authored
[TRTLLM-6826][feat] Allow sending more than 2GiB through MPI by using mpi4py.util.pkl5 (#6522)
Signed-off-by: Amit Zuker <[email protected]>
1 parent ed801ff commit dc84695

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensorrt_llm/_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import numpy as np
3333
import nvtx
3434
from mpi4py import MPI
35+
from mpi4py.util import pkl5
3536
from packaging import version
3637

3738
# isort: off
@@ -455,7 +456,7 @@ def dim_resolve_negative(dim, ndim):
455456
# mpi4py only exports MPI_COMM_TYPE_SHARED, so we define OMPI_COMM_TYPE_HOST here
456457
OMPI_COMM_TYPE_HOST = 9
457458

458-
comm = MPI.COMM_WORLD
459+
comm = pkl5.Intracomm(MPI.COMM_WORLD)
459460

460461

461462
def set_mpi_comm(new_comm):

0 commit comments

Comments
 (0)