-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fused_multi_transformer/fused_multi_transformer_int8 to phi #61529
Conversation
代码冲突了,辛苦fix下~ |
3779df7
to
23125c6
Compare
|
edb2f5f
to
bd88caa
Compare
#include "paddle/phi/api/include/tensor.h" | ||
#include "paddle/phi/backends/dynload/nccl.h" |
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.
好的,已修改
@@ -41,16 +34,16 @@ limitations under the License. */ | |||
|
|||
#if defined(PADDLE_WITH_NCCL) || defined(PADDLE_WITH_RCCL) | |||
#include "paddle/fluid/distributed/collective/process_group.h" | |||
// #include "paddle/fluid/distributed/collective/process_group_nccl.h" |
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.
这里的include还有上面的一些include头文件为什么要删除呢?是没有用的头文件嘛?
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.
backend/generated/*.cc | ||
backend/generated/*.h | ||
primitive/generated_primitive.h | ||
rule/vjp/generated/generated_vjp.h | ||
rule/vjp/generated/generated_vjp.cc |
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.
这里为何删掉了
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.
这部分之前有几个 pr 迁移到了 build 下,不删掉在比较老的版本更新过来可能会报错查不出问题
#include "paddle/fluid/operators/fused/quant_dequant_kernel.h" | ||
#include "paddle/fluid/platform/device/gpu/gpu_info.h" |
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.
phi下不能引入fluid头文件,需要找phi下的等价替换头文件或者是移到phi目录下
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.
好的,已修改
@@ -0,0 +1,664 @@ | |||
/* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. |
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.
2024
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.
好的,已修改
@@ -0,0 +1,1381 @@ | |||
/* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. |
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.
2024
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.
好的,已修改
#include "paddle/fluid/distributed/collective/process_group.h" | ||
// #include "paddle/fluid/distributed/collective/process_group_nccl.h" | ||
#include "paddle/fluid/platform/collective_helper.h" |
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.
头文件问题同上
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.
好的,这块已修复
@@ -12,7 +12,7 @@ | |||
// See the License for the specific language governing permissions and | |||
// limitations under the License. | |||
|
|||
#include "paddle/fluid/distributed/collective/process_group.h" | |||
#include "paddle/phi/core/distributed/collective/process_group.h" |
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.
fluid文件夹下的这些头文件为什么要修改呢?
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.
我把 process_group.h 移动到了 phi目录,这部分是同步修改的
PR types
Others
PR changes
Others
Description
fused_multi_transformer/fused_multi_transformer_int8 to phi
合入内容见:#62049