Skip to content

Correct the error in decorator.py#27409

Merged
gfwm2013 merged 1 commit intoPaddlePaddle:developfrom
gfwm2013:refine_macos
Sep 21, 2020
Merged

Correct the error in decorator.py#27409
gfwm2013 merged 1 commit intoPaddlePaddle:developfrom
gfwm2013:refine_macos

Conversation

@gfwm2013
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Describe

Background:
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.

This method would be failed on windows platform, so add a judgment statement to limit the method to the MacOS platform.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Member

@zhhsplendid zhhsplendid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gfwm2013 gfwm2013 merged commit aa7835e into PaddlePaddle:develop Sep 21, 2020
gfwm2013 added a commit to gfwm2013/Paddle that referenced this pull request Sep 21, 2020
gfwm2013 added a commit that referenced this pull request Sep 22, 2020
* Fix test_gast_with_compatibility.py due to the problem of gast in python3.8 (#27433)

test=develop

* fix dll load bug on windows from python3.8 (#27324)

* Support python3.8 (#26850)

* Support python3.8

test=notest

* Replace the 'spawn' start method with 'fork' start method for multiprocessing, on MacOS with python>=3.8 (#27317)

* Replace the 'spawn' start method with 'fork' start method for multiprocessing, on MacOs when python>=3.8

test=develop

* Correct the error in decorator.py (#27409)

test=develop

Co-authored-by: Zhou Wei <52485244+zhouwei25@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants