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
[Kunlun]add collective ops for multi XPU cards training and add Kunlun multi XPU cards CI #32302
[Kunlun]add collective ops for multi XPU cards training and add Kunlun multi XPU cards CI #32302
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#if defined(PADDLE_WITH_NCCL) || defined(PADDLE_WITH_RCCL)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done~
#include "paddle/fluid/platform/collective_helper.h" | ||
#include "paddle/fluid/platform/nccl_helper.h" | ||
#endif | ||
|
||
#if defined(PADDLE_WITH_XPU_BKCL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#if defined(PADDLE_WITH_NCCL) || defined(PADDLE_WITH_RCCL)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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: