Replace the 'spawn' start method with 'fork' start method for multiprocessing, on MacOS with python>=3.8 !27317
Created by: gfwm2013
PR types
Bug fixes
PR changes
Others
Describe
On MacOS,the spawn start method is now the default in Python3.8 multiprocessing。But paddle currently can not handle this, so force process to start using 'fork' start method.
More details, please refer to: https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods https://bugs.python.org/issue33725