-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[PHI Decoupling]Remove Profiler header (Part2) #50183
[PHI Decoupling]Remove Profiler header (Part2) #50183
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
paddle/phi/core/os_info.h
Outdated
@@ -0,0 +1,74 @@ | |||
/* Copyright (c) 2021 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.
2021->2023
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,3q
paddle/phi/core/os_info.cc
Outdated
@@ -0,0 +1,130 @@ | |||
/* Copyright (c) 2021 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.
2021->2023
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,3q
@@ -0,0 +1,175 @@ | |||
// 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.
2022->2023
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,3q
paddle/phi/core/os_info.cc
Outdated
#endif | ||
#include "glog/logging.h" | ||
#include "paddle/phi/common/thread_data_registry.h" | ||
#include "paddle/phi/core/macros.h" // import DISABLE_COPY_AND_ASSIGN |
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.
delete useless comments
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,74 @@ | |||
/* Copyright (c) 2021 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.
为什么需要 os_info.h 和 os_info.cc 文件?对应 fluid 哪个文件中的实现?
Why do we need os_info.h
and os_info.cc
? Which fluid files are they corresponding to?
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.
该文件是Profiler的依赖,从fluid下迁移过来的
@@ -0,0 +1,45 @@ | |||
proto_library(phi_profiler_proto SRCS profiler.proto) |
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.
这个profiler.proto会在phi中引入proto的依赖吗?
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.
yes
@@ -22,11 +22,12 @@ limitations under the License. */ | |||
#include <thread> // NOLINT | |||
|
|||
#include "glog/logging.h" | |||
#include "paddle/fluid/platform/place.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.
谢谢,已修改
paddle/phi/core/os_info.cc
Outdated
@@ -0,0 +1,130 @@ | |||
/* Copyright (c) 2021 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.
2021 -> 2023
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
paddle/phi/core/os_info.h
Outdated
@@ -0,0 +1,74 @@ | |||
/* Copyright (c) 2021 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.
同上
@@ -27,7 +27,7 @@ math_library(sequence_scale) | |||
cc_library( | |||
phi_data_layout_transform | |||
SRCS data_layout_transform.cc | |||
DEPS tensor blas) | |||
DEPS tensor blas phi_profiler) |
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_profiler了?
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,3q
paddle/phi/tests/api/CMakeLists.txt
Outdated
DEPS phi_tensor glog phi_profiler) | ||
elseif(WITH_ROCM) | ||
hip_test( | ||
test_phi_tensor | ||
SRCS test_phi_tensor.cc | ||
DEPS phi_tensor glog) | ||
DEPS phi_tensor glog phi_profiler) | ||
else() | ||
cc_test( | ||
test_phi_tensor | ||
SRCS test_phi_tensor.cc | ||
DEPS phi_tensor glog) | ||
DEPS phi_tensor glog phi_profiler) | ||
endif() |
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_profiler吗?
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.
LGTM
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 for platform event_tracing and related structure moving
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
Others
PR changes
Others
Describe
迁移Profiler组件并移除对
"paddle/fluid/platform/profiler/event_tracing.h"
的依赖