Skip to content

Commit 762c452

Browse files
committed
Update example code
1 parent 5910dac commit 762c452

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

intermediate_source/dist_tuto.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ the following template.
4848
""" Distributed function to be implemented later. """
4949
pass
5050
51-
def init_process(rank, size, fn, backend='tcp'):
51+
def init_process(rank, size, fn, backend='gloo'):
5252
""" Initialize the distributed environment. """
5353
os.environ['MASTER_ADDR'] = '127.0.0.1'
5454
os.environ['MASTER_PORT'] = '29500'
@@ -74,10 +74,8 @@ function.
7474

7575
Let's have a look at the ``init_process`` function. It ensures that
7676
every process will be able to coordinate through a master, using the
77-
same ip address and port. Note that we used the TCP backend, but we
78-
could have used
79-
`MPI <https://en.wikipedia.org/wiki/Message_Passing_Interface>`__ or
80-
`Gloo <https://github.com/facebookincubator/gloo>`__ instead. (c.f.
77+
same ip address and port. Note that we used the ``gloo`` backend but
78+
other backends are available. (c.f.
8179
`Section 5.1 <#communication-backends>`__) We will go over the magic
8280
happening in ``dist.init_process_group`` at the end of this tutorial,
8381
but it essentially allows processes to communicate with each other by

0 commit comments

Comments
 (0)