mirror of https://github.com/llvm/torch-mlir
Fix multi-threaded tests on macOS (#1005)
Fixes https://github.com/llvm/torch-mlir/issues/994pull/1012/head snapshot-20220705.524
parent
a1947c7bd1
commit
be3d14cf76
|
@ -321,7 +321,7 @@ def run_workers_in_parallel(task_queue: mp.Queue, worker):
|
||||||
|
|
||||||
processes = []
|
processes = []
|
||||||
for i in range(NUMBER_OF_PROCESSES):
|
for i in range(NUMBER_OF_PROCESSES):
|
||||||
p = mp.Process(target=worker, args=(task_queue, ))
|
p = mp.get_context("fork").Process(target=worker, args=(task_queue, ))
|
||||||
p.start()
|
p.start()
|
||||||
processes.append(p)
|
processes.append(p)
|
||||||
for i in range(NUMBER_OF_PROCESSES):
|
for i in range(NUMBER_OF_PROCESSES):
|
||||||
|
|
Loading…
Reference in New Issue