Skip to content
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

[Framework]Add Android performance tools #10075

Merged
merged 4 commits into from
Mar 10, 2023

Conversation

wz1qqx
Copy link
Collaborator

@wz1qqx wz1qqx commented Mar 7, 2023

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.
image

@paddle-bot
Copy link

paddle-bot bot commented Mar 7, 2023

Thanks for your contribution!

@wz1qqx wz1qqx changed the title [ARM]Add performance tools [Framework]Add Arm performance tools Mar 7, 2023
@wz1qqx wz1qqx changed the title [Framework]Add Arm performance tools [Framework]Add Android performance tools Mar 7, 2023
#include <cstdlib>
#include <iostream>
#include <vector>
#ifdef LITE_WITH_ARM
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不需要这个宏吧,android只在arm下enable

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

工具设计之初是仅依赖于目标ARM平台支持的simd指令集,受限于时间当前仅验证了android平台。那我先删除掉这个头文件依赖吧,确实也没用到intrinsic函数。

@wz1qqx wz1qqx requested a review from zhupengyang March 10, 2023 06:24
Copy link
Collaborator

@mjp9527 mjp9527 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wz1qqx wz1qqx merged commit aea0883 into PaddlePaddle:develop Mar 10, 2023
@wz1qqx wz1qqx deleted the add-performance-tools branch March 10, 2023 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants