Skip to content

Commit

Permalink
add warnings about syncro mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Nov 3, 2017
1 parent d08a9f1 commit cbaac0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion bin/quimb-mpi-python
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ key="$1"
case $key in
-h|--help)
echo "Run a python script that uses quimb, eagerly launching
with mpi, rather than dynamically spawning MPI processes.
with mpi, rather than dynamically spawning MPI processes.
Usage:
quimb-mpi-python [OPTIONS]... [SCRIPT]...
Expand All @@ -27,6 +27,9 @@ case $key in
a MPIPool is encountered.
-h, --help
Show this help.
Note that in syncro mode, *all* functions called outside
of the mpi pool must be pure to ensure syncronization.
"
exit 0
;;
Expand Down
2 changes: 1 addition & 1 deletion docs/distributed parallelism - mpi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ Modes of execution

.. warning::

In syncro mode, potentially conflicting operations such as IO should be guarded with ``if MPI.COMM_WORLD.Get_rank() == 0`` etc.
In syncro mode, potentially conflicting operations such as IO should be guarded with ``if MPI.COMM_WORLD.Get_rank() == 0`` etc. Additionally, any functions called outside of the MPI pool should be pure to ensure syncronization.

0 comments on commit cbaac0d

Please sign in to comment.