OpenMP interfers with torch and may deadlock
Using OpenMP (cyhon.prange
) with torch
and multiprocessing.Pool
deadlocks.
https://github.com/pytorch/pytorch/issues/17199
As a work-around I propose to not use OpenMP with Pool
. This is done through closing #17 (closed) and making OpenMP optional.