[Kunlun]add collective ops for multi XPU cards training and add Kunlun multi XPU cards CI#32302
Merged
wangxicoding merged 16 commits intoPaddlePaddle:developfrom Apr 21, 2021
Merged
Conversation
…dev/add_xpu_colletive_ops1
|
Thanks for your contribution! |
09406ed to
26bfd67
Compare
| #include "paddle/fluid/platform/collective_helper.h" | ||
| #endif | ||
|
|
||
| #if (defined PADDLE_WITH_NCCL) |
Contributor
There was a problem hiding this comment.
#if defined(PADDLE_WITH_NCCL) || defined(PADDLE_WITH_RCCL)
| #include "paddle/fluid/platform/nccl_helper.h" | ||
| #endif | ||
|
|
||
| #if defined(PADDLE_WITH_XPU_BKCL) |
Contributor
There was a problem hiding this comment.
#if defined(PADDLE_WITH_NCCL) || defined(PADDLE_WITH_RCCL)
wangxicoding
approved these changes
Apr 21, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR types
New features
PR changes
OPs
Describe
add allreduce_sum/prod/max/min and reduce_sum/prod/max/min ops for XPU.
example:
fleetrun --xpus 0,1 example.py
add dist xpu tests in python/paddle/fluid/tests/unittests/CMakeLists.txt.
UT name must contain "_xpu" to be executed, redefined example as following: