Skip to content
Permalink
Browse files

fix 3rd pass extractor hang on AMD 8+ core processors

  • Loading branch information...
iperov committed Apr 28, 2019
1 parent 2cd028f commit 5eaf3eb500c8e255b1aaa9f8dfcc4b66df09cefe
Showing with 17 additions and 0 deletions.
  1. +17 −0 joblib/SubprocessorBase.py
@@ -157,6 +157,23 @@ def run(self):

self.clis.append (cli)

while True:
while not cli.c2s.empty():
obj = cli.c2s.get()
op = obj.get('op','')
if op == 'init_ok':
cli.state = 0
elif op == 'log_info':
io.log_info(obj['msg'])
elif op == 'log_err':
io.log_err(obj['msg'])
elif op == 'error':
cli.kill()
self.clis.remove(cli)
break
if cli.state == 0:
break
io.process_messages(0.005)
except:
raise Exception ("Unable to start subprocess %s" % (name))

0 comments on commit 5eaf3eb

Please sign in to comment.
You can’t perform that action at this time.