Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention --gpu option in the MNIST tutorial #85

Merged
merged 2 commits into from
Jun 8, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 11 additions & 1 deletion docs/source/tutorial/step1_communicators_optimizers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,21 @@ Run

With the above two changes, your script is ready for distributed
training. Invoke your script with ``mpiexec`` or ``mpirun`` (see your
MPI's manual for details). The following is an example to execute the
MPI's manual for details). The following is an example of executing the
training with four processes at localhost::

$ mpiexec -n 4 python train_mnist.py

In the non-GPU mode, you may see a warning like shown below,
but this message is harmless, and you can ignore it for now ::

Warning: using naive communicator because only naive supports CPU-only execution


If you have GPUs, you may also want to try::

$ mpiexec -n 4 python train_mnist.py --gpu
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that it is necessary to explain that the command requires 4 GPUs in a node.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reflected the comment and fixed the text.



Multi-node execution
~~~~~~~~~~~~~~~~~~~~
Expand Down