Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spawn default nprocs get error #33215

Merged

Conversation

chenwhql
Copy link
Contributor

@chenwhql chenwhql commented May 31, 2021

PR types

Bug fixes

PR changes

APIs

Describe

Fix spawn default nprocs get error.

the return value of get_device() is gpu:x or xpu:x when device is gpu or xpu, it can't compare by ==, fix it.

the original error like:

image

related issue: #33183

@paddle-bot-old
Copy link

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

@chenwhql chenwhql requested a review from vslyu May 31, 2021 04:26
@vslyu
Copy link
Contributor

vslyu commented Jun 1, 2021

LGTM

Copy link
Contributor

@lanxianghit lanxianghit left a comment

Choose a reason for hiding this comment

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

LGTM

@chenwhql chenwhql merged commit cbe45ab into PaddlePaddle:develop Jun 1, 2021
chenwhql added a commit to chenwhql/Paddle that referenced this pull request Jun 1, 2021
* fix spawn default nprocs get error

* polish error message
lanxianghit pushed a commit that referenced this pull request Jun 1, 2021
* fix spawn default nprocs get error

* polish error message
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.

None yet

4 participants