Skip to content
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
5 changes: 5 additions & 0 deletions chainerrl/misc/async.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
standard_library.install_aliases()

import multiprocessing as mp
import warnings

import chainer
import numpy as np
Expand Down Expand Up @@ -132,6 +133,10 @@ def set_seed_and_run(process_idx, run_func):

for p in processes:
p.join()
if p.exitcode < 0:
warnings.warn(
"Process {}'s exit code was not zero but {}".format(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd like to know the process_idx.
How about "Process #{} (pid={}) exited with nonzero status {}".format(i, p.pid, p.exitcode)?

p.pid, p.exitcode))


def as_shared_objects(obj):
Expand Down