File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ the following template.
48
48
""" Distributed function to be implemented later. """
49
49
pass
50
50
51
- def init_process (rank , size , fn , backend = ' tcp ' ):
51
+ def init_process (rank , size , fn , backend = ' gloo ' ):
52
52
""" Initialize the distributed environment. """
53
53
os.environ[' MASTER_ADDR' ] = ' 127.0.0.1'
54
54
os.environ[' MASTER_PORT' ] = ' 29500'
@@ -74,10 +74,8 @@ function.
74
74
75
75
Let's have a look at the ``init_process `` function. It ensures that
76
76
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.
81
79
`Section 5.1 <#communication-backends >`__) We will go over the magic
82
80
happening in ``dist.init_process_group `` at the end of this tutorial,
83
81
but it essentially allows processes to communicate with each other by
You can’t perform that action at this time.
0 commit comments