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

Adding comments #107

Merged
merged 3 commits into from
Aug 17, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Describe why we don't use MPI4py's scatter
  • Loading branch information
iwiwi committed Aug 15, 2017
commit de0ff5027576e5df05ac100a16d177fc13b08e88
3 changes: 2 additions & 1 deletion chainermn/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def scatter_dataset(dataset, comm):
assert hasattr(comm, 'send')
assert hasattr(comm, 'recv')

# TODO(akiba): write why we do not use mpi_comm.scatter
# We cannot use `mpi_comm.scatter`. This is due to MPI4py's bug.
# For large datasets, when using `mpi_comm.scatter`, it causes MemoryError.
if comm.rank == 0:
mine = None
n_total_samples = len(dataset)
Expand Down