Unverified Commit 7000d7d6 authored by Sang Ik Lee's avatar Sang Ik Lee Committed by GitHub

Merge pull request #2338 from NervanaSystems/external_pr_2307

Changed python setup multiprocessing usage
parents 18d0993e 23b0c28b
......@@ -106,7 +106,8 @@ def parallelCCompile(
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
# convert to list, imap is evaluated on-demand
list(multiprocessing.pool.ThreadPool().imap(_single_compile, objects))
pool = multiprocessing.pool.ThreadPool()
list(pool.imap(_single_compile, objects))
return objects
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment