Skip to content

Commit 39851c6

Browse files
committed
Remove automatic rank and group_name for file initialization
1 parent a799c91 commit 39851c6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

intermediate_source/dist_tuto.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -574,15 +574,14 @@ that each process will open the file, write its information, and wait
574574
until everybody did so. After what all required information will be
575575
readily available to all processes. In order to avoid race conditions,
576576
the file system must support locking through
577-
`fcntl <http://man7.org/linux/man-pages/man2/fcntl.2.html>`__. Note that
578-
you can specify ranks manually or let the processes figure it out by
579-
themselves. Be defining a unique ``groupname`` per job you can use the
580-
same file path for multiple jobs and safely avoid collision.
577+
`fcntl <http://man7.org/linux/man-pages/man2/fcntl.2.html>`__.
581578

582579
.. code:: python
583580
584-
dist.init_process_group(init_method='file:///mnt/nfs/sharedfile', world_size=4,
585-
group_name='mygroup')
581+
dist.init_process_group(
582+
init_method='file:///mnt/nfs/sharedfile',
583+
rank=args.rank,
584+
world_size=4)
586585
587586
**TCP**
588587

0 commit comments

Comments
 (0)