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

Add cache flush for arm #9170

Merged
merged 2 commits into from
Oct 2, 2021
Merged

Add cache flush for arm #9170

merged 2 commits into from
Oct 2, 2021

Conversation

tkonolige
Copy link
Contributor

This PR add a cache flush implementation for ARM. The code was written by @merrymercy for Tenset to improve accuracy of program measurement. I am just helping getting things upstreamed (with permission).

@junrushao1994 @merrymercy

@junrushao
Copy link
Member

Yeah I believe the original author is @FrozenGene

@tkonolige
Copy link
Contributor Author

tkonolige commented Sep 30, 2021

Here is the original commit: 6308379dc71137d1ff8628ab1fb555f7a5770f45

@junrushao junrushao merged commit 7cb3e11 into apache:main Oct 2, 2021
@junrushao
Copy link
Member

Thanks @tkonolige! This is merged :-)

@FrozenGene
Copy link
Member

Yeah I believe the original author is @FrozenGene

@junrushao1994 @tkonolige Yes. Some background, this is written originally by myself when I developed ansor. However, I found this doesn't have effect on the rasperry pi 3b+ like we gained on x86 at that time. So I don't upload the code to the upstream. @tkonolige Do you test it and find it has effect on your arm devices?

@@ -320,18 +320,33 @@ std::shared_ptr<RPCSession> RPCModuleGetSession(Module mod) {
* which leads to lower performance.
*/
inline void CPUCacheFlushImpl(const char* addr, unsigned int len) {
// TODO(FrozenGene): Support ARM.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should leave this TODO as we haven't completed support for arm 32 bits.

ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
* Add cache flush for arm

* formatting

Co-authored-by: Lianmin Zheng <lianminzheng@gmail.com>
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
* Add cache flush for arm

* formatting

Co-authored-by: Lianmin Zheng <lianminzheng@gmail.com>
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.

None yet

4 participants