[Framework]Add Android performance tools#10075
Merged
wz1qqx merged 4 commits intoPaddlePaddle:developfrom Mar 10, 2023
Merged
Conversation
|
Thanks for your contribution! |
zhupengyang
reviewed
Mar 8, 2023
lite/api/tools/get_performance.cc
Outdated
| #include <cstdlib> | ||
| #include <iostream> | ||
| #include <vector> | ||
| #ifdef LITE_WITH_ARM |
Collaborator
There was a problem hiding this comment.
不需要这个宏吧,android只在arm下enable
Collaborator
Author
There was a problem hiding this comment.
工具设计之初是仅依赖于目标ARM平台支持的simd指令集,受限于时间当前仅验证了android平台。那我先删除掉这个头文件依赖吧,确实也没用到intrinsic函数。
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 devices
Arm
PR types
Performance optimization
PR changes
API
Description
Add tools to get the CPU performance of the current Android device, print out the frequency of each CPU core, and print the peak floating point capability (GFLOPS) of the specific core at the same time.
